Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 79680 - UML undo/redo functionality request
UML undo/redo functionality request
Status: NEW
Product: uml
Classification: Unclassified
Component: General
All All
: P1 with 8 votes (vote)
Assigned To: issues@uml
: 118927 123473 123843 135057 136826 152821 153164 154698 (view as bug list)
Depends on: 135057
  Show dependency treegraph
Reported: 2006-07-04 13:03 UTC by Sergey Petrov
Modified: 2009-12-25 05:56 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2006-07-04 13:03:24 UTC
If you delete a class from a class diagram, no undo functionality is provided.
If this happens by accident, you have to define the class from scratch.

HOW TO REPRODUCE: Deleting a class from the UML diagram.

EXPECTED VS. ACTUAL RESULTS: Undo functionality instead creating from
Comment 2 Peter Lam 2007-10-15 20:39:35 UTC
*** Issue 118927 has been marked as a duplicate of this issue. ***
Comment 3 _ wadechandler 2007-10-16 01:21:51 UTC
So is this in design at the moment? I wasn't 100% sure this is what Peter meant in a comment in the duplicate. I'm just
wondering because this is a big deal for being able to use UML in real projects where an accidental change in many
elements can have a large impact.
Comment 4 Peter Lam 2007-10-16 01:29:57 UTC
sorry, I was not too clear. I meant the current design is that undo/redo is not yet supported. 
Yes, I agree that this feature is very important. It's currently on the roadmap for future releases (Promotion J). Below
is the link to the UML roadmap.

Comment 5 _ wadechandler 2007-10-16 01:52:03 UTC
I don't know how similar the code in UML using graph is to the form module (Matisse) code (both using Swing I
suppose...probably only similarities other than an underlying model), but you guys might be able to use the form module
undo/redo functionality as a base. Obviously different, but may have something you can use or get ideas from.
Comment 6 Sergey Petrov 2007-10-16 07:25:13 UTC
It wasn't implemented before because there was direct linage to source code (live roundtrip) and undo/redo was required
to store not only diagram changes but also source code changes and fle system changes (classes renaming/deletion,
creation etc to correctly restore content of classes, folders), but now it should be easier to implement with less
performance hit
Comment 7 Peter Lam 2007-12-13 17:19:01 UTC
*** Issue 123843 has been marked as a duplicate of this issue. ***
Comment 8 Peter Lam 2007-12-13 17:34:20 UTC
*** Issue 123473 has been marked as a duplicate of this issue. ***
Comment 9 giorgio42 2008-01-19 20:21:29 UTC
The requirement is more general: implement undo/redo functionality for all operations. Without this feature UML
support in NB is just for playing around with UML a bit, not even good enough for learning.

But if you need to prioritize, my suggestion is, based on consequences of unintended changes:
1) Undo/redo for deletes.
2) Undo/redo for layout.

I have been working on a simple deployment diagram and all automatic layout algorithms actually ruined the layout
completely. Having no undo capability makes this a really painful experience.

Nonetheless UML in NetBeans looks very promising. Sometime in the future NB UML will the only free UML designer,
that you can actually use for serious projects.


Comment 10 Sergey Petrov 2008-01-19 20:32:52 UTC
For layout undo there is a workaround: it's possible to save diagram before layout and close without saving after layout
to retore state before layout.
Comment 11 pepijn 2008-06-09 16:35:33 UTC
*** Issue 136826 has been marked as a duplicate of this issue. ***
Comment 12 Sergey Petrov 2008-11-09 21:03:45 UTC
*** Issue 152821 has been marked as a duplicate of this issue. ***
Comment 13 Sergey Petrov 2008-11-13 17:04:02 UTC
*** Issue 153164 has been marked as a duplicate of this issue. ***
Comment 14 Sergey Petrov 2008-12-05 10:25:52 UTC
*** Issue 154698 has been marked as a duplicate of this issue. ***
Comment 15 Sergey Petrov 2008-12-05 10:26:34 UTC
*** Issue 135057 has been marked as a duplicate of this issue. ***
Comment 16 giorgio42 2008-12-05 11:17:36 UTC
Is there any schedule for implementing undo/redo? Will it be available in 7.0?

Comment 17 Sergey Petrov 2008-12-05 15:16:45 UTC
sorry, it's currently hard to estimate when it can be done.
Comment 18 giorgio42 2009-12-25 05:56:22 UTC
Is any work at all being done on UML these days ? Should we just think that UML is unsupported by NetBeans (while a lot of way less important crap - like PHP - is ?)

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo