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

You have to update the selection actions of your sub editor.
There?s already a thread in this newsgroup.



"Patrick" <patricktessier@xxxxxxxxx> wrote in message
news:0d487570ad37034882e303bb92583707$1@xxxxxxxxxxxxxxxxxx
> 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
>