Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » problem with org.eclipse.ui.internal.MakeHandlersGo
problem with org.eclipse.ui.internal.MakeHandlersGo [message #782375] Mon, 23 January 2012 11:10 Go to previous message
vincent lorenzo is currently offline vincent lorenzo
Messages: 29
Registered: June 2010
Junior Member
Hi all,
On Eclipse indigo, I wrote JUnit tests to tests the handler activation :
org.eclipse.core.commands.Command testedCommand = ...
IHandler handler = testedCommand.getHandler();
if(handler instanceof HandlerProxy) {
handler = ((HandlerProxy)currentHandler).getHandler();
}
Assert.isTrue(handler instanceof myOwnHandler);
Assert.isTrue(handler.isEnabled());
...

Now, testedCommand.getHandler() returns an MakeHandlersGo and not the handler declared in the plugin.xml...
Do you have a solution to adapt my code to E4, but it continues to work on Eclipse 3.8 ?

Is a Layer Compatibility bug?

Regards,

 
Read Message
Read Message
Previous Topic:Dependency Injection in Abstract Classes
Next Topic:Toolbar Contribution
Goto Forum:
  


Current Time: Thu May 23 15:13:06 EDT 2013

Powered by FUDForum. Page generated in 0.01584 seconds