Eclipse Community Forums - RDF feed Eclipse Community Forums
Cut,Copy commands enabledWhen I am trying to get my cut, copy
main menu commands working in the same way that the default
context menu works when focused on a Text widget. i.e. if no
text is selected on the focused Text widget, cut and copy should
not be enabled.  I am able to enable the handler when the
activePartId is my editor, so far so good. However, the commands
are always active in the main menu, where in the context menu
they are disabled correctly.  I've tried using the selection
variable and count with no success so far.  Could someone please
point me in the right direction, or let me know if this is a
limitation?  Steve ]]> Stephen Jones 2012-09-16T22:08:05-00:00
Re: Cut,Copy commands enabledWhen In this case, you should have
to use legacy way. (IActionBars.setGlobalHandler() and Action,
you can get actionbars from viewsite or editorsite)  Command and
handler, menu extensions, core expressions are declarative and
cost very low to create U