Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » AddOn gets the wrong shell
AddOn gets the wrong shell [message #579193] Fri, 23 July 2010 10:18
U. Geerds is currently offline U. GeerdsFriend
Messages: 10
Registered: July 2010
Junior Member
Hi anybody,

i recognized, that my AddOn-class gets the shell from the workbench, from where the app is started.

I added the following "AddOn" to my e4 app:

@PostConstruct
void hookListeners(Shell shell) {
shell.setText("Hooked");

After I recognized, the shell.setText doesn't works, I add the following code:

shell.setMaximized(true);
shell.addMouseMoveListener(new MouseMoveListener() {
@Override
public void mouseMove(MouseEvent e) {
System.out.println("move: " + e.x + ", " + e.y);
}
});

The mouse move is only called, if the mouse pointer is out of the app window.

I try it also with @Named(IServiceConstants.ACTIVE_SHELL) Shell shell. But the result is the same.

What should I do, to get underlaying Shell of my app?

I'm working on Mac with the following SDK;
e4 SDK 0.9.0.I20100718-2115

Greetings. Uwe
Previous Topic:xwt code refactor
Next Topic:Enable/Disable ToolItem
Goto Forum:
  


Current Time: Thu Nov 27 11:15:15 GMT 2014

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

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