Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » UpdateAction in GEF 2.0.3 (see Redbook sample)?
UpdateAction in GEF 2.0.3 (see Redbook sample)? [message #143751] Wed, 21 July 2004 13:15 Go to next message
Eclipse UserFriend
Originally posted by: mastr.arcor.de

Hey!

I created my Plug-In after the Redbook-Sample.
I'm using GEF 2.0.3 (because I have to) and there is no UpdateAction
defined in the API.

public void updateActions(List actionIDs) {
for(Iterator it = actionIDs.iterator(); it.hasNext(); ) {
IAction action = actionRegistry.getAction(it.next());
if( action != null && action instanceof UpdateAction )
((UpdateAction) action).update();
}
}

So how can I update my actions? Is there an other Action class
implementing this funtionality or must I workaround this?

Hope someone can help,
So far, Martin.
Re: UpdateAction in GEF 2.0.3 (see Redbook sample)? [message #143779 is a reply to message #143751] Wed, 21 July 2004 16:16 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
You should look at what GraphicalEditor is doing. Apparently, there's
something called Updatable.

"Martin S." <mastr@arcor.de> wrote in message
news:cdlq95$dfj$1@eclipse.org...
> Hey!
>
> I created my Plug-In after the Redbook-Sample.
> I'm using GEF 2.0.3 (because I have to) and there is no UpdateAction
> defined in the API.
>
> public void updateActions(List actionIDs) {
> for(Iterator it = actionIDs.iterator(); it.hasNext(); ) {
> IAction action = actionRegistry.getAction(it.next());
> if( action != null && action instanceof UpdateAction )
> ((UpdateAction) action).update();
> }
> }
>
> So how can I update my actions? Is there an other Action class
> implementing this funtionality or must I workaround this?
>
> Hope someone can help,
> So far, Martin.
>
Re: UpdateAction in GEF 2.0.3 (see Redbook sample)? [message #143860 is a reply to message #143779] Thu, 22 July 2004 03:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

Pratik Shah wrote:
> You should look at what GraphicalEditor is doing. Apparently, there's
> something called Updatable.

Not sure that this interface was available in 2.0.

Cu, Gunnar
Re: UpdateAction in GEF 2.0.3 (see Redbook sample)? [message #143864 is a reply to message #143751] Thu, 22 July 2004 03:50 Go to previous message
Eclipse UserFriend
Originally posted by: g.wagenknecht.planet-wagenknecht.de

Martin S. wrote:
> So how can I update my actions? Is there an other Action class
> implementing this funtionality or must I workaround this?

Not sure what actions you want to update. If this are your actions I would
just create the interface (you can even call it "Updatable") and implement
it in your actions.

Cu, Gunnar
Previous Topic:ClassCasteException when working with tutoial
Next Topic:About Action
Goto Forum:
  


Current Time: Fri Apr 26 00:12:15 GMT 2024

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

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

Back to the top