public abstract class AbstractSectionDescriptor extends Object implements ISectionDescriptor
ENABLES_FOR_ANY, TOP
Constructor and Description |
---|
AbstractSectionDescriptor()
Constructor for AbstractSectionDescriptor.
|
AbstractSectionDescriptor(ITypeMapper typeMapper)
Constructor for AbstractSectionDescriptor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(IWorkbenchPart part,
ISelection selection)
Determines if this section applies to the selection.
|
String |
getAfterSection()
Get the section identifier below which this section is displayed.
|
int |
getEnablesFor()
Get the value for section enablement which is a precise number of items
selected.
|
IFilter |
getFilter()
Get the section filter instance for this section.
|
List |
getInputTypes()
Get the valid input types for this section.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getSectionClass, getTargetTab
public AbstractSectionDescriptor()
public AbstractSectionDescriptor(ITypeMapper typeMapper)
typeMapper
- the type mapper for the section.public boolean appliesTo(IWorkbenchPart part, ISelection selection)
ISectionDescriptor
appliesTo
in interface ISectionDescriptor
part
- the current workbench part.selection
- the selection.true
if this section applies to the current
selection.public String getAfterSection()
ISectionDescriptor
"top"
is returned if this section is the top most section
or if there is one section in the tab.getAfterSection
in interface ISectionDescriptor
public int getEnablesFor()
ISectionDescriptor
getEnablesFor
in interface ISectionDescriptor
public IFilter getFilter()
ISectionDescriptor
getFilter
in interface ISectionDescriptor
public List getInputTypes()
ISectionDescriptor
getInputTypes
in interface ISectionDescriptor
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.