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:
java.util.EventListener
,IAdaptable
,ISelectionListener
,IPage
,IPageBookViewPage
,IPropertySheetPage
public class UndoablePropertySheetPage extends PropertySheetPage
PropertySheetPage extension that allows to perform undo/redo of property value changes also in case the relatedIWorkbenchPart
is not active.
-
-
Field Summary
-
Fields inherited from class org.eclipse.ui.views.properties.PropertySheetPage
HELP_CONTEXT_PROPERTY_SHEET_PAGE
-
-
Constructor Summary
Constructors Constructor Description UndoablePropertySheetPage(IWorkbenchPart workbenchPart, IOperationHistory operationHistory, IUndoContext undoContext)
Constructs a newUndoablePropertySheetPage
using the providedIOperationHistory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UndoablePropertySheetEntry
createRootEntry()
Creates theIPropertySheetEntry
that is used as the root entry of thisUndoablePropertySheetPage
.void
dispose()
Overwritten to unregister command stack listener.IWorkbenchPart
getWorkbenchPart()
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 Detail
-
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 Detail
-
createRootEntry
protected UndoablePropertySheetEntry 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:
PropertySheetPage.dispose()
-
getWorkbenchPart
public IWorkbenchPart getWorkbenchPart()
Returns theIWorkbenchPart
thisUndoablePropertySheetPage
is related to.- Returns:
- The
IWorkbenchPart
that was passed in upon creation.
-
setActionBars
public void setActionBars(IActionBars actionBars)
- Specified by:
setActionBars
in interfaceIPage
- Overrides:
setActionBars
in classPropertySheetPage
-
-