|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.core.runtime.Plugin org.eclipse.ui.plugin.AbstractUIPlugin com.javapathfinder.vjp.VJP
public class VJP
VJP serves as the main class for the VJP Project. This class serves as a utility to provide access to the logging and file system for this plugin.
Field Summary | |
---|---|
static java.lang.String |
PLUGIN_ID
This is a unique id for the VJP plugin. |
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
VJP()
The default constructor for this plugin. |
Method Summary | |
---|---|
static VJP |
getDefault()
Returns the shared instance |
static java.net.URL |
getResourceURL(java.lang.String path)
Gives a URL that points to the resource given by the path |
static java.lang.String |
getRootPath()
Gives an absolute path to the root of the VJP plugin directory |
static void |
log(int severity,
java.lang.String message,
java.lang.Throwable exception)
Convenience method to log any type of message. |
static void |
logError(java.lang.String message)
Convenience method to log errors |
static void |
logError(java.lang.String message,
java.lang.Throwable exception)
Convenience method to log errors |
static void |
logInfo(java.lang.String message)
Convenience method to log plugin information. |
static void |
logWarning(java.lang.String message)
Convenience method to log Warnings without an exception This call is exactly equivalent to logWarning(message, null) @param message the message to include with the warning |
static void |
logWarning(java.lang.String message,
java.lang.Exception exception)
Convenience method to log Warnings along with an exception @param message the message to include with the warning @param exception the exception to include with the warning |
void |
start(org.osgi.framework.BundleContext context)
Used by Eclipse to start the plugin. |
void |
stop(org.osgi.framework.BundleContext context)
Used by Eclipse to stop the plugin. |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
---|
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, 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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_ID
AbstractUIPlugin
,
Constant Field ValuesConstructor Detail |
---|
public VJP()
Method Detail |
---|
public static VJP getDefault()
public static void log(int severity, java.lang.String message, java.lang.Throwable exception)
public static void logInfo(java.lang.String message)
public static void logWarning(java.lang.String message)
public static void logWarning(java.lang.String message, java.lang.Exception exception)
public static void logError(java.lang.String message, java.lang.Throwable exception)
message
- the message to display with this errorexception
- the exception to associate with ths error.public static void logError(java.lang.String message)
message
- the message to display with this errorpublic static java.lang.String getRootPath()
public static java.net.URL getResourceURL(java.lang.String path)
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
AbstractUIPlugin.start(org.osgi.framework.BundleContext)
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
java.lang.Exception
AbstractUIPlugin.stop(org.osgi.framework.BundleContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |