|
Re: Alignment Retarget Actions [message #168258 is a reply to message #168245] |
Mon, 14 February 2005 20:08 |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
See LogicActionBarContributor. you need an associated RetargetAction.
I think the contributor is tied to the editor through the registry.
CL
Fabian Wolf wrote:
> Hi all,
>
> what exactly is needed to get the Alignment Retarget Actions working, as
> seen in the LogicExample Plugin ?
> I can't seem to find where they hook into.
>
> What would be the next step after adding...
>
> ActionRegistry registry = getActionRegistry();
> IAction action = new AlignmentAction((IWorkbenchPart)this,
> PositionConstants.LEFT);
> registry.registerAction(action);
> getSelectionActions().add(action.getId());
>
> ... to the GraphicalEditor#createActions()
>
> Thanks for any help!
>
> Fabian
|
|
|
|
Re: Alignment Retarget Actions [message #168298 is a reply to message #168266] |
Mon, 14 February 2005 22:12 |
Eclipse User |
|
|
|
Originally posted by: Lamont_Gilbert.rigidsoftware.com
Fabian Wolf wrote:
> CL [dnoyeb] Gilbert wrote:
>
>
>>See LogicActionBarContributor. you need an associated RetargetAction.
>>I think the contributor is tied to the editor through the registry.
>
>
> I did that - just forgot to explicitly mention it ;)
>
> Thanks though
So whats your question now then? do your buttons or menuitems show up
for the retarget actions?
CL
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03700 seconds