|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.emf.ui.properties.sections.PropertySheetEntry
org.eclipse.gmf.runtime.emf.ui.properties.sections.UndoableModelPropertySheetEntry
public class UndoableModelPropertySheetEntry
An property sheet entry for elements in the model. The changes to the model
element property are done through a model command executed by the
CommandManager so that the changes can be undone by undo
interval ID.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertySheetEntry |
|---|
descriptor, editor, editValue, parent, values |
| Fields inherited from interface org.eclipse.ui.views.properties.IPropertySheetEntry |
|---|
FILTER_ID_EXPERT |
| Constructor Summary | |
|---|---|
UndoableModelPropertySheetEntry(IOperationHistory operationHistory)
Intializes me with an operation history through which property change commands will be executed, undone and redone. |
|
| Method Summary | |
|---|---|
void |
applyEditorValue()
|
protected PropertySheetEntry[] |
createChildEntries(int size)
Creates a list of child PropertySheetEntry entries. |
protected PropertySheetEntry |
createChildEntry()
Create child entry for this PropertySheerEntry |
protected ICompositeCommand |
getCompositeCommand(java.lang.String propertyName)
|
TransactionalEditingDomain |
getEditingDomain()
Gets my editing domain. |
protected IOperationHistory |
getOperationHistory()
Gets my operation history. |
protected UndoableModelPropertySheetEntry |
getParentEntry()
Returns the parent. |
protected ICommand |
getPropertyCommand(java.lang.String propertyName,
java.lang.Object object,
java.lang.Object propertyId,
java.lang.Object value)
|
void |
resetPropertyValue()
|
void |
setEditingDomain(TransactionalEditingDomain editingDomain)
Sets my editing domain. |
protected void |
setValue(java.lang.Object newValue)
Set the value for this entry. |
void |
setValues(java.lang.Object[] objects)
Extracts the editing domain from the objects if I am the
root entry. |
protected void |
valueChanged(UndoableModelPropertySheetEntry child,
ICommand command)
The value of the given child entry has changed. |
| Methods inherited from class org.eclipse.gmf.runtime.emf.ui.properties.sections.PropertySheetEntry |
|---|
addPropertySheetEntryListener, cancelEditor, computeMergedPropertyDescriptors, computePropertyDescriptorsFor, createChildEntries, dispose, editorValueChanged, getCategory, getChildEntries, getDescription, getDescriptor, getDisplayName, getEditor, getEditValue, getErrorText, getFilters, getHelpContextIds, getImage, getPropertySource, getValueAsString, getValues, hasChildEntries, refreshValues, removePropertySheetEntryListener, setErrorText, setPropertySourceProvider, valueChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UndoableModelPropertySheetEntry(IOperationHistory operationHistory)
operationHistory - my operation history| Method Detail |
|---|
public void setEditingDomain(TransactionalEditingDomain editingDomain)
editingDomain - my editing domainpublic TransactionalEditingDomain getEditingDomain()
public void applyEditorValue()
applyEditorValue in interface ICellEditorListenerapplyEditorValue in interface IPropertySheetEntryapplyEditorValue in class PropertySheetEntrypublic void resetPropertyValue()
resetPropertyValue in interface IPropertySheetEntryresetPropertyValue in class PropertySheetEntryprotected void setValue(java.lang.Object newValue)
We set the given value as the value for all our value objects. We then call our parent to update the property we represent with the given value. We then trigger a model refresh.
setValue in class PropertySheetEntrynewValue - the new value
protected void valueChanged(UndoableModelPropertySheetEntry child,
ICommand command)
We must inform our parent so that it can update its value objects
Subclasses may override to set the property value in some custom way.
child - the child entry that changed its valuecommand - the command into which to compose my property chnage commandpublic void setValues(java.lang.Object[] objects)
objects if I am the
root entry.
setValues in interface IPropertySheetEntrysetValues in class PropertySheetEntryobjects - the new values for this entryprotected final IOperationHistory getOperationHistory()
protected UndoableModelPropertySheetEntry getParentEntry()
PropertySheetEntry
or null.
protected ICommand getPropertyCommand(java.lang.String propertyName,
java.lang.Object object,
java.lang.Object propertyId,
java.lang.Object value)
protected ICompositeCommand getCompositeCommand(java.lang.String propertyName)
protected PropertySheetEntry[] createChildEntries(int size)
PropertySheetEntryPropertySheetEntry entries.
createChildEntries in class PropertySheetEntrysize - list size
PropertySheerEntryprotected PropertySheetEntry createChildEntry()
PropertySheetEntryPropertySheerEntry
createChildEntry in class PropertySheetEntryPropertySheetEntry
|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.