|
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
org.eclipse.gmf.runtime.diagram.ui.properties.sections.DiagramGeneralSection
public class DiagramGeneralSection
The general section displayed for diagrams in the properties view
| Field Summary | |
|---|---|
protected static java.lang.String |
DESCRIPTION
Description label. |
protected static java.lang.String |
DESCRIPTION_LABEL
Description label. |
protected static java.lang.String |
DIAGRAM_TYPE_LABEL
Type label. |
static java.lang.String[] |
GENERAL_DIAGRAM_LABELS
The labels used by the General Diagram section |
protected static java.lang.String |
NAME
Name label. |
protected static java.lang.String |
NAME_LABEL
Name label for diagram general section. |
| 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 | |
|---|---|
DiagramGeneralSection()
|
|
| Method Summary | |
|---|---|
protected EObject |
adapt(java.lang.Object object)
Adapt the object to an EObject - if possible |
void |
dispose()
|
void |
doCreateControls(Composite parent,
TabbedPropertySheetPage aTabbedPropertySheetPage)
Creates the GUI Control for this text property section |
protected java.lang.String |
getDiagramType(Diagram diagram)
Gets the string to be displayed in the diagram type field. |
protected java.lang.String |
getPropertyChangeCommandName()
|
protected java.lang.String |
getPropertyNameLabel()
|
protected java.lang.String[] |
getPropertyNameStringsArray()
returns as an array the property name |
protected java.lang.String |
getPropertyValueString()
|
protected boolean |
isCurrentSelection(Notification notification,
EObject element)
Determines if the page is displaying properties for this element |
protected void |
refreshUI()
Refresh UI body - referesh will surround this with read action block |
protected void |
setDescription()
User pressed Enter key after editing name field - update the model |
protected void |
setPropertyValue(Control control)
User pressed Enter key after editing text field - update the model |
protected void |
setPropertyValue(EObject object,
java.lang.Object value)
Set property value for the given object |
protected EObject |
unwrap(java.lang.Object object)
Enforce the correct type selection - we are only intersted in Diagram objects |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractBasicTextPropertySection |
|---|
computeNewPropertyValue, createControls, createLabelWidget, createTextWidget, getListener, getPropertyNameLabelWidget, getSectionComposite, getTextWidget, refresh, startTextWidgetEventListener, stopTextWidgetEventListener |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.properties.sections.AbstractModelerPropertySection |
|---|
aboutToBeHidden, aboutToBeShown, addToEObjectList, createCommand, createCommand, executeAsCompositeCommand, executeAsReadAction, getEditingDomain, getEObject, getEObjectList, getEventListener, getFilter, getInput, getPrimarySelection, getStandardLabelWidth, getUpdateRequestCollapser, handleElementModifiedEvent, isDisposed, isNotifierDeleted, isReadOnly, postUpdateRequest, setEditingDomain, setEObject, setInput, 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 |
| Field Detail |
|---|
protected static final java.lang.String NAME_LABEL
protected static final java.lang.String DIAGRAM_TYPE_LABEL
protected static final java.lang.String DESCRIPTION_LABEL
public static final java.lang.String[] GENERAL_DIAGRAM_LABELS
protected static final java.lang.String NAME
protected static final java.lang.String DESCRIPTION
| Constructor Detail |
|---|
public DiagramGeneralSection()
| Method Detail |
|---|
protected void setDescription()
public void dispose()
dispose in interface ISectiondispose in class AbstractBasicTextPropertySectionprotected void refreshUI()
AbstractBasicTextPropertySection
refreshUI in class AbstractBasicTextPropertySectionprotected java.lang.String getDiagramType(Diagram diagram)
diagram - the diagram in question
protected EObject unwrap(java.lang.Object object)
unwrap in class AbstractModelerPropertySectionobject - -
object from a diagram or ME
protected EObject adapt(java.lang.Object object)
adapt in class AbstractModelerPropertySectionobject - object from a diagram or ME
protected boolean isCurrentSelection(Notification notification,
EObject element)
AbstractModelerPropertySection
isCurrentSelection in class AbstractModelerPropertySectionnotification - The notificationelement - The element to be tested
protected java.lang.String getPropertyNameLabel()
getPropertyNameLabel in class AbstractBasicTextPropertySectionprotected void setPropertyValue(Control control)
AbstractBasicTextPropertySection
setPropertyValue in class AbstractBasicTextPropertySectioncontrol - Control
protected void setPropertyValue(EObject object,
java.lang.Object value)
AbstractBasicTextPropertySection
setPropertyValue in class AbstractBasicTextPropertySectionobject - -
owner of the propertyvalue - -
new valueprotected java.lang.String getPropertyValueString()
getPropertyValueString in class AbstractBasicTextPropertySectionprotected java.lang.String getPropertyChangeCommandName()
getPropertyChangeCommandName in class AbstractBasicTextPropertySectionprotected java.lang.String[] getPropertyNameStringsArray()
AbstractBasicTextPropertySection
getPropertyNameStringsArray in class AbstractBasicTextPropertySection
public void doCreateControls(Composite parent,
TabbedPropertySheetPage aTabbedPropertySheetPage)
AbstractBasicTextPropertySectionControl for this text property section
doCreateControls in class AbstractBasicTextPropertySectionparent - parent CompositeaTabbedPropertySheetPage - TabbedPropertySheetPageorg.eclipse.gmf.runtime.common.ui.properties.ISection#createControls(org.eclipse.swt.widgets.Composite,
org.eclipse.gmf.runtime.common.ui.properties.TabbedPropertySheetPage)
|
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.