Class DistributionSupportUiPlugin

java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.e1c.g5.v8.dt.internal.distribution.ui.DistributionSupportUiPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class DistributionSupportUiPlugin extends org.eclipse.ui.plugin.AbstractUIPlugin
Metadata distribution support UI plug-in activator. The activator class controls the plug-in life cycle.
  • Field Details

  • Constructor Details

    • DistributionSupportUiPlugin

      public DistributionSupportUiPlugin()
  • Method Details

    • log

      public static void log(org.eclipse.core.runtime.IStatus status)
      Writes a status to the plug-in logger.
      Parameters:
      status - a status to write, cannot be null
    • createErrorStatus

      public static org.eclipse.core.runtime.IStatus createErrorStatus(String message)
      Creates an error status by the provided message.
      Parameters:
      message - the status message, cannot be null
      Returns:
      the created error status, never null
    • createErrorStatus

      public static org.eclipse.core.runtime.IStatus createErrorStatus(String message, Throwable throwable)
      Creates an error status by the provided message and the cause throwable.
      Parameters:
      message - the status message, cannot be null
      throwable - the cause throwable, can be null if not applicable
      Returns:
      the created error status, never null
    • getDefault

      public static DistributionSupportUiPlugin getDefault()
      Returns the shared metadata distribution support UI plug-in instance.
      Returns:
      the shared metadata distribution support UI plug-in instance, never null if plug-in is started
    • getImage

      public static org.eclipse.swt.graphics.Image getImage(String symbolicName)
      Returns the image for the provided symbolic name.
      Parameters:
      symbolicName - the image name, cannot be null
      Returns:
      the image for the provided symbolic name or null if image not found
    • getImageDescriptor

      public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String symbolicName)
      Returns the image descriptior for the provided symbolic name.
      Parameters:
      symbolicName - the image name, cannot be null
      Returns:
      the image descriptior for the provided symbolic name or null if image not found
    • 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.ui.plugin.AbstractUIPlugin
      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.ui.plugin.AbstractUIPlugin
      Throws:
      Exception
    • getActivePage

      public static org.eclipse.ui.IWorkbenchPage getActivePage()
      Returns active workbench page. Can return null.
      Returns:
      active workbench page, or null if there isn't one.
    • getActivePart

      public static org.eclipse.ui.IWorkbenchPart getActivePart()
      Get active workbench part. Can return null.
      Returns:
      active workbench part, or null if there isn't one.
    • isLibraryFunctionalityEnabled

      public static boolean isLibraryFunctionalityEnabled()
      Tells whether the library functionality is enabled.
      Returns:
      true if the library functionality is enabled, false otherwise
    • initializeImageRegistry

      protected void initializeImageRegistry(org.eclipse.jface.resource.ImageRegistry registry)
      Overrides:
      initializeImageRegistry in class org.eclipse.ui.plugin.AbstractUIPlugin