public interface ISectionDescriptor
Modifier and Type | Field and Description |
---|---|
static int |
ENABLES_FOR_ANY
If enabledFor is not specified in the descriptor, enable for any selection.
|
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
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.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.