Selection null when create a New MIDlet Project [message #605789] |
Fri, 14 May 2010 14:46 |
Marco Vettorello Messages: 4 Registered: March 2010 |
Junior Member |
|
|
Hello everybody,
I encountred a serious problem when developing my eclipse wizard plugin.
I'm just creating a Wizard that detect the selected project from the Package Navigator.
Everything works fine if I select Plugin project or Java project.
The errors begins when I create a new MIDlet Project and the following action is to select the midlet project created and open the wizard.
What the eclipse tellme is that the selection is null or empty.
This happens only if the opening of the Wizard is the following action of the MIDlet project creation.
I'm using the last Eclipse 3.5.2 and MTJ 1.0.1 under linux.
I can reproduce this error also with starting with the eclipse example "Plugin with popup menu".
The only thing to change is to have this:
IStructuredSelection sel = (IStructuredSelection)PlatformUI.getWorkbench().getActiveWor kbenchWindow().getSelectionService().getSelection();
for get the current selection
and to change the plugin.xml with this objectcontribution: objectClass="org.eclipse.core.resources.IProject"
Running this on an Eclipse Application you will see this error.
What can it be?and what can I do?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03188 seconds