Package org.eclipse.m2m.internal.qvt.oml
Class QvtPlugin
- java.lang.Object
-
- org.eclipse.emf.common.util.DelegatingResourceLocator
-
- org.eclipse.emf.common.EMFPlugin
-
- org.eclipse.m2m.internal.qvt.oml.QvtPlugin
-
- All Implemented Interfaces:
Logger,ResourceLocator
public class QvtPlugin extends EMFPlugin
The main plugin class to be used in the desktop.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQvtPlugin.Implementation-
Nested classes/interfaces inherited from class org.eclipse.emf.common.EMFPlugin
EMFPlugin.EclipsePlugin, EMFPlugin.InternalEclipsePlugin, EMFPlugin.InternalHelper, EMFPlugin.OSGiDelegatingBundleActivator
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDstatic QvtPluginINSTANCEThe singleton instance of the plugin.-
Fields inherited from class org.eclipse.emf.common.EMFPlugin
IS_ECLIPSE_RUNNING, IS_RESOURCES_BUNDLE_AVAILABLE
-
-
Constructor Summary
Constructors Constructor Description QvtPlugin()The constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BasicDiagnosticcreateDiagnostic(String message)static DiagnosticcreateErrorDiagnostic(String message, Throwable throwable)static DiagnosticcreateWarnDiagnostic(String message)static voiderror(int code, String message)Generates an error log for the specified plug-in, with the specified status code, message.static voiderror(int code, String message, Throwable throwable)Generates an error log for the specified plug-in, with the specified status code, message, and throwable.static voiderror(String message)static voiderror(String message, Throwable throwable)static voiderror(Throwable throwable)static QvtPlugingetDefault()Returns the shared instance.static QvtPlugin.ImplementationgetPlugin()ResourceLocatorgetPluginResourceLocator()static voidinfo(int code, String message)Generates an information log for the specified plug-in, with the specified status code, message.static voidinfo(int code, String message, Throwable throwable)Generates an information log for the specified plug-in, with the specified status code, message, and throwable.static voidlog(int severity, int code, String message, Throwable throwable)static voidlogDiagnostic(Diagnostic diagnostic)static voidwarning(int code, String message)Generates a warning log for the specified plug-in, with the specified status code, message.static voidwarning(int code, String message, Throwable throwable)Generates a warning log for the specified plug-in, with the specified status code, message, and throwable.-
Methods inherited from class org.eclipse.emf.common.EMFPlugin
getPluginLogger, getSymbolicName, log, main
-
Methods inherited from class org.eclipse.emf.common.util.DelegatingResourceLocator
getBaseURL, getImage, getString, getString, getString, getString, setShouldTranslate, shouldTranslate
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.common.util.ResourceLocator
getBaseURL, getImage, getString, getString, getString, getString
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
INSTANCE
public static final QvtPlugin INSTANCE
The singleton instance of the plugin.
-
-
Method Detail
-
getPluginResourceLocator
public ResourceLocator getPluginResourceLocator()
- Specified by:
getPluginResourceLocatorin classEMFPlugin
-
getDefault
public static QvtPlugin getDefault()
Returns the shared instance.
-
getPlugin
public static QvtPlugin.Implementation getPlugin()
-
error
public static void error(int code, String message)Generates an error log for the specified plug-in, with the specified status code, message.- Parameters:
code- The status code for the log.message- The message for the log.
-
error
public static void error(int code, String message, Throwable throwable)Generates an error log for the specified plug-in, with the specified status code, message, and throwable.- Parameters:
code- The status code for the log.message- The message for the log.throwable- The throwable for the log.
-
error
public static void error(Throwable throwable)
-
error
public static void error(String message)
-
info
public static void info(int code, String message)Generates an information log for the specified plug-in, with the specified status code, message.- Parameters:
code- The status code for the log.message- The message for the log.
-
info
public static void info(int code, String message, Throwable throwable)Generates an information log for the specified plug-in, with the specified status code, message, and throwable.- Parameters:
code- The status code for the log.message- The message for the log.throwable- The throwable for the log.
-
warning
public static void warning(int code, String message)Generates a warning log for the specified plug-in, with the specified status code, message.- Parameters:
code- The status code for the log.message- The message for the log.
-
warning
public static void warning(int code, String message, Throwable throwable)Generates a warning log for the specified plug-in, with the specified status code, message, and throwable.- Parameters:
code- The status code for the log.message- The message for the log.throwable- The throwable for the log.
-
logDiagnostic
public static void logDiagnostic(Diagnostic diagnostic)
-
createDiagnostic
public static BasicDiagnostic createDiagnostic(String message)
-
createErrorDiagnostic
public static Diagnostic createErrorDiagnostic(String message, Throwable throwable)
-
createWarnDiagnostic
public static Diagnostic createWarnDiagnostic(String message)
-
-