Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Redo problem after delete operation
Redo problem after delete operation [message #1219662] Thu, 05 December 2013 10:32 Go to next message
Mithu Deb is currently offline Mithu DebFriend
Messages: 9
Registered: September 2013
Junior Member
Hi,

If i remove any elements from graphiti view followed by some other operation(say adding of elements), then on doing undo till the end of stack, my deleted elements will be added back but again if i perform redo only the removal of element is redone and the 2nd operation is not redone(at this point redo button gets disabled) as redolist is getting flushed.
This is happening if i perform delete operation in combination with other operation.

Will appreciate your response Smile

Kind Regards,

Mithu Deb
Re: Redo problem after delete operation [message #1219744 is a reply to message #1219662] Thu, 05 December 2013 15:40 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hm, not sure, but could it be that you trigger another feature (or recording
command) from your delete feature? In that case after processing the redo
this operation would replace whatever has been on the redo stack before.

The behavior is like:
- do operation1
- do operation2
- undo operation2
- undo operation1
- redo operation1
- do operation3

In that case operation3 would remove everything that was on the redo stack
as well.

Michael
Re: Redo problem after delete operation [message #1220024 is a reply to message #1219744] Mon, 09 December 2013 08:48 Go to previous messageGo to next message
Mithu Deb is currently offline Mithu DebFriend
Messages: 9
Registered: September 2013
Junior Member
Hi Michael,

Thanks for your response.
Redo problem gets fixed if we do a autoupdate(override isAutoUpdateAtRuntime()from AbstractDiagramTypeProvider class), but in case if we perform any other operation in normal scenario(suppose we have added a couple of elements to any node)then the updation of node fails and its not feasible to check the autoupdate for every operation in the application.
So the update operation is creating a mess while deleting any elements and subsequently if we do a undo and then redo.

Kind Regards,
Mithu Deb
Re: Redo problem after delete operation [message #1222053 is a reply to message #1220024] Thu, 19 December 2013 15:02 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi,

I'm not sure if I understood this. Do you trigger delete features from your
update feature?

Michael
Previous Topic:Rotated labels
Next Topic:IllegalValueException when loading diagram
Goto Forum:
  


Current Time: Fri Apr 19 11:47:33 GMT 2024

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

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

Back to the top