Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.noa4e.ui
Class NOAUIPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by ag.ion.noa4e.ui.NOAUIPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class NOAUIPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

The main plugin class to be used in the desktop.


Field Summary
static java.lang.String PLUGIN_ID
          ID of the plugin.
static java.lang.String PREFERENCE_OFFICE_HOME
          Preferences key of the office home path.
static java.lang.String PREFERENCE_PREVENT_TERMINATION
          Preferences key of the prevent office termination information.
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
NOAUIPlugin()
          The constructor.
 
Method Summary
static NOAUIPlugin getDefault()
          Returns the shared instance.
static org.eclipse.ui.forms.widgets.FormToolkit getFormToolkit()
          Returns form toolkit.
static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
 void start(org.osgi.framework.BundleContext context)
          This method is called upon plug-in activation.
static org.eclipse.core.runtime.IStatus startLocalOfficeApplication(org.eclipse.swt.widgets.Shell shell, IOfficeApplication officeApplication)
          Starts local office application.
 void stop(org.osgi.framework.BundleContext context)
          This method is called when the plug-in is stopped.
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PLUGIN_ID

public static final java.lang.String PLUGIN_ID
ID of the plugin.

See Also:
Constant Field Values

PREFERENCE_OFFICE_HOME

public static final java.lang.String PREFERENCE_OFFICE_HOME
Preferences key of the office home path.

See Also:
Constant Field Values

PREFERENCE_PREVENT_TERMINATION

public static final java.lang.String PREFERENCE_PREVENT_TERMINATION
Preferences key of the prevent office termination information.

See Also:
Constant Field Values
Constructor Detail

NOAUIPlugin

public NOAUIPlugin()
The constructor.

Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
This method is called upon plug-in activation.

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Parameters:
context - bundle context
Throws:
java.lang.Exception - if the bundle can not be started

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
This method is called when the plug-in is stopped.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Parameters:
context - bundle context
Throws:
java.lang.Exception - if the bundle can not be stopped

getDefault

public static NOAUIPlugin getDefault()
Returns the shared instance.

Returns:
shared instance

getImageDescriptor

public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path.

Parameters:
path - the path
Returns:
the image descriptor

getFormToolkit

public static org.eclipse.ui.forms.widgets.FormToolkit getFormToolkit()
Returns form toolkit.

Returns:
form toolkit

startLocalOfficeApplication

public static org.eclipse.core.runtime.IStatus startLocalOfficeApplication(org.eclipse.swt.widgets.Shell shell,
                                                                           IOfficeApplication officeApplication)
Starts local office application.

Parameters:
shell - shell to be used
officeApplication - office application to be started
Returns:
information whether the office application was started or not - only if the status severity is IStatus.OK the application was started

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013