|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.views.properties.tabbed.AbstractPropertySection
org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractModelerPropertySection
org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractBasicTextPropertySection
public abstract class AbstractBasicTextPropertySection
A generic class to edit a property via text field. This class supports multi-select behavior
Field Summary |
---|
Fields inherited from class org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractModelerPropertySection |
---|
disposed, eObject, eventListener, input, propertiesProvider, VALUE_CHANGED_STRING |
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
---|
STANDARD_LABEL_WIDTH |
Constructor Summary | |
---|---|
AbstractBasicTextPropertySection()
|
Method Summary | |
---|---|
protected java.lang.Object |
computeNewPropertyValue()
|
void |
createControls(Composite parent,
TabbedPropertySheetPage aTabbedPropertySheetPage)
|
protected CLabel |
createLabelWidget(Composite parent)
Create a label for property name |
protected Text |
createTextWidget(Composite parent)
Instantiate a text widget |
void |
dispose()
|
void |
doCreateControls(Composite parent,
TabbedPropertySheetPage aTabbedPropertySheetPage)
Creates the GUI Control for this text property section |
protected TextChangeHelper |
getListener()
|
protected abstract java.lang.String |
getPropertyChangeCommandName()
|
protected abstract java.lang.String |
getPropertyNameLabel()
|
CLabel |
getPropertyNameLabelWidget()
|
protected java.lang.String[] |
getPropertyNameStringsArray()
returns as an array the property name |
protected abstract java.lang.String |
getPropertyValueString()
|
Composite |
getSectionComposite()
|
protected Text |
getTextWidget()
|
void |
refresh()
|
protected void |
refreshUI()
Refresh UI body - referesh will surround this with read action block |
protected void |
setPropertyValue(Control control)
User pressed Enter key after editing text field - update the model |
protected abstract void |
setPropertyValue(org.eclipse.emf.ecore.EObject object,
java.lang.Object value)
Set property value for the given object |
protected void |
startTextWidgetEventListener()
Start listening to the text widget events |
protected void |
stopTextWidgetEventListener()
Stop listening to text widget events |
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractModelerPropertySection |
---|
aboutToBeHidden, aboutToBeShown, adapt, addToEObjectList, createCommand, createCommand, digIntoGroups, executeAsCompositeCommand, executeAsReadAction, getEditingDomain, getEObject, getEObjectList, getEventListener, getFilter, getInput, getPrimarySelection, getStandardLabelWidth, getUpdateRequestCollapser, handleElementModifiedEvent, isCurrentSelection, isDisposed, isNotifierDeleted, isReadOnly, postUpdateRequest, setEditingDomain, setEObject, setInput, unwrap, update, update |
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
---|
getMinimumHeight, getPart, getSelection, getWidgetFactory, shouldUseExtraSpace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractBasicTextPropertySection()
Method Detail |
---|
protected abstract java.lang.String getPropertyNameLabel()
protected abstract void setPropertyValue(org.eclipse.emf.ecore.EObject object, java.lang.Object value)
object
- -
owner of the propertyvalue
- -
new valueprotected abstract java.lang.String getPropertyValueString()
protected abstract java.lang.String getPropertyChangeCommandName()
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage)
createControls
in interface ISection
createControls
in class AbstractModelerPropertySection
public void doCreateControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage)
Control
for this text property section
parent
- parent Composite
aTabbedPropertySheetPage
- TabbedPropertySheetPage
org.eclipse.gmf.runtime.common.ui.properties.ISection#createControls(org.eclipse.swt.widgets.Composite,
org.eclipse.gmf.runtime.common.ui.properties.TabbedPropertySheetPage)
protected void startTextWidgetEventListener()
protected void stopTextWidgetEventListener()
protected Text createTextWidget(Composite parent)
parent
- -
parent composite
protected java.lang.String[] getPropertyNameStringsArray()
protected CLabel createLabelWidget(Composite parent)
parent
- -
parent composite
protected void setPropertyValue(Control control)
control
- Control
protected java.lang.Object computeNewPropertyValue()
public void dispose()
dispose
in interface ISection
dispose
in class AbstractModelerPropertySection
public void refresh()
refresh
in interface ISection
refresh
in class AbstractPropertySection
protected void refreshUI()
protected TextChangeHelper getListener()
protected Text getTextWidget()
public CLabel getPropertyNameLabelWidget()
public Composite getSectionComposite()
|
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.