I was able to make a tabbar button In accordance with these instructions https://www.eclipse.org/sirius/doc/developer/extensions-provide_tabbar_extensions.html
I want this button to perform some kind of action. I have not decided exactly what ,but it will be related to the diagram and the semantic model. The problem I have is that I have no clue how to get to the diagram from the handler-class that is associated with the button.
This is what it looks like
public class ShowBaseHandler implements IHandler {
@Override
public void addHandlerListener(IHandlerListener handlerListener) {
}
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
return null;
}
... other methods left out
}
Can I get the diagram via the *event* parameter or is there a way through the active editor/input?
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getEditorInput()
Cheers,
Nik
[Updated on: Mon, 15 February 2016 19:16] by Moderator