de.hunsicker.jalopy.plugin.eclipse
Class EclipsePlugin

java.lang.Object
  |
  +--org.eclipse.core.runtime.Plugin
        |
        +--org.eclipse.ui.plugin.AbstractUIPlugin
              |
              +--de.hunsicker.jalopy.plugin.eclipse.EclipsePlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator, de.hunsicker.jalopy.plugin.Project

public class EclipsePlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
implements de.hunsicker.jalopy.plugin.Project

The Jalopy Eclipse Plug-in.

Version:
$Revision: 1.4.2.1 $
Author:
Marco Hunsicker

Field Summary
protected static org.eclipse.swt.graphics.Cursor _ibeamCursor
          The I-Beam text cusor.
static java.lang.String ID
          The Plug-in identifier ("de.hunsicker.jalopy.plugin.eclipse").
protected static EclipsePlugin plugin
          The sole object instance.
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
EclipsePlugin()
          Creates a new EclipsePlugin object.
EclipsePlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
           
 
Method Summary
 de.hunsicker.jalopy.plugin.ProjectFile getActiveFile()
          
protected  org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
           
 java.util.Collection getAllFiles()
          
static EclipsePlugin getDefault()
          Returns the shared plugin instance.
 java.util.Collection getOpenedFiles()
          
 java.util.Collection getSelectedFiles()
          
protected  org.eclipse.jface.action.IStatusLineManager getStatusLine()
           
 void start(org.osgi.framework.BundleContext context)
          Called on start of this plugin
 void stop(org.osgi.framework.BundleContext context)
          Called on stop of this plugin
 
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

ID

public static final java.lang.String ID
The Plug-in identifier ("de.hunsicker.jalopy.plugin.eclipse").

See Also:
Constant Field Values

_ibeamCursor

protected static org.eclipse.swt.graphics.Cursor _ibeamCursor
The I-Beam text cusor.


plugin

protected static EclipsePlugin plugin
The sole object instance.

Constructor Detail

EclipsePlugin

public EclipsePlugin()
Creates a new EclipsePlugin object.


EclipsePlugin

public EclipsePlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
Method Detail

getDefault

public static EclipsePlugin getDefault()
Returns the shared plugin instance.

Returns:
the sole instance of this class.

getActiveFile

public de.hunsicker.jalopy.plugin.ProjectFile getActiveFile()

Specified by:
getActiveFile in interface de.hunsicker.jalopy.plugin.Project

getAllFiles

public java.util.Collection getAllFiles()

Specified by:
getAllFiles in interface de.hunsicker.jalopy.plugin.Project

getOpenedFiles

public java.util.Collection getOpenedFiles()

Specified by:
getOpenedFiles in interface de.hunsicker.jalopy.plugin.Project

getSelectedFiles

public java.util.Collection getSelectedFiles()

Specified by:
getSelectedFiles in interface de.hunsicker.jalopy.plugin.Project

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Called on stop of this plugin

Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Parameters:
context -
Throws:
java.lang.Exception - If an error occurs

start

public void start(org.osgi.framework.BundleContext context)
           throws java.lang.Exception
Called on start of this plugin

Specified by:
start in interface org.osgi.framework.BundleActivator
Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception - If an error occurs

getActiveWorkbenchWindow

protected org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()

getStatusLine

protected org.eclipse.jface.action.IStatusLineManager getStatusLine()


Copyright © 1997-2005 Jalopy. All Rights Reserved.