Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Direct Edit in GEF
Direct Edit in GEF [message #56380] Sun, 19 January 2003 22:14 Go to next message
Eclipse UserFriend
Originally posted by: sy_cheung2.yahoo.com

Hi,

When I double click on a click to invoke Direct Edit, when the
createDeleteComand() of my DirectEditPolicy is called?
why it is trying to create a Delete Command?

Thank you


Thread [main] (Suspended (breakpoint at line 21 in my.LogicLabelEditPolicy))

my.LogicLabelEditPolicy.createDeleteCommand(org.eclipse.gef. requests.GroupRe
quest) line: 21
my.LogicLabelEditPolicy(org.eclipse.gef.editpolicies.Compone ntEditPolicy).ge
tDeleteCommand(org.eclipse.gef.requests.GroupRequest) line: 66

my.LogicLabelEditPolicy(org.eclipse.gef.editpolicies.Compone ntEditPolicy).ge
tCommand(org.eclipse.gef.Request) line: 53

my.LogicLabelEditPolicy(org.eclipse.gef.examples.logicdesign er.edit.LogicLab
elEditPolicy).getCommand(org.eclipse.gef.Request) line: 22
Re: Direct Edit in GEF [message #56406 is a reply to message #56380] Sun, 19 January 2003 23:45 Go to previous message
Eric Bordeau is currently offline Eric BordeauFriend
Messages: 259
Registered: July 2009
Senior Member
Whenever selection changes, the delete action checks to see if it's enabled. To do this, it get's a
delete command from the target edit parts and checks to see if that command can execute. This
should only happen selection changes, though. Is a new delete command being created even when
selection isn't changing?

Eric


Sam Cheung wrote:
> Hi,
>
> When I double click on a click to invoke Direct Edit, when the
> createDeleteComand() of my DirectEditPolicy is called?
> why it is trying to create a Delete Command?
>
> Thank you
>
>
> Thread [main] (Suspended (breakpoint at line 21 in my.LogicLabelEditPolicy))
>
> my.LogicLabelEditPolicy.createDeleteCommand(org.eclipse.gef. requests.GroupRe
> quest) line: 21
> my.LogicLabelEditPolicy(org.eclipse.gef.editpolicies.Compone ntEditPolicy).ge
> tDeleteCommand(org.eclipse.gef.requests.GroupRequest) line: 66
>
> my.LogicLabelEditPolicy(org.eclipse.gef.editpolicies.Compone ntEditPolicy).ge
> tCommand(org.eclipse.gef.Request) line: 53
>
> my.LogicLabelEditPolicy(org.eclipse.gef.examples.logicdesign er.edit.LogicLab
> elEditPolicy).getCommand(org.eclipse.gef.Request) line: 22
>
>
Previous Topic:selection in I20030116
Next Topic:Font Style in draw2D label
Goto Forum:
  


Current Time: Wed Jul 17 22:28:34 GMT 2024

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

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

Back to the top