Feature #5693

Add undo points to all actions modifying the graph

Added by Hannu Niemistö almost 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:2015-03-03
Priority:4Due date:2015-03-03
Assignee:Hannu Niemistö% Done:

100%

Category:-Spent time:-
Target version:1.18.1
Release notes:Added missing undo point marking to most known UI operations to prevent undo from returning the database state too far back into the past in one operation. Also made it easier to mark undo points by adding the API method markUndoPoint to org.simantics.db.Session interface. This makes it possible to mark an undo point without starting a transaction which often makes UI code cleaner and easier to write.
Tags: regression, undo
Story points-
Velocity based estimate-
ReleaseSimantics 1.18.1Release relationshipAuto

Description

  • In many UI operations, it is more natural to call markUndoPoint before starting the the write transaction than during write transaction, because transaction may be inside some generic utility code.

Associated revisions

Revision 31010
Added by Hannu Niemistö almost 3 years ago

(refs #5693) Added Session.markUndoPoint and removed dead code from WriteSupportImpl

Revision 31016
Added by Hannu Niemistö almost 3 years ago

(refs #5693) Add undo points to actions modifying the graph

Revision 31018
Added by Hannu Niemistö almost 3 years ago

(refs #5693) Javadoc for Session.markUndoPoint

Revision 31022
Added by Tuukka Lehtonen almost 3 years ago

Merged trunk@31010,31016,31018 to branches/simantics-1.18 on 2015-03-04 for 1.18.1 release.

refs #5693

Revision 31033
Added by Hannu Niemistö almost 3 years ago

(refs #5693) make Session.maskUndoPoint really to work

Revision 31034
Added by Tuukka Lehtonen almost 3 years ago

Merged trunk@31033 to branches/simantics-1.18 on 2015-03-05 for 1.18.1 release.

refs #5693

Revision 31130
Added by Tuukka Lehtonen over 2 years ago

Marked undo points in ConnectionSplitAndJoin and in a ConnectionBuilder special case that joins or connects flags after drawinng a connection between two disconnected flags.

refs #5693

Revision 31131
Added by Tuukka Lehtonen over 2 years ago

Merged trunk@31130 to branches/simantics-1.18 on 2015-03-26 for 1.18.1 release.

refs #5693

Revision 31133
Added by Tuukka Lehtonen over 2 years ago

Marked undo point in operation that connects a terminal to a disconnected diagram flag.

refs #5693

Revision 31134
Added by Tuukka Lehtonen over 2 years ago

Merged trunk@31133 to branches/simantics-1.18 on 2015-03-26 for 1.18.1 release.

refs #5693

Revision 31149
Added by Tuukka Lehtonen over 2 years ago

Added missing undo point mark to RouteGraphConnectTool.createConnection.

refs #5693

Revision 31150
Added by Tuukka Lehtonen over 2 years ago

Merged trunk@31149 to branches/simantics-1.18 on 2015-04-08 for 1.18.1 release.

refs #5693

History

#1 Updated by Hannu Niemistö almost 3 years ago

  • Subject changed from Add markUndoPoint method to Session to Add undo points to all actions modifying the graph
  • Description updated (diff)

#2 Updated by Tuukka Lehtonen over 2 years ago

  • Status changed from In Progress to Closed

#3 Updated by Tuukka Lehtonen over 2 years ago

  • % Done changed from 0 to 100

#4 Updated by Tuukka Lehtonen over 2 years ago

  • Release set to 17

#5 Updated by Tuukka Lehtonen over 2 years ago

  • Tags set to undo
  • Release notes set to Added missing undo point marking to several UI operations to prevent undo from returning the database state too far back into the past in one operation.

#6 Updated by Tuukka Lehtonen over 2 years ago

  • Tags changed from undo to undo, regression
  • Release notes changed from Added missing undo point marking to several UI operations to prevent undo from returning the database state too far back into the past in one operation. to Added missing undo point marking to most known UI operations to prevent undo from returning the database state too far back into the past in one operation. Also made it easier to mark undo points by adding the API method markUndoPoint to org.simantics.db.Session interface. This makes it possible to mark an undo point without starting a transaction which often makes UI code cleaner and easier to write.

Also available in: Atom PDF