Class EditorPlugin

java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
com.e1c.langtool.ui.internal.editor.EditorPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class EditorPlugin extends org.eclipse.ui.plugin.AbstractUIPlugin
UI Translations Editor plugin
  • Field Details

  • Constructor Details

    • EditorPlugin

      public EditorPlugin()
  • Method Details

    • getDefault

      public static EditorPlugin getDefault()
      Returns the shared instance
      Returns:
      the shared instance
    • 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)
      Creates error status by a 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
    • createWarningStatus

      public static org.eclipse.core.runtime.IStatus createWarningStatus(String message)
      Creates warning status by a given message.
      Parameters:
      message - status message, cannot be null
      Returns:
      status created warning status, never null
    • createWarningStatus

      public static org.eclipse.core.runtime.IStatus createWarningStatus(String message, Exception throwable)
      Creates warning status by a given message and cause throwable.
      Parameters:
      message - status message, cannot be null
      throwable - throwable, can be null if not applicable
      Returns:
      status created warning status, never null
    • start

      public void start(org.osgi.framework.BundleContext bundleContext) 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 bundleContext) 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()
      Get 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.
    • getImage

      public static org.eclipse.swt.graphics.Image getImage(String id)
    • getImageDescriptor

      public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String id)
    • initializeImageRegistry

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