public interface ConnectorContext extends PropertySet
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
ConnectorDescriptor |
getConnectorDescriptor()
Returns the descriptor which details the properties of this connector.
|
Logger |
getLogger()
Returns the logger used to report errors and warnings, as well as debugging information.
|
ProgressMonitor |
getProgressMonitor()
Returns the monitor used to report progress and to check for cancellation.
|
MDWorkbench |
getWorkbench()
Returns the workbench, which may be used to access configuration properties.
|
getProperties, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyNames, loadProperties, saveProperties, setProperties, setProperties, setProperty, setProperty, setProperty, setProperty, setProperty
ConnectorDescriptor getConnectorDescriptor()
The connector descriptor can be helpful to access connector specific properties and to load related resources.
ConnectorDescriptor.getProperty(String)
,
ConnectorDescriptor.getConfiguration()
ProgressMonitor getProgressMonitor()
A connector implementation is expected to check regularly whether the process is canceled, in which case it should abort as soon as possible
its activity. You may throw an OperationCanceledException
to interrupt the reader/writer.
ProgressMonitor.isCanceled()
,
OperationCanceledException
Logger getLogger()
MDWorkbench getWorkbench()
WorkbenchConfiguration.getCommandLine()
,
WorkbenchConfiguration.isHeadless()