Hello,
I'm developing a pure e4 application. Working with eclipse 4.3M3 this code was working fine:
Map<String, String> parameter = new HashMap<String, String>();
ParameterizedCommand command;
String perspective_id = PERSPECTIVE_ID;
parameter.put(PARAMETER_SWITCHPERSPECTIVE_ID, perspective_id);
command = commandService.createCommand(COMMAND_SWITCHPERSPECTIVE_ID, parameter);
handlerService.executeHandler(command);
but now, after upgrading eclipse to 4.3M4, it doesn't work anymore. The method execute in the handler is not called:
public class SwitchPerspectiveHandler {
@Execute
public static void execute(@Named(PARAMETER_SWITCHPERSPECTIVE_ID) String perspective, MApplication app,
EModelService modelService, EPartService partService) {
MPerspective thisElement = (MPerspective) modelService.find(perspective, app);
partService.switchPerspective(thisElement);
}
}
Has the eclipse API been changed? How should I execute a command with a parameter?
Thank you.