Package com._1c.g5.v8.dt.moxel
Class MoxelCorePlugin
- java.lang.Object
-
- org.eclipse.core.runtime.Plugin
-
- com._1c.g5.v8.dt.moxel.MoxelCorePlugin
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class MoxelCorePlugin extends org.eclipse.core.runtime.Plugin
Plugin with injector for moxel
-
-
Constructor Summary
Constructors Constructor Description MoxelCorePlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.core.runtime.IStatus
createErrorStatus(String message, Throwable throwable)
Create new error status with messagestatic org.eclipse.core.runtime.IStatus
createWarningStatus(String message)
Creates warning status.com.google.inject.Injector
getInjector()
Creates plugin's injectorstatic MoxelCorePlugin
getInstance()
The static convenience method to gain access to a plug-in's runtime object.IResourceLookup
getResourceLookup()
GetsIResourceLookup
static void
log(org.eclipse.core.runtime.IStatus status)
Logs the status to eclipse logvoid
start(org.osgi.framework.BundleContext context)
Starts this plug-in.void
stop(org.osgi.framework.BundleContext context)
Stops this plug-in.-
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
-
-
-
-
Field Detail
-
ID
public static final String ID
Plugin id- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static MoxelCorePlugin getInstance()
The static convenience method to gain access to a plug-in's runtime object.- Returns:
- the plug-in's runtime object.
-
createErrorStatus
public static org.eclipse.core.runtime.IStatus createErrorStatus(String message, Throwable throwable)
Create new error status with message- Parameters:
message
-String
throwable
-- Returns:
- new instance of
Status
-
createWarningStatus
public static org.eclipse.core.runtime.IStatus createWarningStatus(String message)
Creates warning status.- Parameters:
message
-String
- Returns:
- status
-
log
public static void log(org.eclipse.core.runtime.IStatus status)
Logs the status to eclipse log- Parameters:
status
- - status with message
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception
Starts this plug-in.- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classorg.eclipse.core.runtime.Plugin
- Throws:
Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws Exception
Stops this plug-in.- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.eclipse.core.runtime.Plugin
- Throws:
Exception
-
getResourceLookup
public IResourceLookup getResourceLookup()
GetsIResourceLookup
- Returns:
IResourceLookup
-
getInjector
public com.google.inject.Injector getInjector()
Creates plugin's injector- Returns:
- created injector
-
-