Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Command handlers are no longer activated after migration to E4
Command handlers are no longer activated after migration to E4 [message #1792477] Wed, 18 July 2018 12:16
Jens Kutzsche is currently offline Jens KutzscheFriend
Messages: 4
Registered: July 2009
Junior Member
Hello,

I have migrate a RCP application to E4. Since the migration, some command handlers that have an "enableWhen" declaration with a tester are no longer activated.

I have found that the current selection is set as a variable in an instance of the EvaluationContext by the WorkbenchSourceProvider.

In our PropertyTester implementation, however, the receiver argument in the test method is now always Null. It seems that the wrong context is used here, because the E4HandlerProxy creates always a new ExpressionContext in the method setEnabled. This is used for further processing. The method setEnabled also has an optional injection of an IEvaluationContext instance, but that is Null for us.

Did we forget something during the migration or could this be a mistake in the platform?

Jens
Previous Topic:Import GEF/ZEST in RCP via Maven
Next Topic:NullPointerException in themes.ColorAndFontProviderImpl
Goto Forum:
  


Current Time: Wed Nov 14 16:11:38 GMT 2018

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

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

Back to the top