Class ErdUiPlugin

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

public class ErdUiPlugin extends org.eclipse.ui.plugin.AbstractUIPlugin
The activator class controls the plug-in life cycle.
  • Field Details

  • Constructor Details

    • ErdUiPlugin

      public ErdUiPlugin()
  • Method Details

    • getDefault

      public static ErdUiPlugin getDefault()
      Returns the shared instance
      Returns:
      the shared instance
    • getImageDescriptor

      public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String symbolicName)
      Gets image descriptor from registry by symbolic name.
      Parameters:
      symbolicName - - symbolic name. Can't be null.
      Returns:
      image descriptor. Can return null.
    • getImage

      public static org.eclipse.swt.graphics.Image getImage(String symbolicName)
      Gets image from registry by symbolic name.
      Parameters:
      symbolicName - - symbolic name. Can't be null.
      Returns:
      image. Can return null.
    • log

      public static void log(org.eclipse.core.runtime.IStatus status)
      Log given status.
      Parameters:
      status - - status to log. Can't be null.
    • createErrorStatus

      public static org.eclipse.core.runtime.IStatus createErrorStatus(String msg, Throwable e)
      Creates erros status.
      Parameters:
      msg - - message. Can't be null.
      e - - throwable. Can be null.
      Returns:
      created erroe status. Can't return null.
    • createWarningStatus

      public static org.eclipse.core.runtime.IStatus createWarningStatus(String msg)
      Creates warning status.
      Parameters:
      msg - - message. Can't be null.
      Returns:
      created warning status. Can't return null.
    • 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
    • getInjector

      public com.google.inject.Injector getInjector()
      Returns Guice injector for this plugin.
      Returns:
      Guice injector for this plugin. Can't return null
    • initializeImageRegistry

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