toolbus
Class ToolBusEclipsePlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
toolbus.ToolBusEclipsePlugin
- All Implemented Interfaces:
- org.eclipse.ui.IStartup, org.osgi.framework.BundleActivator
public class ToolBusEclipsePlugin
- extends org.eclipse.core.runtime.Plugin
- implements org.eclipse.ui.IStartup
Fields inherited from class org.eclipse.core.runtime.Plugin |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary |
ToolBusEclipsePlugin()
This constructor should only be called by the Eclipse Workbench. |
Method Summary |
void |
earlyStartup()
|
private static java.lang.String |
getConfigFile()
|
static aterm.pure.PureFactory |
getFactory()
|
static java.io.File |
getFile(org.osgi.framework.Bundle bundle,
java.lang.String resourcePath)
This method finds the file pointing to by resourcePath in bundle, and returns its file handle. |
private static ToolBusEclipsePlugin.SingletonToolBus |
getInstance()
The plugin activator is a singleton. |
static int |
getPort()
This method is needed for other plugins to connect to the Bus. |
static toolbus.ToolBus |
getToolBus()
|
private static void |
runToolBus(toolbus.ToolBus toolbus)
|
Methods inherited from class org.eclipse.core.runtime.Plugin |
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, start, startup, stop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
pluginId
private static final java.lang.String pluginId
- See Also:
- Constant Field Values
toolbusConfig
private static final java.lang.String toolbusConfig
- See Also:
- Constant Field Values
ToolBusEclipsePlugin
public ToolBusEclipsePlugin()
- This constructor should only be called by the Eclipse Workbench.
earlyStartup
public void earlyStartup()
- Specified by:
earlyStartup
in interface org.eclipse.ui.IStartup
getInstance
private static ToolBusEclipsePlugin.SingletonToolBus getInstance()
- The plugin activator is a singleton. Use this method to obtain the
instance.
getPort
public static int getPort()
- This method is needed for other plugins to connect to the Bus.
- Returns:
- The port number to connect to using the adapter.
getFactory
public static aterm.pure.PureFactory getFactory()
getToolBus
public static toolbus.ToolBus getToolBus()
runToolBus
private static void runToolBus(toolbus.ToolBus toolbus)
getConfigFile
private static java.lang.String getConfigFile()
getFile
public static java.io.File getFile(org.osgi.framework.Bundle bundle,
java.lang.String resourcePath)
throws java.io.IOException
- This method finds the file pointing to by resourcePath in bundle, and returns its file handle.
- Parameters:
bundle
- resourcePath
-
- Returns:
-
- Throws:
java.io.IOException