org.eclipse.gmt.umlx.editor.property
Class UndoablePropertySheetEntry
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.views.properties.PropertySheetEntry
org.eclipse.gmt.umlx.editor.property.UndoablePropertySheetEntry
- All Implemented Interfaces:
- org.eclipse.ui.views.properties.IPropertySheetEntry
public final class UndoablePropertySheetEntry
- extends org.eclipse.ui.views.properties.PropertySheetEntry
UndoablePropertySheetEntry provides undo support for changes made to IPropertySources
by the PropertySheetViewer
. Clients can
construct a PropertySheetPage
and use this
class as the root entry. All changes made to property sources displayed on that page
will be done using the provided command stack.
NOTE: If you intend to use an IPropertySourceProvider for a PropertySheetPage
whose root entry is an instance of of UndoablePropertySheetEntry, you should set the
IPropertySourceProvider on that root entry, rather than the PropertySheetPage.
Fields inherited from interface org.eclipse.ui.views.properties.IPropertySheetEntry |
FILTER_ID_EXPERT |
Methods inherited from class org.eclipse.ui.views.properties.PropertySheetEntry |
addPropertySheetEntryListener, applyEditorValue, getCategory, getChildEntries, getDescription, getDisplayName, getErrorText, getFilters, getHelpContextIds, getImage, getValueAsString, getValues, hasChildEntries, removePropertySheetEntryListener, setValues |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UndoablePropertySheetEntry
public UndoablePropertySheetEntry(SharedCommandStack stack)
- Constructs the root entry using the given command stack.
- Parameters:
stack
- the command stack- Since:
- 3.1
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.ui.views.properties.IPropertySheetEntry
- Overrides:
dispose
in class org.eclipse.ui.views.properties.PropertySheetEntry
- See Also:
IPropertySheetEntry.dispose()
getEditor
public org.eclipse.jface.viewers.CellEditor getEditor(org.eclipse.swt.widgets.Composite parent)
- Specified by:
getEditor
in interface org.eclipse.ui.views.properties.IPropertySheetEntry
- Overrides:
getEditor
in class org.eclipse.ui.views.properties.PropertySheetEntry
resetPropertyValue
public void resetPropertyValue()
- Specified by:
resetPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySheetEntry
- Overrides:
resetPropertyValue
in class org.eclipse.ui.views.properties.PropertySheetEntry
- See Also:
IPropertySheetEntry.resetPropertyValue()
setPropertySourceProvider
public void setPropertySourceProvider(org.eclipse.ui.views.properties.IPropertySourceProvider provider)
- Overrides:
setPropertySourceProvider
in class org.eclipse.ui.views.properties.PropertySheetEntry