java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.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.
|
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 |
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
UtilPlugin
public UtilPlugin(org.eclipse.core.runtime.IPluginDescriptor descriptor)
- The constructor.
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)