Class ClassMakerPlugin

  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator

    public class ClassMakerPlugin
    extends org.eclipse.core.runtime.Plugin
    • Constructor Detail

      • ClassMakerPlugin

        public ClassMakerPlugin()
    • Method Detail

      • 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 interface org.osgi.framework.BundleActivator
        Overrides:
        start in class org.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 interface org.osgi.framework.BundleActivator
        Overrides:
        stop in class org.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)