Skip to main content



      Home
Home » Eclipse Projects » GEF » Command LifeCYcle
Command LifeCYcle [message #246047] Mon, 03 November 2008 05:47 Go to next message
Eclipse UserFriend
Originally posted by: benoit.maggi.atosorigin.com

Hi everyone,

I'm currently working on an editor with EMF&GEF technologies. I already
have an editor which works fine with figure,editPart,Command ...

I try to make an evolution with an new Command, i add it to the policy
but the functionality don't work.

In debug mode, i see that the command is created, the method can execute
is called and return true but there is no call to the execute method.

There is no error or anything else.

Has someone any clue?

Thanks!

Benoit MAGGI
Re: Command LifeCYcle [message #246057 is a reply to message #246047] Mon, 03 November 2008 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shady_86.sify.com

i suggest you go a thorough debug line by line covering the edit policy part also...

i am very much sure that some exception been thrown somewhere which is not visible... since it is not possible that execute method is not called after canExecute() returned true
Re: Command LifeCYcle [message #246153 is a reply to message #246057] Mon, 10 November 2008 08:22 Go to previous message
Eclipse UserFriend
Have you tryed to use the method execute() from a CommandStack instance
?

i.e. yourEditor.getCommandStack().execute(new YourCommand( ... ));

sharad ha scritto:
> i suggest you go a thorough debug line by line covering the edit policy part also...
>
> i am very much sure that some exception been thrown somewhere which is not visible... since it is not possible that execute method is not called after canExecute() returned true
Previous Topic:[ZEST] Initialize Graph with IGNORE_INVISIBLE_LAYOUT
Next Topic:Focus traversal through a combination of SWT components and GEF figures
Goto Forum:
  


Current Time: Sun Nov 09 03:09:28 EST 2025

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

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

Back to the top