Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Selection causes GroupRequest of Type "delete"
Selection causes GroupRequest of Type "delete" [message #142276] Fri, 09 July 2004 16:05
Eclipse UserFriend
Originally posted by: torsten-winkler.web.de

Hello all,
I am trying to delete EditParts from my GraphicalEditorWithPalette. For this
I am using GEF's DeleteAction. I can display the delete-menu entry in
eclipse's Edit Menu and selecting the Delete Entry causes the
ComponentEditPolicy of the selected edit part to create a DeleteCommand in
the method createDeleteCommand(GroupRequest request).
This is how I expect it to be.

My Problem is, that every selection (I am using a SelectionTool) causes the
same effect in the ComponentEdit Policy. This means GEF somehow creates an
GroupRequest and this Request is of the type "delete" upon each selection.
This Request is caught by the ComponentEditPolicy of the selected EditPart
and the DeleteCommand is created.

BTW: the same effect appears by selecting an EditPart by means of the
marquee tool.

Does anyone know why the selection creates these strange Requests?

Cheers

Torsten
Previous Topic:DeleteAction: Delete is not enabled
Next Topic:Problem of saving file
Goto Forum:
  


Current Time: Sun May 05 15:23:11 GMT 2024

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

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

Back to the top