Class UndoablePropertySheetPage
java.lang.Object
org.eclipse.ui.part.Page
org.eclipse.ui.views.properties.PropertySheetPage
org.eclipse.gef.mvc.fx.ui.properties.UndoablePropertySheetPage
- All Implemented Interfaces:
EventListener
,IAdaptable
,ISelectionListener
,IPage
,IPageBookViewPage
,IPropertySheetPage
PropertySheetPage extension that allows to perform undo/redo of property
value changes also in case the related
IWorkbenchPart
is not active.-
Field Summary
Fields inherited from class org.eclipse.ui.views.properties.PropertySheetPage
HELP_CONTEXT_PROPERTY_SHEET_PAGE
-
Constructor Summary
ConstructorsConstructorDescriptionUndoablePropertySheetPage
(IWorkbenchPart workbenchPart, IOperationHistory operationHistory, IUndoContext undoContext) Constructs a newUndoablePropertySheetPage
using the providedIOperationHistory
. -
Method Summary
Modifier and TypeMethodDescriptionprotected UndoablePropertySheetEntry
Creates theIPropertySheetEntry
that is used as the root entry of thisUndoablePropertySheetPage
.void
dispose()
Overwritten to unregister command stack listener.Returns theIWorkbenchPart
thisUndoablePropertySheetPage
is related to.void
setActionBars
(IActionBars actionBars) Methods inherited from class org.eclipse.ui.views.properties.PropertySheetPage
createControl, getAdapter, getControl, getSaveablePart, handleEntrySelection, initDragAndDrop, makeContributions, refresh, selectionChanged, setFocus, setPropertySourceProvider, setRootEntry, setSorter
-
Constructor Details
-
UndoablePropertySheetPage
@Inject public UndoablePropertySheetPage(IWorkbenchPart workbenchPart, IOperationHistory operationHistory, IUndoContext undoContext) Constructs a newUndoablePropertySheetPage
using the providedIOperationHistory
.- Parameters:
operationHistory
- TheIOperationHistory
shared with the editor/view.undoContext
- TheIUndoContext
shared with the editor/view.workbenchPart
- TheIWorkbenchPart
thisUndoablePropertySheetPage
is related to. .
-
-
Method Details
-
createRootEntry
Creates theIPropertySheetEntry
that is used as the root entry of thisUndoablePropertySheetPage
.- Returns:
- A new
UndoablePropertySheetEntry
, bound to theIOperationHistory
andIUndoContext
used by thisUndoablePropertySheetPage
.
-
dispose
public void dispose()Overwritten to unregister command stack listener.- Specified by:
dispose
in interfaceIPage
- Overrides:
dispose
in classPropertySheetPage
- See Also:
-
getWorkbenchPart
Returns theIWorkbenchPart
thisUndoablePropertySheetPage
is related to.- Returns:
- The
IWorkbenchPart
that was passed in upon creation.
-
setActionBars
- Specified by:
setActionBars
in interfaceIPage
- Overrides:
setActionBars
in classPropertySheetPage
-