Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Delete Feature causes two commands in Undo Stack(Delete turns up as Update and Delete commands in the Undo Stack)
Delete Feature causes two commands in Undo Stack [message #1386661] Thu, 19 June 2014 09:22 Go to next message
Nirupama JT is currently offline Nirupama JTFriend
Messages: 1
Registered: June 2014
Junior Member
Hi,

we are using Pattern Approach to create and maintain the Shapes.
and hence extending DeleteFeatureForPattern in the Feature provider.
All (add,move,etc.,) Features function properly in the (Undo/Redo)command stack except delete.
The delete appears as two commands. Update and then Delete.
This caused a glitch in the UI. The Undo of the Update command causes the UI shape
to be removed, but the Delete command is the one that deletes.
However in Redo Stack it appears as one.

Tried the following approach,(did not solve the issue)
*called the updateIfPossible in the execute of a delete feature

Regards,
Nirupama
SAP Hana Modeler Developement
Re: Delete Feature causes two commands in Undo Stack [message #1389231 is a reply to message #1386661] Fri, 27 June 2014 14:17 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Nirupama,

usually you should not need to extend DeleteFeatureForPattern (see the
classes's header comment). From within the delete method of your pattern
class you should simply call update.

Michael
Previous Topic:Graphiti and SWTBot - getting a connection edit part
Next Topic:propertyview does not reflect the select element of diagram editor
Goto Forum:
  


Current Time: Thu Apr 25 09:09:52 GMT 2024

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

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

Back to the top