|
Eclipse Platform Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.viewers.EditingSupport
org.eclipse.ui.views.properties.PropertyEditingSupport
public class PropertyEditingSupport
A concrete subclass of EditingSupport that implements cell editing
support for column-based viewers (such as e.g. TreeViewer or
TableViewer) based on an IPropertySourceProvider,
forwarding requests to the IPropertySource or
IPropertyDescriptor for the given property ID.
PropertyColumnLabelProvider| Field Summary | |
|---|---|
protected java.lang.Object |
propertyID
|
protected IPropertySourceProvider |
propertySourceProvider
|
| Constructor Summary | |
|---|---|
PropertyEditingSupport(ColumnViewer viewer,
IPropertySourceProvider propertySourceProvider,
java.lang.Object propertyID)
Creates a new instance to be used with the given viewer, based on the given property source provider and property ID. |
|
| Method Summary | |
|---|---|
protected boolean |
canEdit(java.lang.Object object)
Is the cell editable |
protected CellEditor |
getCellEditor(java.lang.Object object)
The editor to be shown |
protected java.lang.Object |
getValue(java.lang.Object object)
Get the value to set to the editor |
protected void |
setValue(java.lang.Object object,
java.lang.Object value)
Restore the value from the CellEditor Subclasses should overwrite! |
| Methods inherited from class org.eclipse.jface.viewers.EditingSupport |
|---|
getViewer, initializeCellEditorValue, saveCellEditorValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IPropertySourceProvider propertySourceProvider
protected java.lang.Object propertyID
| Constructor Detail |
|---|
public PropertyEditingSupport(ColumnViewer viewer,
IPropertySourceProvider propertySourceProvider,
java.lang.Object propertyID)
viewer - the column viewerpropertySourceProvider - the property source providerpropertyID - the property ID| Method Detail |
|---|
protected boolean canEdit(java.lang.Object object)
EditingSupport
canEdit in class EditingSupportobject - the model element
protected CellEditor getCellEditor(java.lang.Object object)
EditingSupport
getCellEditor in class EditingSupportobject - the model element
protected java.lang.Object getValue(java.lang.Object object)
EditingSupport
getValue in class EditingSupportobject - the model element
protected void setValue(java.lang.Object object,
java.lang.Object value)
EditingSupportSubclasses should overwrite!
setValue in class EditingSupportobject - the model elementvalue - the new value
|
Eclipse Platform Release 3.4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.