Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Migrating 2.x to 3.x ActionBarContributor
Migrating 2.x to 3.x ActionBarContributor [message #157074] Sat, 06 November 2004 16:58 Go to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

I am migrating my application to 3.0 and the actions are deprecated. I
was using CopyRetargetAction, but it says the type is deprecated.

What is the replacement for
org.eclipse.geg.ui.actions.CopyRetargetAction? and
org.eclipse.geg.ui.actions.PasteRetargetAction?

The document says to use org.eclipse.ui.actions.ActionsFactory instead.
However, this is not a direct replacement and I don't know what I'm
supposed to do here. I been away for about a year and am kinda lost..



--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Re: Migrating 2.x to 3.x ActionBarContributor [message #157253 is a reply to message #157074] Mon, 08 November 2004 15:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The CopyRetargetAction does not do anything special. Ask the ActionFactory
to create you your own Copy action or just instantiate RetargetAction.

BTW, you only need retarget actions for the toolbar

"CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in message
news:cmivrn$8u7$1@eclipse.org...
> I am migrating my application to 3.0 and the actions are deprecated. I
> was using CopyRetargetAction, but it says the type is deprecated.
>
> What is the replacement for
> org.eclipse.geg.ui.actions.CopyRetargetAction? and
> org.eclipse.geg.ui.actions.PasteRetargetAction?
>
> The document says to use org.eclipse.ui.actions.ActionsFactory instead.
> However, this is not a direct replacement and I don't know what I'm
> supposed to do here. I been away for about a year and am kinda lost..
>
>
>
> --
> Respectfully,
>
>
> CL Gilbert
>
> "Verily, verily, I say unto you, He that entereth not by the door() into
> the sheepfold{}, but climbeth up some other *way, the same is a thief
> and a robber." John 10:1
>
> GnuPG Key Fingerprint:
> 82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
>
> For a free Java interface to Freechess.org see
> http://www.rigidsoftware.com/Chess/chess.html
Re: Migrating 2.x to 3.x ActionBarContributor [message #157421 is a reply to message #157253] Tue, 09 November 2004 16:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Actionbar is a toolbar right?

What I did was ActionFactory.COPY.create

This method however wants a workbenchwindow, so I had to get one with
getPage().getWorkbenchWindow(). But it compiled. Now I gotta remember
how to use it to see if it works. One day Im gonna learn unit testing I
suppose...


Randy Hudson wrote:
> The CopyRetargetAction does not do anything special. Ask the ActionFactory
> to create you your own Copy action or just instantiate RetargetAction.
>
> BTW, you only need retarget actions for the toolbar
>
> "CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in message
> news:cmivrn$8u7$1@eclipse.org...
>
>>I am migrating my application to 3.0 and the actions are deprecated. I
>>was using CopyRetargetAction, but it says the type is deprecated.
>>
>>What is the replacement for
>>org.eclipse.geg.ui.actions.CopyRetargetAction? and
>>org.eclipse.geg.ui.actions.PasteRetargetAction?
>>
>>The document says to use org.eclipse.ui.actions.ActionsFactory instead.
>> However, this is not a direct replacement and I don't know what I'm
>>supposed to do here. I been away for about a year and am kinda lost..
>>



--
Respectfully,


CL Gilbert

"Verily, verily, I say unto you, He that entereth not by the door() into
the sheepfold{}, but climbeth up some other *way, the same is a thief
and a robber." John 10:1

GnuPG Key Fingerprint:
82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D

For a free Java interface to Freechess.org see
http://www.rigidsoftware.com/Chess/chess.html
Re: Migrating 2.x to 3.x ActionBarContributor [message #157443 is a reply to message #157421] Tue, 09 November 2004 16:30 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Actually, after I posted this I noticed that these factories are hooking
listeners in addition to creating actions. This means that your copy action
will get hooked twice as a part listener, since we hook it again in
addRetargetAction. I think the result is nothing because multiple calls to
addListener are ignored.


"CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in message
news:cmqqki$2n1$1@eclipse.org...
> Actionbar is a toolbar right?
>
> What I did was ActionFactory.COPY.create
>
> This method however wants a workbenchwindow, so I had to get one with
> getPage().getWorkbenchWindow(). But it compiled. Now I gotta remember
> how to use it to see if it works. One day Im gonna learn unit testing I
> suppose...
>
>
> Randy Hudson wrote:
> > The CopyRetargetAction does not do anything special. Ask the
ActionFactory
> > to create you your own Copy action or just instantiate RetargetAction.
> >
> > BTW, you only need retarget actions for the toolbar
> >
> > "CL [dnoyeb] Gilbert" <Lamont_Gilbert@rigidsoftware.com> wrote in
message
> > news:cmivrn$8u7$1@eclipse.org...
> >
> >>I am migrating my application to 3.0 and the actions are deprecated. I
> >>was using CopyRetargetAction, but it says the type is deprecated.
> >>
> >>What is the replacement for
> >>org.eclipse.geg.ui.actions.CopyRetargetAction? and
> >>org.eclipse.geg.ui.actions.PasteRetargetAction?
> >>
> >>The document says to use org.eclipse.ui.actions.ActionsFactory instead.
> >> However, this is not a direct replacement and I don't know what I'm
> >>supposed to do here. I been away for about a year and am kinda lost..
> >>
>
>
>
> --
> Respectfully,
>
>
> CL Gilbert
>
> "Verily, verily, I say unto you, He that entereth not by the door() into
> the sheepfold{}, but climbeth up some other *way, the same is a thief
> and a robber." John 10:1
>
> GnuPG Key Fingerprint:
> 82A6 8893 C2A1 F64E A9AD 19AE 55B2 4CD7 80D2 0A2D
>
> For a free Java interface to Freechess.org see
> http://www.rigidsoftware.com/Chess/chess.html
Previous Topic:How to use Markers in GEF
Next Topic:Editor -> MultiPageEditor
Goto Forum:
  


Current Time: Sun Jun 30 19:19:55 GMT 2024

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

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

Back to the top