Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » CommandStack example?
CommandStack example? [message #450444] Sat, 12 February 2005 12:31 Go to next message
Stephan Michels is currently offline Stephan MichelsFriend
Messages: 23
Registered: July 2009
Junior Member
Hi!

I'm searching for an example for a CommandStack to manage commands, which
can
be undone/redone. And an example, how they can be run into a separate
thread, so
that they don't block the GUI thread.

I try to build an editor, which is based on a simple object tree instead of
a text editor.

Hopefully someone can help me.

Thank you, Stephan Michels.
Re: CommandStack example? [message #450450 is a reply to message #450444] Sun, 13 February 2005 01:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: huangjun.cs.umb.edu

I recommend GEF's command stack to you.
You can get source code at http://www.eclipse.org/gef/ and search for
CommandStack class.

BTW: I don't think it is the function of a CommandStack to assure thread
related actions. It is Command's logic.

Best,
Jun

"Stephan Michels" <stephan@vern.chem.tu-berlin.de> wrote in message
news:cuksuj$gf4$1@www.eclipse.org...
> Hi!
>
> I'm searching for an example for a CommandStack to manage commands, which
> can
> be undone/redone. And an example, how they can be run into a separate
> thread, so
> that they don't block the GUI thread.
>
> I try to build an editor, which is based on a simple object tree instead
of
> a text editor.
>
> Hopefully someone can help me.
>
> Thank you, Stephan Michels.
>
Re: CommandStack example? [message #450474 is a reply to message #450450] Sun, 13 February 2005 11:30 Go to previous messageGo to next message
Stephan Michels is currently offline Stephan MichelsFriend
Messages: 23
Registered: July 2009
Junior Member
hunj wrote:

> I recommend GEF's command stack to you.
> You can get source code at http://www.eclipse.org/gef/ and search for
> CommandStack class.

Thank you.

> BTW: I don't think it is the function of a CommandStack to assure thread
> related actions. It is Command's logic.

Yes, I know, but I was thinking that there is an elegant way to invoke the
commands into a separate thread. And not to replicate the code in every
action.
Re: CommandStack example? [message #450480 is a reply to message #450474] Mon, 14 February 2005 04:55 Go to previous message
Eclipse UserFriend
Originally posted by: huangjun.cs.umb.edu

Problly, a command proxy or delegation can do this work well? So Command
Stack is really a general solution. I am not sure...

You comments are welcome :-)

Best,

Jun

"Stephan Michels" <stephan@vern.chem.tu-berlin.de> wrote in message
news:cundpb$a6m$1@www.eclipse.org...
> hunj wrote:
>
> > I recommend GEF's command stack to you.
> > You can get source code at http://www.eclipse.org/gef/ and search for
> > CommandStack class.
>
> Thank you.
>
> > BTW: I don't think it is the function of a CommandStack to assure thread
> > related actions. It is Command's logic.
>
> Yes, I know, but I was thinking that there is an elegant way to invoke the
> commands into a separate thread. And not to replicate the code in every
> action.
>
>
>
Previous Topic:Skinning
Next Topic:Replacing a child of a SashForm
Goto Forum:
  


Current Time: Fri Mar 29 10:44:34 GMT 2024

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

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

Back to the top