|
||||||||||
| 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.emf.ecoretools.tabbedproperties.sections.AbstractTabbedPropertySection
public abstract class AbstractTabbedPropertySection
An abstract implementation of a section in a tab in the tabbed property sheet page for a tree editor. Clients specializing this class may implement the create widgets, setFormData and hooklisteners rather than overriding the create controls. Creation 5 avr. 2006
| Field Summary |
|---|
| Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
|---|
STANDARD_LABEL_WIDTH |
| Constructor Summary | |
|---|---|
AbstractTabbedPropertySection()
|
|
| Method Summary | |
|---|---|
void |
aboutToBeHidden()
|
void |
aboutToBeShown()
|
protected void |
addListener()
Adds a model listener to this object |
protected void |
clearDecorators()
Clear existing decorators |
protected void |
createCommand(java.lang.Object oldValue,
java.lang.Object newValue)
Manages a self-contained set of interrelated EMF models and the Commands that modify them. |
void |
createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
|
protected void |
createWidgets(org.eclipse.swt.widgets.Composite composite)
Section widgets should be created inside this method. |
org.eclipse.ui.IWorkbenchPage |
getActivePage()
Obtains the currently active workbench page. |
protected org.eclipse.emf.edit.domain.EditingDomain |
getEditingDomain()
This returns the editing domain as required by the IEditingDomainProvider interface. |
protected org.eclipse.emf.ecore.EObject |
getEObject()
|
protected java.util.List<org.eclipse.emf.ecore.EObject> |
getEObjectList()
|
protected abstract org.eclipse.emf.ecore.EStructuralFeature |
getFeature()
Get the feature for the combo field for the section. |
protected abstract java.lang.String |
getLabelText()
Get the label for the text field for the section. |
protected org.eclipse.swt.widgets.Composite |
getMainComposite(org.eclipse.swt.widgets.Composite parent)
Build the main composite for this section |
protected org.eclipse.emf.ecoretools.tabbedproperties.internal.utils.MessageManager |
getMessageManager()
|
protected org.eclipse.emf.common.notify.Adapter |
getModelListener()
Returns the generic model listener |
protected org.eclipse.swt.widgets.Composite |
getSectionComposite()
|
protected int |
getStandardLabelWidth(org.eclipse.swt.widgets.Composite parent,
java.lang.String[] labels)
Get the standard label width when labels for sections line up on the left hand side of the composite. |
protected org.eclipse.jface.action.IStatusLineManager |
getStatusLineManager()
|
protected void |
handleModelChanged(org.eclipse.emf.common.notify.Notification msg)
This method is called when an event occurred on the model objects |
protected void |
hookListeners()
Widgets created at createWidgets(Composite) may listen platform
events. |
protected boolean |
isReadOnly()
This returns whether the resource is read only in editing domain. |
void |
makeContributions(org.eclipse.jface.action.IMenuManager menuManager,
org.eclipse.jface.action.IToolBarManager toolBarManager,
org.eclipse.jface.action.IStatusLineManager statLineManager)
Sets the manager this view will use |
protected void |
removeListener()
Removes the model listener to this object |
protected void |
setDecorator(org.eclipse.swt.widgets.Control control,
java.lang.String message,
int type)
|
protected void |
setErrorDecorator(org.eclipse.swt.widgets.Control control,
java.lang.String message)
Add a decorator to the given control. |
protected void |
setErrorMessage(java.lang.String errorMessage)
Sets the error message to be displayed in the status line. |
protected void |
setInfoDecorator(org.eclipse.swt.widgets.Control control,
java.lang.String message)
Add a decorator to the given control. |
void |
setInput(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
|
protected void |
setMessage(java.lang.String message)
Sets the message to be displayed in the status line. |
protected void |
setSectionData(org.eclipse.swt.widgets.Composite composite)
This method should be implemented to set layout data to the widgets created at createWidgets(Composite). |
protected void |
setWarningDecorator(org.eclipse.swt.widgets.Control control,
java.lang.String message)
Add a decorator to the given control. |
| Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection |
|---|
dispose, getMinimumHeight, getPart, getSelection, getWidgetFactory, refresh, shouldUseExtraSpace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTabbedPropertySection()
| Method Detail |
|---|
public void createControls(org.eclipse.swt.widgets.Composite parent,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
createControls in interface org.eclipse.ui.views.properties.tabbed.ISectioncreateControls in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySectionISection.createControls(org.eclipse.swt.widgets.Composite,
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
public void setInput(org.eclipse.ui.IWorkbenchPart part,
org.eclipse.jface.viewers.ISelection selection)
setInput in interface org.eclipse.ui.views.properties.tabbed.ISectionsetInput in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySectionISection.setInput(org.eclipse.ui.IWorkbenchPart,
org.eclipse.jface.viewers.ISelection)public void aboutToBeHidden()
aboutToBeHidden in interface org.eclipse.ui.views.properties.tabbed.ISectionaboutToBeHidden in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySectionISection.aboutToBeHidden()public void aboutToBeShown()
aboutToBeShown in interface org.eclipse.ui.views.properties.tabbed.ISectionaboutToBeShown in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySectionISection.aboutToBeShown()
public void makeContributions(org.eclipse.jface.action.IMenuManager menuManager,
org.eclipse.jface.action.IToolBarManager toolBarManager,
org.eclipse.jface.action.IStatusLineManager statLineManager)
toolBarManager - the toolBarManager to display buttons on the toolBarmenuManager - the Menu manager to display menusstatLineManager - the status line manager to show messagespublic org.eclipse.ui.IWorkbenchPage getActivePage()
null if none is activeprotected org.eclipse.swt.widgets.Composite getSectionComposite()
protected org.eclipse.swt.widgets.Composite getMainComposite(org.eclipse.swt.widgets.Composite parent)
parent - The Section
protected boolean isReadOnly()
false when the file can be written.protected void setErrorMessage(java.lang.String errorMessage)
errorMessage - the message to be displayed, or nullprotected void setMessage(java.lang.String message)
message - the message to be displayed, or nullprotected void removeListener()
protected void addListener()
protected int getStandardLabelWidth(org.eclipse.swt.widgets.Composite parent,
java.lang.String[] labels)
parent - The parent composite used to create a GC.labels - The list of labels.
protected org.eclipse.emf.edit.domain.EditingDomain getEditingDomain()
IEditingDomainProvider interface. This is important for
implementing the static methods of AdapterFactoryEditingDomain
and for supporting CommandAction.
java.lang.IllegalArgumentException - There is an error when the part cannot be adapted in any
EditingDomain.
protected void createCommand(java.lang.Object oldValue,
java.lang.Object newValue)
Commands that modify them. The models are maintained in the form
of a ResourceSet. Commands that modify the model are typically
created through the domain and are executed using the
CommandStack.
oldValue - The previous property valuenewValue - The new value to setprotected org.eclipse.emf.ecore.EObject getEObject()
protected java.util.List<org.eclipse.emf.ecore.EObject> getEObjectList()
protected org.eclipse.jface.action.IStatusLineManager getStatusLineManager()
protected org.eclipse.emf.ecoretools.tabbedproperties.internal.utils.MessageManager getMessageManager()
protected void setDecorator(org.eclipse.swt.widgets.Control control,
java.lang.String message,
int type)
control - the Controlmessage - a Stringtype - the type
protected void setErrorDecorator(org.eclipse.swt.widgets.Control control,
java.lang.String message)
control - message -
protected void setWarningDecorator(org.eclipse.swt.widgets.Control control,
java.lang.String message)
control - message -
protected void setInfoDecorator(org.eclipse.swt.widgets.Control control,
java.lang.String message)
control - message - protected void clearDecorators()
protected org.eclipse.emf.common.notify.Adapter getModelListener()
protected void handleModelChanged(org.eclipse.emf.common.notify.Notification msg)
msg - the event notificationprotected abstract org.eclipse.emf.ecore.EStructuralFeature getFeature()
protected abstract java.lang.String getLabelText()
protected void createWidgets(org.eclipse.swt.widgets.Composite composite)
setSectionData(Composite) If widgets
has listeners implement the hookListeners().
composite - the parent CompositecreateControls(Composite, TabbedPropertySheetPage)protected void setSectionData(org.eclipse.swt.widgets.Composite composite)
createWidgets(Composite). This improves visibility
composite - Sometimes widgets will be set formDatas and position will
depend on parent composite.protected void hookListeners()
createWidgets(Composite) may listen platform
events. Set them here in order to improve visibility
|
Copyright 2007 Anyware Technologies. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||