Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Alignment Retarget Actions
Alignment Retarget Actions [message #168245] Mon, 14 February 2005 19:15 Go to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
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 20: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 20:21 Go to previous messageGo to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
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 22: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 23:06 Go to previous messageGo to next message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
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 19:48 Go to previous message
Fabian Wolf is currently offline Fabian WolfFriend
Messages: 96
Registered: July 2009
Member
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: Thu Apr 25 08:57:33 GMT 2024

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

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

Back to the top