[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] org.eclipse.ui.edit.copy NotHandledException

Hi,

Eclipse 3.4.2/linux

I've included the org.eclipse.ui.edit.copy action in my application, and supplied my own handler, which is working fine. However, I'm having problems when the default handler (WidgetMethodHandler) is used. The copy action in the Edit menu is always enabled, whenever this handler is being used, regardless of whether or not the handler's isHandled() evaluates to true.

When the copy command is executed, the isHandled() is checked, returns false, so the handler isn't used and a NotHandledException is thrown.

This behaviour can be reproduced in eclipse 3.4.2/linux via the following actions:

Open a plugin.xml editor, select the overview tab, in the outline view select "overview", in the Edit menu select copy, check the error log.

I've tried to reproduce this on eclipse 3.5/windows/linux and it doesn't seem to happen (although I've not debugged to find out why).

Is this a 3.4.2 bug?  Is there a workaround?

Thanks in advance,

Stew