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, waitgetId, getSectionClass, getTargetTabpublic AbstractSectionDescriptor()
public AbstractSectionDescriptor(ITypeMapper typeMapper)
typeMapper - the type mapper for the section.public boolean appliesTo(IWorkbenchPart part, ISelection selection)
ISectionDescriptorappliesTo in interface ISectionDescriptorpart - 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 ISectionDescriptorpublic int getEnablesFor()
ISectionDescriptorgetEnablesFor in interface ISectionDescriptorpublic IFilter getFilter()
ISectionDescriptorgetFilter in interface ISectionDescriptorpublic List getInputTypes()
ISectionDescriptorgetInputTypes in interface ISectionDescriptor
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.