org.eclipse.cdt.make.internal.ui
Class MakeUIPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.eclipse.cdt.make.internal.ui.MakeUIPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

The main plugin class to be used in the desktop.


Field Summary
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
MakeUIPlugin()
          The constructor.
 
Method Summary
static void errorDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String title, java.lang.String message, org.eclipse.core.runtime.IStatus s)
          Utility method with conventions
static void errorDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String title, java.lang.String message, java.lang.Throwable t)
          Utility method with conventions
static org.eclipse.ui.IWorkbenchPage getActivePage()
          Returns the active workbench page or null if none.
static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()
           
static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
          Returns the active workbench window or null if none
static MakeUIPlugin getDefault()
          Returns the shared instance.
 IMakefileDocumentProvider getMakefileDocumentProvider()
           
static java.lang.String getPluginId()
          Returns the Uniqu idenetifier for this plugin.
static org.eclipse.swt.graphics.Color getPreferenceColor(java.lang.String key)
          Returns the preference color, identified by the given preference.
 java.util.ResourceBundle getResourceBundle()
          Returns the plugin's resource bundle,
static java.lang.String getResourceString(java.lang.String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
 org.eclipse.swt.widgets.Shell getShell()
           
static java.lang.String getUniqueIdentifier()
          Convenience method which returns the unique identifier of this plugin.
 IWorkingCopyManager getWorkingCopyManager()
           
static org.eclipse.core.resources.IWorkspace getWorkspace()
          Returns the workspace instance.
static void log(org.eclipse.core.runtime.IStatus status)
           
static void log(java.lang.Throwable e)
           
static void logErrorMessage(java.lang.String message)
           
static void logException(java.lang.Throwable e)
           
static void logException(java.lang.Throwable e, java.lang.String title, java.lang.String message)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, start, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MakeUIPlugin

public MakeUIPlugin()
The constructor.

Method Detail

getDefault

public static MakeUIPlugin getDefault()
Returns the shared instance.


getPluginId

public static java.lang.String getPluginId()
Returns the Uniqu idenetifier for this plugin.


getWorkspace

public static org.eclipse.core.resources.IWorkspace getWorkspace()
Returns the workspace instance.


getActiveWorkbenchShell

public static org.eclipse.swt.widgets.Shell getActiveWorkbenchShell()

getActiveWorkbenchWindow

public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
Returns the active workbench window or null if none


getActivePage

public static org.eclipse.ui.IWorkbenchPage getActivePage()
Returns the active workbench page or null if none.


getResourceString

public static java.lang.String getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found.


getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Returns the plugin's resource bundle,


getUniqueIdentifier

public static java.lang.String getUniqueIdentifier()
Convenience method which returns the unique identifier of this plugin.


getPreferenceColor

public static org.eclipse.swt.graphics.Color getPreferenceColor(java.lang.String key)
Returns the preference color, identified by the given preference.


log

public static void log(org.eclipse.core.runtime.IStatus status)

logErrorMessage

public static void logErrorMessage(java.lang.String message)

logException

public static void logException(java.lang.Throwable e,
                                java.lang.String title,
                                java.lang.String message)

logException

public static void logException(java.lang.Throwable e)

log

public static void log(java.lang.Throwable e)

errorDialog

public static void errorDialog(org.eclipse.swt.widgets.Shell shell,
                               java.lang.String title,
                               java.lang.String message,
                               org.eclipse.core.runtime.IStatus s)
Utility method with conventions


errorDialog

public static void errorDialog(org.eclipse.swt.widgets.Shell shell,
                               java.lang.String title,
                               java.lang.String message,
                               java.lang.Throwable t)
Utility method with conventions


getShell

public org.eclipse.swt.widgets.Shell getShell()

getMakefileDocumentProvider

public IMakefileDocumentProvider getMakefileDocumentProvider()

getWorkingCopyManager

public IWorkingCopyManager getWorkingCopyManager()

stop

public void stop(org.osgi.framework.BundleContext context)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
Throws:
java.lang.Exception