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 Details

  • Constructor Details

    • ClassMakerPlugin

      public ClassMakerPlugin()
  • Method Details

    • 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(String serviceClass)
    • getService

      public static <T> T getService(String serviceClass, org.osgi.framework.BundleContext context)
    • start

      public void start(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Overrides:
      start in class org.eclipse.core.runtime.Plugin
      Throws:
      Exception
    • stop

      public void stop(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Overrides:
      stop in class org.eclipse.core.runtime.Plugin
      Throws:
      Exception
    • getDefaultOutputStream

      public static PrintStream getDefaultOutputStream()
    • setDefaultOutputStream

      public static void setDefaultOutputStream(PrintStream defaultOutputStream)
    • setRunnerWithProgress

      public static void setRunnerWithProgress(IRunnerWithProgress runner)
    • runWithProgress

      public static void runWithProgress(org.eclipse.jface.operation.IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException
      Throws:
      InvocationTargetException
      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(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(Class<T> monitorClass, Object... constructorParameters)
    • getProgressMonitorClass

      public static Class<? extends org.eclipse.core.runtime.IProgressMonitor> getProgressMonitorClass()
    • getProgressMonitorClassConstructorParameters

      public static Object[] getProgressMonitorClassConstructorParameters()
    • isTurnOffAutoBuilding

      public boolean isTurnOffAutoBuilding()
    • setTurnOffAutoBuilding

      public void setTurnOffAutoBuilding(boolean turnOffAutoBuilding)
    • createOKStatus

      public static org.eclipse.core.runtime.IStatus createOKStatus(String message)
    • createInfoStatus

      public static org.eclipse.core.runtime.IStatus createInfoStatus(String message)
    • createWarningStatus

      public static org.eclipse.core.runtime.IStatus createWarningStatus(String message)
    • createWarningStatus

      public static org.eclipse.core.runtime.IStatus createWarningStatus(Throwable exception)
    • createWarningStatus

      public static org.eclipse.core.runtime.IStatus createWarningStatus(String message, Throwable exception)
    • createErrorStatus

      public static org.eclipse.core.runtime.IStatus createErrorStatus(String message)
    • createErrorStatus

      public static org.eclipse.core.runtime.Status createErrorStatus(Throwable exception)
    • createErrorStatus

      public static org.eclipse.core.runtime.IStatus createErrorStatus(org.eclipse.core.runtime.CoreException exception)
    • bundleStateAsString

      public static String bundleStateAsString(int state)