[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: EMF GMF Integration - Delete key
|
Hello Olivier,
To make "delete" keyboard action working I had to add following method into
TopicMapDiagramEditor:
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
IWorkbenchPart thisWorkbenchPart = this;
IWorkbenchPartSite site = getSite();
if (site instanceof MultiPageEditorSite) {
thisWorkbenchPart = ((MultiPageEditorSite) site).getMultiPageEditor();
}
if (thisWorkbenchPart == part)
updateActions(getSelectionActions());
}
Another option is to listed selection change event in TopicMapEditor and
call "TopicMapDiagramEditor.updateActions()" from there.
-----------------
Alex Shatalin