public class ClifConsolePlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIF_APPLICATION
Fractal ADL definition file of the CLIF application to deploy
|
static java.lang.String |
CLIF_OPTS
CLIF options file replacing clif.props (format/contents slightly differs)
|
static java.lang.String |
CLIF_PROPS
The CLIF properties file name in projects
|
static java.lang.String |
CLIFAPP_NAME
name of the CLIF application component in the registry
|
static java.lang.String |
PLUGIN_ID
The plugin id.
|
Constructor and Description |
---|
ClifConsolePlugin() |
Modifier and Type | Method and Description |
---|---|
ClifAppFacade |
getClifApp() |
static ClifConsolePlugin |
getDefault()
Returns the shared instance.
|
java.lang.String |
getNetworkAddress() |
ClifRegistry |
getRegistry(boolean update)
On first call, creates the registry or connects to an existing registry,
and creates the default local CLIF server.
|
java.util.ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle,
|
java.lang.String |
getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle,
or 'key' if not found.
|
boolean |
mustRestart() |
void |
setNetworkAddress(java.lang.String addr) |
void |
setProperties(java.io.File clifProps) |
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation
|
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped
|
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
public static final java.lang.String CLIF_PROPS
public static final java.lang.String CLIF_OPTS
public static final java.lang.String CLIF_APPLICATION
public static final java.lang.String CLIFAPP_NAME
public static final java.lang.String PLUGIN_ID
public ClifRegistry getRegistry(boolean update) throws ClifException
ClifException
- if no registry could be created nor connected to, or
if the default CLIF server could not be created.public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
public static ClifConsolePlugin getDefault()
public java.lang.String getResourceString(java.lang.String key)
key
- public java.util.ResourceBundle getResourceBundle()
public ClifAppFacade getClifApp()
public java.lang.String getNetworkAddress()
public void setNetworkAddress(java.lang.String addr)
public boolean mustRestart()
public void setProperties(java.io.File clifProps) throws java.lang.Exception
java.lang.Exception