Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Can't delete certain EditParts from the model
Can't delete certain EditParts from the model [message #218490] Mon, 26 June 2006 16:39 Go to next message
Eclipse UserFriend
Originally posted by: gui.le.conquerant.com

Hiya group,

I got my hands on an internal EMF/GEF project. It appears that, on the
graphical editor, the Delete action (right click - Delete) does not
appear on some figures.

Quite surprisingly, 'Delete' only appears on figures that are at the
root of the model (i.e.: drag & dropped on a blank worspace).

Anyone has got any lead in order for me to find the solution?

Thank you much.
Re: Can't delete certain EditParts from the model [message #218506 is a reply to message #218490] Mon, 26 June 2006 18:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lamont_gilbert.rigidsoftware.com

Gui wrote:

> Hiya group,
>
> I got my hands on an internal EMF/GEF project. It appears that, on the
> graphical editor, the Delete action (right click - Delete) does not
> appear on some figures.
>
> Quite surprisingly, 'Delete' only appears on figures that are at the
> root of the model (i.e.: drag & dropped on a blank worspace).
>
> Anyone has got any lead in order for me to find the solution?
>
> Thank you much.

I believe there is a delete request sent to the edit part. If the part does
not respond with a command that can delete it, then the part is essentially
un-deleteable.


--
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."
Re: Can't delete certain EditParts from the model [message #218573 is a reply to message #218506] Tue, 27 June 2006 10:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gui.le.conquerant.com

CL,

Thank you for the answer.

As I said, the EditParts are capable of handling the delete request
since you can delete them when dropped on a blank workspace.

What would not trigger the delete menu when figures are nested?

Thanks!

CL [dnoyeb] Gilbert a écrit :
> Gui wrote:
>
>> Hiya group,
>>
>> I got my hands on an internal EMF/GEF project. It appears that, on the
>> graphical editor, the Delete action (right click - Delete) does not
>> appear on some figures.
>>
>> Quite surprisingly, 'Delete' only appears on figures that are at the
>> root of the model (i.e.: drag & dropped on a blank worspace).
>>
>> Anyone has got any lead in order for me to find the solution?
>>
>> Thank you much.
>
> I believe there is a delete request sent to the edit part. If the part does
> not respond with a command that can delete it, then the part is essentially
> un-deleteable.
>
>
Re: Can't delete certain EditParts from the model [message #218581 is a reply to message #218573] Tue, 27 June 2006 11:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lamont_gilbert.rigidsoftware.com

Same thing. Have you set a breakpoint in your editparts delete request
handling method? If so, is it being called?

I think the delete request goes to the parent first. If the parent does not
forward it onto its children, or does not formulate a delete command for
the child, then they won't see it and no delete command will be generated.


CL

Gui wrote:

> CL,
>
> Thank you for the answer.
>
> As I said, the EditParts are capable of handling the delete request
> since you can delete them when dropped on a blank workspace.
>
> What would not trigger the delete menu when figures are nested?
>
> Thanks!
>
> CL [dnoyeb] Gilbert a écrit :
>> Gui wrote:
>>
>>> Hiya group,
>>>
>>> I got my hands on an internal EMF/GEF project. It appears that, on the
>>> graphical editor, the Delete action (right click - Delete) does not
>>> appear on some figures.
>>>
>>> Quite surprisingly, 'Delete' only appears on figures that are at the
>>> root of the model (i.e.: drag & dropped on a blank worspace).
>>>
>>> Anyone has got any lead in order for me to find the solution?
>>>
>>> Thank you much.
>>
>> I believe there is a delete request sent to the edit part. If the part
>> does not respond with a command that can delete it, then the part is
>> essentially un-deleteable.
>>
>>

--
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."
Re: Can't delete certain EditParts from the model [message #218635 is a reply to message #218581] Tue, 27 June 2006 17:12 Go to previous message
Eclipse UserFriend
Originally posted by: gui.le.conquerant.com

All right, thanks I figured out where the problem came from.

I had a flag which, by default, disallows an EditPart to be deleted. Odd!

Many thanks for you help!

CL [dnoyeb] Gilbert a écrit :
> Same thing. Have you set a breakpoint in your editparts delete request
> handling method? If so, is it being called?
>
> I think the delete request goes to the parent first. If the parent does not
> forward it onto its children, or does not formulate a delete command for
> the child, then they won't see it and no delete command will be generated.
>
>
> CL
>
> Gui wrote:
>
>> CL,
>>
>> Thank you for the answer.
>>
>> As I said, the EditParts are capable of handling the delete request
>> since you can delete them when dropped on a blank workspace.
>>
>> What would not trigger the delete menu when figures are nested?
>>
>> Thanks!
>>
>> CL [dnoyeb] Gilbert a écrit :
>>> Gui wrote:
>>>
>>>> Hiya group,
>>>>
>>>> I got my hands on an internal EMF/GEF project. It appears that, on the
>>>> graphical editor, the Delete action (right click - Delete) does not
>>>> appear on some figures.
>>>>
>>>> Quite surprisingly, 'Delete' only appears on figures that are at the
>>>> root of the model (i.e.: drag & dropped on a blank worspace).
>>>>
>>>> Anyone has got any lead in order for me to find the solution?
>>>>
>>>> Thank you much.
>>> I believe there is a delete request sent to the edit part. If the part
>>> does not respond with a command that can delete it, then the part is
>>> essentially un-deleteable.
>>>
>>>
>
Previous Topic:Viewport Problems with ScrollPane
Next Topic:Problems with routing of connection for nested nodes
Goto Forum:
  


Current Time: Fri Apr 26 08:57:59 GMT 2024

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

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

Back to the top