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 relatedIWorkbenchPartis 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 newUndoablePropertySheetPageusing the providedIOperationHistory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UndoablePropertySheetEntrycreateRootEntry()Creates theIPropertySheetEntrythat is used as the root entry of thisUndoablePropertySheetPage.voiddispose()Overwritten to unregister command stack listener.IWorkbenchPartgetWorkbenchPart()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 Detail
-
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 Detail
-
createRootEntry
protected UndoablePropertySheetEntry 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:
PropertySheetPage.dispose()
-
getWorkbenchPart
public IWorkbenchPart getWorkbenchPart()
Returns theIWorkbenchPartthisUndoablePropertySheetPageis related to.- Returns:
- The
IWorkbenchPartthat was passed in upon creation.
-
setActionBars
public void setActionBars(IActionBars actionBars)
- Specified by:
setActionBarsin interfaceIPage- Overrides:
setActionBarsin classPropertySheetPage
-
-