[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: implementing cut/copy/paste

I believe he has just failed to do this

 getSelectionActions().add(action.getID());

so his actions are registered, but not with the selection service or whatever.


Randy Hudson wrote:
The registry should hold onto actions maintained by the Editor instance.
RetargetActions should only be created by the ActionBarContributor, not each
editor instance.

The purpose of retarget actions is to map a single ActionBarContributor to
multiple editor instances within a given WorkbenchWindow.  I think actionbar
contributors were designed as 1-per-window-per-editor-type to reduce flicker
and repainting when changing between multiple java CU editors.  It also
reduces the number of native widgets created.

"Jesper Eskilson" <jojo@xxxxxxxxxxxx> wrote in message
news:cohec2$bf8$1@xxxxxxxxxxxxxxxxxx