Skip to main content



      Home
Home » Eclipse Projects » GEF » Alignment Retarget Actions
Alignment Retarget Actions [message #168245] Mon, 14 February 2005 14:15 Go to next message
Eclipse UserFriend
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 #168258 is a reply to message #168245] Mon, 14 February 2005 15:08 Go to previous messageGo to next message
Eclipse UserFriend
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 #168266 is a reply to message #168258] Mon, 14 February 2005 15:21 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Alignment Retarget Actions [message #168298 is a reply to message #168266] Mon, 14 February 2005 17:12 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Alignment Retarget Actions [message #168321 is a reply to message #168298] Mon, 14 February 2005 18:06 Go to previous messageGo to next message
Eclipse UserFriend
CL [dnoyeb] Gilbert wrote:

> 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?

Sorry if I didn't make my question clear enough,...

The buttons show up but are disabled. What's required to get them to
actually work?
Adding the buttons, registering the actions,... and now?

Thanks,
Fabian
Re: Alignment Retarget Actions [message #168381 is a reply to message #168321] Tue, 15 February 2005 14:48 Go to previous message
Eclipse UserFriend
Fabian Wolf wrote:

> CL [dnoyeb] Gilbert wrote:
>
>> 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?
>
> Sorry if I didn't make my question clear enough,...
>
> The buttons show up but are disabled. What's required to get them to
> actually work?
> Adding the buttons, registering the actions,... and now?
>
> Thanks,
> Fabian

Problem ist solved!
@see <cutjiq$rre$1@www.eclipse.org>
Previous Topic:OSX Drag and Drop
Next Topic:Chaning properties don't make dirty
Goto Forum:
  


Current Time: Fri May 09 06:45:44 EDT 2025

Powered by FUDForum. Page generated in 0.04189 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top