de.cau.cs.kieler.core.annotations.ui.properties
Class AnnotationsPropertySection

java.lang.Object
  extended by org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
      extended by de.cau.cs.kieler.core.annotations.ui.properties.AnnotationsPropertySection
All Implemented Interfaces:
ISection

public class AnnotationsPropertySection
extends AbstractPropertySection

Property section for annotatable objects.

Rating red

Field Summary
static int COL_ANNOTATION
          column index for annotation name.
static int COL_VALUE
          column index for annotation value.
static String PLUGIN_ID
          the plugin identifier that contains the annotations property section.
 
Fields inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
STANDARD_LABEL_WIDTH
 
Constructor Summary
AnnotationsPropertySection()
           
 
Method Summary
 void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage)
          
 void dispose()
          
 void expand(Annotation annotation)
          Expands the tree at the given annotation.
 Annotatable getAnnotatable()
          Returns the currently selected annotatable.
 EditingDomain getEditingDomain()
          Returns the editing domain for model changes.
 Annotation getTableSelection()
          Returns the currently selected annotation in the table.
 void refresh()
          
 boolean shouldUseExtraSpace()
          
 
Methods inherited from class org.eclipse.ui.views.properties.tabbed.AbstractPropertySection
aboutToBeHidden, aboutToBeShown, getMinimumHeight, getPart, getSelection, getWidgetFactory, setInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final String PLUGIN_ID
the plugin identifier that contains the annotations property section.

See Also:
Constant Field Values

COL_ANNOTATION

public static final int COL_ANNOTATION
column index for annotation name.

See Also:
Constant Field Values

COL_VALUE

public static final int COL_VALUE
column index for annotation value.

See Also:
Constant Field Values
Constructor Detail

AnnotationsPropertySection

public AnnotationsPropertySection()
Method Detail

createControls

public void createControls(Composite parent,
                           TabbedPropertySheetPage tabbedPropertySheetPage)

Specified by:
createControls in interface ISection
Overrides:
createControls in class AbstractPropertySection

shouldUseExtraSpace

public boolean shouldUseExtraSpace()

Specified by:
shouldUseExtraSpace in interface ISection
Overrides:
shouldUseExtraSpace in class AbstractPropertySection

dispose

public void dispose()

Specified by:
dispose in interface ISection
Overrides:
dispose in class AbstractPropertySection

refresh

public void refresh()

Specified by:
refresh in interface ISection
Overrides:
refresh in class AbstractPropertySection

expand

public void expand(Annotation annotation)
Expands the tree at the given annotation.

Parameters:
annotation - an annotation that is displayed in the tree viewer

getAnnotatable

public Annotatable getAnnotatable()
Returns the currently selected annotatable.

Returns:
the selected annotatable

getEditingDomain

public EditingDomain getEditingDomain()
Returns the editing domain for model changes.

Returns:
the editing domain

getTableSelection

public Annotation getTableSelection()
Returns the currently selected annotation in the table.

Returns:
the selected annotation