This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245196 - Support undo/redo (UndoRedo) from property sheet
Summary: Support undo/redo (UndoRedo) from property sheet
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Property Sheet (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Stanislav Aubrecht
Depends on:
Reported: 2014-06-23 17:57 UTC by ebakke
Modified: 2014-06-23 17:57 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description ebakke 2014-06-23 17:57:42 UTC
As noted in Geertjan's blog posts [1,2,3], the Property Sheet currently does not give platform developers a way to support undo and redo, and developers have been devising some intricate workarounds just to achieve this (e.g. creating a custom property sheet TopComponent instead of using the existing one).

Proposal: If an explored Node has an org.openide.awt.UndoRedo object in its lookup, have the property sheet's TopComponent delegate to it. If multiple nodes are selected, delegate to any UndoRedo object in their lookup if all selected nodes have an UndoRedo object in their lookup and all UndoRedo objects are equal per Object.equals().

Also note Geertjan's comment in his most recent blog post about the topic [3]: "Adding a Savable to it would be the next step so that the Save action is enabled when the user changes a property in the Properties window." This would be a nice further enhancement.