Class CmiUiPlugin

java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com._1c.g5.v8.dt.internal.cmi.ui.CmiActivator
com._1c.g5.v8.dt.internal.cmi.ui.CmiUiPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class CmiUiPlugin extends CmiActivator
Cmi UI plugin activator.
  • Field Details

  • Constructor Details

    • CmiUiPlugin

      public CmiUiPlugin()
  • Method Details

    • getImage

      public static org.eclipse.swt.graphics.Image getImage(String symbolicName)
      Gets image from registry by symbolic name.
      Parameters:
      symbolicName - symbolic name
      Returns:
      image
    • getImageDescriptor

      public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String symbolicName)
      Gets image descriptor from registry by symbolic name.
      Parameters:
      symbolicName - symbolic name
      Returns:
      image descriptor
    • log

      public static void log(org.eclipse.core.runtime.IStatus status)
      Writes a status to the plugin log.
      Parameters:
      status - status to log, cannot be null
    • logError

      public static void logError(Throwable throwable)
      Writes a throwable to the plugin log as error status.
      Parameters:
      throwable - throwable, cannot be null
    • createErrorStatus

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

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