public interface IOpenHandler
If you need special behaviour aside from opening an editor and switching perspectives, implement this interface and specify your implementation in the handler field of your contribution to the extension point info.textgrid.lab.ui.core.openObject.
Your class is instantiated with its default constructor and then initialized
with the corresponding contribution by a call to setContribution(OpenHandlerContribution)
.
You may inherit your implementation from AbstractOpenHandler
. If you
do not specify an implementation, DefaultOpenHandler is used.
Modifier and Type | Method and Description |
---|---|
void |
open(TextGridObject textGridObject) |
void |
setContribution(OpenHandlerContribution contribution)
Inform the open handler about the contribution it is used for.
|
void setContribution(OpenHandlerContribution contribution)
AbstractOpenHandler
does so)
and extract fields like the target perspective from it.
The framework guarantees that this method is called with a valid contribution before
any calls to the open(TextGridObject)
method.
contribution
- The contribution for which this handler has been instantiated.void open(TextGridObject textGridObject) throws CoreException
CoreException