Community
Participate
Working Groups
Hello, We have added cut/copy/paste/delete menu options within IMenuManager by overriding the menuAboutToShow() method. The CommandContributionItem for Delete item:- public CommandContributionItem getDeleteMenuItem() { return new CommandContributionItem( new CommandContributionItemParameter(PlatformUI.getWorkbench(), "org.eclipse.ui.edit.delete", "org.eclipse.ui.edit.delete", SWT.NONE)); } The create Delete action code:- private IAction createDeleteAction() { return new Action() { @Override public void run() { delete(); } @Override public boolean isEnabled() { return canDelete(); } }; } This issue occurs specifically on changing the perspectives from Open perspective popup. The isEnabled() for Delete is never invoked. However, after switching between tabs, the menu gets enabled. It seems that on switching between perspectives, the listener linked to delete menu gets lost somehow. Could you please take a look and let me know what can be done. Kind regards, Nandan S. Pai