Brian:
I tried working with this book back in January 2004 on V5.1 and I found that
the content assist templates had to be imported.
For that version here were the steps:
From the menu bar select 'Window', 'Preferences', expand 'Java', expand
'Editor', select 'Template' and then 'Import'.
The file I imported was:
C:\Program Files\IBM\WebSphere Studio\Site
Developer\v5.1\wstools\eclipse\plugins\com.ibm.etools.jbcf.codegen_5.1.0\Exa
mples\Templates\java\awt\event\allTemplates.xml
I'm not sure what would need to be done for V6 or V7.
Hope this helps point you in a direction to solve the problem.
John
-------
date: Wed, 13 Jun 2007 14:55:13 -0700
from: Brian Leathem <bleathem@xxxxxxxxx>
subject: [WDSCI-L] addActionListener to a Component
I'm working through the book "Building Applications with IBM Websphere
Studio and JavaBeans", trying to teach myself how to build java
applications. The book so far is great, despite being written for
Websphere Studio Site Developer 5.0, so far it's been straightforward to
translate the instructions to WDSC 7.0.
However, the book describes using an "inner class" to define the
listener for a component. To do this, I type "button.addA" then
crtl-space to prompt, and I'm supposed to select "addActionListener -
addActionListener to a Component" which generates the inline class for
me. This doesn't seem to be available in WDSC 7.0. I realize I can
type it by hand, but that seems to defeat one of the advantages of this
whole IDE thing. Does anyone have any pointers?
I appreciate your responses,
Brian Leathem
As an Amazon Associate we earn from qualifying purchases.