Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Selection null when create a New MIDlet Project
Selection null when create a New MIDlet Project [message #605789] Fri, 14 May 2010 14:46
Marco Vettorello is currently offline Marco VettorelloFriend
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
Previous Topic:Selection null when create a New MIDlet Project
Next Topic:P2 PDE Headless build on MAC (cocoa,x86_64) compilation errors
Goto Forum:
  


Current Time: Fri Apr 26 15:20:12 GMT 2024

Powered by FUDForum. Page generated in 0.03188 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top