public interface ISectionDescriptor
This interface should not be extended or implemented. New instances should be
created using AbstractSectionDescriptor
.
Modifier and Type | Field and Description |
---|---|
static int |
ENABLES_FOR_ANY
If enabledFor is not specified in the descriptor, enable for any
selection.
|
static String |
TOP
If afterSection is not specified in the descriptor, we default to be the
top section.
|
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.
|
String |
getId()
Get the unique identifier for the section.
|
List |
getInputTypes()
Get the valid input types for this section.
|
ISection |
getSectionClass()
Get the class that implements this section.
|
String |
getTargetTab()
Get the target tab where this section will appear.
|
static final int ENABLES_FOR_ANY
static final String TOP
String getId()
IFilter getFilter()
List getInputTypes()
ISection getSectionClass()
String getTargetTab()
int getEnablesFor()
boolean appliesTo(IWorkbenchPart part, ISelection selection)
part
- the current workbench part.selection
- the selection.true
if this section applies to the current
selection.String getAfterSection()
"top"
is returned if this section is the top most section
or if there is one section in the tab.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.