public abstract class OutlineSorterContribution extends OutlineContribution
Constructor and Description |
---|
OutlineSorterContribution() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes of this contribution.
|
protected abstract org.eclipse.jface.viewers.ViewerComparator |
getComparator()
Returns a comparator that will be used when the sorter is active.
|
protected org.eclipse.jface.viewers.ViewerComparator |
getDefaultComparator()
Returns a comparator that will be used when the sorter is inactive,
or
null if no sorting needs to take place then. |
protected abstract IBooleanPreference |
getPreference()
Returns a boolean-valued preference that will control the activation
of the sorter.
|
void |
init(ICommonOutlinePage outlinePage)
Initializes this contribution.
|
getOutlinePage
public void init(ICommonOutlinePage outlinePage)
OutlineContribution
This method may be extended by subclasses. Subclasses must call the superclass implementation.
init
in interface IOutlineContribution
init
in class OutlineContribution
outlinePage
- the contribution's outline page
(never null
)public void dispose()
OutlineContribution
init()
has been called.
This method has no effect if this contribution has already
been disposed.
This method may be extended by subclasses. Subclasses must call the superclass implementation.
dispose
in interface IOutlineContribution
dispose
in class OutlineContribution
protected abstract IBooleanPreference getPreference()
null
, in which case
this contribution will be effectively disabled. This method
is called once, when this contribution is initializing.null
protected abstract org.eclipse.jface.viewers.ViewerComparator getComparator()
null
)protected org.eclipse.jface.viewers.ViewerComparator getDefaultComparator()
null
if no sorting needs to take place then. This method
is called once, when this contribution is initializing.
Default implementation returns null
.
Subclasses may override.
null
if noneCopyright (c) 2014, 2019 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0