Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.eclipse.util
Class UtilPlugin  view UtilPlugin download UtilPlugin.java

java.lang.Object
  extended byorg.eclipse.core.runtime.Plugin
      extended byorg.eclipse.ui.plugin.AbstractUIPlugin
          extended bycom.port80.eclipse.util.UtilPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

The main plugin class to be used in the desktop.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
 
Field Summary
private static boolean DEBUG
           
private static java.lang.String NAME
           
private static UtilPlugin plugin
           
private  java.util.ResourceBundle resourceBundle
           
 
Fields inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
 
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Constructor Summary
UtilPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
          The constructor.
 
Method Summary
static void createMarker(org.eclipse.core.resources.IResource resource, java.lang.String kind, int severity, java.lang.String message, int start, int end, int line)
           
static void deleteMarkers(org.eclipse.core.resources.IResource resource, java.lang.String type)
           
static void errorMarker(java.lang.String message, java.lang.Exception e, org.eclipse.core.resources.IResource resource, java.lang.String marker_type, int start, int end, int line)
          Create an error marker.
static UtilPlugin getDefault()
          Returns the shared instance.
static org.eclipse.core.resources.IMarker[] getMarkers(org.eclipse.core.resources.IResource resource, java.lang.String type)
           
static java.lang.String getPluginId()
           
 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.
static java.lang.String getString(java.lang.String key)
          Returns the string from the plugin's resource bundle, or 'key' if not found.
static org.eclipse.core.resources.IWorkspace getWorkspace()
          Returns the workspace instance.
static void infoMarker(java.lang.String message, java.lang.Exception e, org.eclipse.core.resources.IResource resource, java.lang.String marker_type, int start, int end, int line)
          Create an info marker.
static void log(org.eclipse.core.runtime.IStatus status)
           
static void log(java.lang.String message)
           
static void log(java.lang.String message, java.lang.Exception e)
           
static void warnMarker(java.lang.String message, java.lang.Exception e, org.eclipse.core.resources.IResource resource, java.lang.String marker_type, int start, int end, int line)
          Create a warning marker.
 
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, start, startup, stop
 
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

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

plugin

private static UtilPlugin plugin

resourceBundle

private java.util.ResourceBundle resourceBundle
Constructor Detail

UtilPlugin

public UtilPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
The constructor.

Method Detail

getDefault

public static UtilPlugin getDefault()
Returns the shared instance.


getWorkspace

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


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,


getPluginId

public static java.lang.String getPluginId()

getString

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


log

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

log

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

log

public static void log(java.lang.String message,
                       java.lang.Exception e)

errorMarker

public static void errorMarker(java.lang.String message,
                               java.lang.Exception e,
                               org.eclipse.core.resources.IResource resource,
                               java.lang.String marker_type,
                               int start,
                               int end,
                               int line)
Create an error marker.


warnMarker

public static void warnMarker(java.lang.String message,
                              java.lang.Exception e,
                              org.eclipse.core.resources.IResource resource,
                              java.lang.String marker_type,
                              int start,
                              int end,
                              int line)
Create a warning marker.


infoMarker

public static void infoMarker(java.lang.String message,
                              java.lang.Exception e,
                              org.eclipse.core.resources.IResource resource,
                              java.lang.String marker_type,
                              int start,
                              int end,
                              int line)
Create an info marker.


createMarker

public static void createMarker(org.eclipse.core.resources.IResource resource,
                                java.lang.String kind,
                                int severity,
                                java.lang.String message,
                                int start,
                                int end,
                                int line)

deleteMarkers

public static void deleteMarkers(org.eclipse.core.resources.IResource resource,
                                 java.lang.String type)

getMarkers

public static org.eclipse.core.resources.IMarker[] getMarkers(org.eclipse.core.resources.IResource resource,
                                                              java.lang.String type)