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 newUndoablePropertySheetPageusing the providedIOperationHistory. -
Method Summary
Modifier and TypeMethodDescriptionprotected UndoablePropertySheetEntryCreates theIPropertySheetEntrythat is used as the root entry of thisUndoablePropertySheetPage.voiddispose()Overwritten to unregister command stack listener.Returns theIWorkbenchPartthisUndoablePropertySheetPageis related to.voidsetActionBars(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 newUndoablePropertySheetPageusing the providedIOperationHistory.- Parameters:
operationHistory- TheIOperationHistoryshared with the editor/view.undoContext- TheIUndoContextshared with the editor/view.workbenchPart- TheIWorkbenchPartthisUndoablePropertySheetPageis related to. .
-
-
Method Details
-
createRootEntry
Creates theIPropertySheetEntrythat is used as the root entry of thisUndoablePropertySheetPage.- Returns:
- A new
UndoablePropertySheetEntry, bound to theIOperationHistoryandIUndoContextused by thisUndoablePropertySheetPage.
-
dispose
public void dispose()Overwritten to unregister command stack listener.- Specified by:
disposein interfaceIPage- Overrides:
disposein classPropertySheetPage- See Also:
-
getWorkbenchPart
Returns theIWorkbenchPartthisUndoablePropertySheetPageis related to.- Returns:
- The
IWorkbenchPartthat was passed in upon creation.
-
setActionBars
- Specified by:
setActionBarsin interfaceIPage- Overrides:
setActionBarsin classPropertySheetPage
-