Class ClassMakerPlugin
- java.lang.Object
-
- org.eclipse.core.runtime.Plugin
-
- org.enterprisedomain.classmaker.core.ClassMakerPlugin
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class ClassMakerPlugin extends org.eclipse.core.runtime.Plugin
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BUILDER_ID
static java.lang.String
CUSTOMIZERS_EXT_POINT
static java.lang.String
JAVA_NATURE
static java.lang.String
MODEL_FOLDER_PREF_KEY
static java.lang.String
MODEL_RESOURCE_EXT_PREF_KEY
static java.lang.String
NATURE_ID
static java.lang.String
PDE_PLUGIN_NATURE
static java.lang.String
PLUGIN_ID
static java.lang.String
STAGES_EXT_POINT
static java.lang.String
TURN_OFF_AUTO_BUILDING_PREF_KEY
-
Constructor Summary
Constructors Constructor Description ClassMakerPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
bundleStateAsString(int state)
static org.eclipse.core.runtime.IStatus
createErrorStatus(java.lang.String message)
static org.eclipse.core.runtime.Status
createErrorStatus(java.lang.Throwable exception)
static org.eclipse.core.runtime.IStatus
createErrorStatus(org.eclipse.core.runtime.CoreException exception)
static org.eclipse.core.runtime.IStatus
createInfoStatus(java.lang.String message)
static org.eclipse.core.runtime.IStatus
createOKStatus(java.lang.String message)
static org.eclipse.core.runtime.IStatus
createWarningStatus(java.lang.String message)
static org.eclipse.core.runtime.IStatus
createWarningStatus(java.lang.String message, java.lang.Throwable exception)
static org.eclipse.core.runtime.IStatus
createWarningStatus(java.lang.Throwable exception)
static ClassMakerService
getClassMaker()
ClassMaker facade service.static ClassMakerPlugin
getInstance()
static org.eclipse.core.runtime.jobs.ProgressProvider
getPreviousProgressProvider()
static org.eclipse.core.runtime.IProgressMonitor
getProgressMonitor()
static java.lang.Class<? extends org.eclipse.core.runtime.IProgressMonitor>
getProgressMonitorClass()
static java.lang.Object[]
getProgressMonitorClassConstructorParameters()
static <T> T
getService(java.lang.String serviceClass)
static <T> T
getService(java.lang.String serviceClass, org.osgi.framework.BundleContext context)
boolean
isTurnOffAutoBuilding()
static void
runWithProgress(org.eclipse.jface.operation.IRunnableWithProgress runnable)
static void
setClientRunWrapper(IRunWrapper wrapper)
static <T extends org.eclipse.core.runtime.IProgressMonitor>
voidsetMonitorParameters(java.lang.Class<T> monitorClass, java.lang.Object... constructorParameters)
static void
setPreviousProgressProvider(org.eclipse.core.runtime.jobs.ProgressProvider previousProgressProvider)
static void
setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
static void
setRunnerWithProgress(IRunnerWithProgress runner)
void
setTurnOffAutoBuilding(boolean turnOffAutoBuilding)
void
start(org.osgi.framework.BundleContext context)
void
stop(org.osgi.framework.BundleContext context)
static void
wrapRun(java.lang.Runnable runnable)
-
-
-
Field Detail
-
PLUGIN_ID
public static final java.lang.String PLUGIN_ID
- See Also:
- Constant Field Values
-
NATURE_ID
public static final java.lang.String NATURE_ID
- See Also:
- Constant Field Values
-
BUILDER_ID
public static final java.lang.String BUILDER_ID
- See Also:
- Constant Field Values
-
STAGES_EXT_POINT
public static final java.lang.String STAGES_EXT_POINT
- See Also:
- Constant Field Values
-
CUSTOMIZERS_EXT_POINT
public static final java.lang.String CUSTOMIZERS_EXT_POINT
- See Also:
- Constant Field Values
-
PDE_PLUGIN_NATURE
public static final java.lang.String PDE_PLUGIN_NATURE
- See Also:
- Constant Field Values
-
JAVA_NATURE
public static final java.lang.String JAVA_NATURE
- See Also:
- Constant Field Values
-
MODEL_FOLDER_PREF_KEY
public static final java.lang.String MODEL_FOLDER_PREF_KEY
- See Also:
- Constant Field Values
-
MODEL_RESOURCE_EXT_PREF_KEY
public static final java.lang.String MODEL_RESOURCE_EXT_PREF_KEY
- See Also:
- Constant Field Values
-
TURN_OFF_AUTO_BUILDING_PREF_KEY
public static final java.lang.String TURN_OFF_AUTO_BUILDING_PREF_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static ClassMakerPlugin getInstance()
-
getClassMaker
public static ClassMakerService getClassMaker()
ClassMaker facade service. Only for internal use.- Returns:
- ClassMakerService service instance
-
getService
public static <T> T getService(java.lang.String serviceClass)
-
getService
public static <T> T getService(java.lang.String serviceClass, org.osgi.framework.BundleContext context)
-
start
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classorg.eclipse.core.runtime.Plugin
- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classorg.eclipse.core.runtime.Plugin
- Throws:
java.lang.Exception
-
setRunnerWithProgress
public static void setRunnerWithProgress(IRunnerWithProgress runner)
-
runWithProgress
public static void runWithProgress(org.eclipse.jface.operation.IRunnableWithProgress runnable) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
- Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
-
getProgressMonitor
public static org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
-
setProgressMonitor
public static void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
-
setClientRunWrapper
public static void setClientRunWrapper(IRunWrapper wrapper)
-
wrapRun
public static void wrapRun(java.lang.Runnable runnable)
-
getPreviousProgressProvider
public static org.eclipse.core.runtime.jobs.ProgressProvider getPreviousProgressProvider()
-
setPreviousProgressProvider
public static void setPreviousProgressProvider(org.eclipse.core.runtime.jobs.ProgressProvider previousProgressProvider)
-
setMonitorParameters
public static <T extends org.eclipse.core.runtime.IProgressMonitor> void setMonitorParameters(java.lang.Class<T> monitorClass, java.lang.Object... constructorParameters)
-
getProgressMonitorClass
public static java.lang.Class<? extends org.eclipse.core.runtime.IProgressMonitor> getProgressMonitorClass()
-
getProgressMonitorClassConstructorParameters
public static java.lang.Object[] getProgressMonitorClassConstructorParameters()
-
isTurnOffAutoBuilding
public boolean isTurnOffAutoBuilding()
-
setTurnOffAutoBuilding
public void setTurnOffAutoBuilding(boolean turnOffAutoBuilding)
-
createOKStatus
public static org.eclipse.core.runtime.IStatus createOKStatus(java.lang.String message)
-
createInfoStatus
public static org.eclipse.core.runtime.IStatus createInfoStatus(java.lang.String message)
-
createWarningStatus
public static org.eclipse.core.runtime.IStatus createWarningStatus(java.lang.String message)
-
createWarningStatus
public static org.eclipse.core.runtime.IStatus createWarningStatus(java.lang.Throwable exception)
-
createWarningStatus
public static org.eclipse.core.runtime.IStatus createWarningStatus(java.lang.String message, java.lang.Throwable exception)
-
createErrorStatus
public static org.eclipse.core.runtime.IStatus createErrorStatus(java.lang.String message)
-
createErrorStatus
public static org.eclipse.core.runtime.Status createErrorStatus(java.lang.Throwable exception)
-
createErrorStatus
public static org.eclipse.core.runtime.IStatus createErrorStatus(org.eclipse.core.runtime.CoreException exception)
-
bundleStateAsString
public static java.lang.String bundleStateAsString(int state)
-
-