[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] how to delete element in a MultiPageEditorPart

Hi,

I would like to use delete action with a multiPageEditorPart.
so
I have create EditorContextMenuProvider in which i have write:


action = getActionRegistry().getAction(ActionFactory.DELETE.getId()); if (action.isEnabled()) menu.appendToGroup(GEFActionConstants.GROUP_EDIT, action);

But the "action.isEnabled" return always false whereas in a simple editor it runs.
What have to do?


Thanks