Hello David!
Thanks for your help. I have stripped down my code to a useless example
but there you can see the problem:
import com.ibm.etools.iseries.core.api.ISeriesProgram;
import com.ibm.etools.systems.core.ISystemRemoteCommand;
import com.ibm.etools.systems.core.messages.SystemMessageException;
import
com.ibm.etools.systems.core.ui.actions.SystemAbstractPopupMenuExtensionAction;
public class ShowModules extends SystemAbstractPopupMenuExtensionAction {
@Override
public void run() {
ISeriesProgram program = null;
ISystemRemoteCommand cmd = null;
try {
program.getModuleList(); // Code Completion does
not work
cmd.getCommand(); // Code Completion does work
} catch (SystemMessageException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
As said above this code does nothing, but compiles without a problem. When
i ask for Code completion after program. i get an box with two static
members but without any methods. after cmd. everything works fine.
Ralf
David Gibbs <david@xxxxxxxxxxxx>
Gesendet von: wdsci-l-bounces@xxxxxxxxxxxx
10.07.2007 16:52
Bitte antworten an
Websphere Development Studio Client for iSeries <wdsci-l@xxxxxxxxxxxx>
An
Websphere Development Studio Client for iSeries <wdsci-l@xxxxxxxxxxxx>
Kopie
Thema
Re: [WDSCI-L] Develop plug ins for WDSC
ralf.petter@xxxxxxxxxxx wrote:
Yes i have added plug-in dependecies to the build path and i have added
the plug in com.ibm.etools.iseries.core to the required plugins. And i
can
see all packages in the package explorer. I can write my plugin and the
plug in works, but it as i said before if you have used code completion
all the time it is really hard to program with objects without it.
The com.ibm.etools.systems.core which i have added to the required
plugins
too, works without a problem. Although it would be nice to add Java doc
to
the .jar somehow to have the java doc in the editor.
What class are you trying to use?
I've found that, as long as the jar is in the build path, the editor
will do code completion.
Odd thing though ... and I can't explain this myself without further
digging ... I tried to instantiate a class in that jar in my plug-in
(just for testing) and it couldn't find it at all.
david
As an Amazon Associate we earn from qualifying purchases.