Modelers

org.topcased.modeler.editor.properties.sections
Class AbstractModelerPropertySection

java.lang.Object
  extended by org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
      extended by org.topcased.modeler.editor.properties.sections.AbstractModelerPropertySection
All Implemented Interfaces:
org.eclipse.ui.views.properties.tabbed.ISection
Direct Known Subclasses:
AbstractBooleanPropertySection, AbstractComboPropertySection, AbstractEnumerationPropertySection, AbstractTextPropertySection

public abstract class AbstractModelerPropertySection
extends org.eclipse.ui.views.properties.tabbed.AbstractPropertySection

An abstract implementation of a section in a tab in the tabbed property sheet page for the modeler. Creation 5 avr. 2006


Field Summary
protected  EObject eObject
          The current selected object or the first object in the selection when multiple objects are selected.
protected  java.util.List eObjectList
          The list of current selected objects.
protected  ModelerPropertySheetPage propertySheetPage
          The property sheet page for this section.
protected  org.eclipse.gef.EditPart selectedEditPart
          The current select EditPart
 
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
STANDARD_LABEL_WIDTH
 
Constructor Summary
AbstractModelerPropertySection()
           
 
Method Summary
 void createControls(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
           
protected  java.lang.Object[] getChoices(EObject object, EClassifier type)
          TODO comment this method
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.
 void setInput(org.eclipse.ui.IWorkbenchPart part, org.eclipse.jface.viewers.ISelection selection)
           
 
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
aboutToBeHidden, aboutToBeShown, 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
 

Field Detail

propertySheetPage

protected ModelerPropertySheetPage propertySheetPage
The property sheet page for this section.


eObject

protected EObject eObject
The current selected object or the first object in the selection when multiple objects are selected.


eObjectList

protected java.util.List eObjectList
The list of current selected objects.


selectedEditPart

protected org.eclipse.gef.EditPart selectedEditPart
The current select EditPart

Constructor Detail

AbstractModelerPropertySection

public AbstractModelerPropertySection()
Method Detail

getStandardLabelWidth

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. We line up to a fixed position, but if a string is wider than the fixed position, then we use that widest string.

Parameters:
parent - The parent composite used to create a GC.
labels - The list of labels.
Returns:
the standard label width.

createControls

public void createControls(org.eclipse.swt.widgets.Composite parent,
                           org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage aTabbedPropertySheetPage)
Specified by:
createControls in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
createControls in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
See Also:
ISection.createControls(org.eclipse.swt.widgets.Composite, org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)

setInput

public void setInput(org.eclipse.ui.IWorkbenchPart part,
                     org.eclipse.jface.viewers.ISelection selection)
Specified by:
setInput in interface org.eclipse.ui.views.properties.tabbed.ISection
Overrides:
setInput in class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
See Also:
ISection.setInput(org.eclipse.ui.IWorkbenchPart, org.eclipse.jface.viewers.ISelection)

getChoices

protected java.lang.Object[] getChoices(EObject object,
                                        EClassifier type)
TODO comment this method

Parameters:
object -
type -
Returns:

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.