Class AbstractSectionDescriptor
java.lang.Object
org.eclipse.ui.views.properties.tabbed.AbstractSectionDescriptor
- All Implemented Interfaces:
ISectionDescriptor
An abstract implementation of a section descriptor for the tabbed property
view.
- Since:
- 3.4
- Author:
- Anthony Hunter
-
Field Summary
Fields inherited from interface org.eclipse.ui.views.properties.tabbed.ISectionDescriptor
ENABLES_FOR_ANY, TOP -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for AbstractSectionDescriptor.AbstractSectionDescriptor(ITypeMapper typeMapper) Constructor for AbstractSectionDescriptor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanappliesTo(IWorkbenchPart part, ISelection selection) Determines if this section applies to the selection.Get the section identifier below which this section is displayed.intGet the value for section enablement which is a precise number of items selected.Get the section filter instance for this section.Get the valid input types for this section.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.views.properties.tabbed.ISectionDescriptor
getId, getSectionClass, getTargetTab
-
Constructor Details
-
AbstractSectionDescriptor
public AbstractSectionDescriptor()Constructor for AbstractSectionDescriptor. -
AbstractSectionDescriptor
Constructor for AbstractSectionDescriptor.- Parameters:
typeMapper- the type mapper for the section.
-
-
Method Details
-
appliesTo
Description copied from interface:ISectionDescriptorDetermines if this section applies to the selection.- Specified by:
appliesToin interfaceISectionDescriptor- Parameters:
part- the current workbench part.selection- the selection.- Returns:
trueif this section applies to the current selection.
-
getAfterSection
Description copied from interface:ISectionDescriptorGet the section identifier below which this section is displayed."top"is returned if this section is the top most section or if there is one section in the tab.- Specified by:
getAfterSectionin interfaceISectionDescriptor- Returns:
- the section identifier.
-
getEnablesFor
public int getEnablesFor()Description copied from interface:ISectionDescriptorGet the value for section enablement which is a precise number of items selected. For example: enablesFor="1" enables the section only when one item is selected. If not specified, enable for any selection and return ENABLES_FOR_ANY.- Specified by:
getEnablesForin interfaceISectionDescriptor- Returns:
- the value for section enablement.
-
getFilter
Description copied from interface:ISectionDescriptorGet the section filter instance for this section. Return null if no filter for this section.- Specified by:
getFilterin interfaceISectionDescriptor- Returns:
- the section filter instance.
-
getInputTypes
Description copied from interface:ISectionDescriptorGet the valid input types for this section.- Specified by:
getInputTypesin interfaceISectionDescriptor- Returns:
- the valid input types for this section.
-