Class DebugUiPlugin

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

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

  • Constructor Details

    • DebugUiPlugin

      public DebugUiPlugin()
  • Method Details

    • getDefault

      public static DebugUiPlugin getDefault()
      Returns the shared BSL debug UI plug-in instance.
      Returns:
      the shared BSL debug 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
    • 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
    • log

      public static void log(Throwable throwable)
      Writes the specified Throwable to the plug-in logger.
      Parameters:
      throwable - the Throwable to log, cannot be null
    • createWarningStatus

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

      public static org.eclipse.core.runtime.IStatus createErrorStatus(String message)
      Creates an error status by the given 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 given 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
    • formatKeyBindingString

      public static final String formatKeyBindingString(int modifierKeys, String keyOrClick)
      Formats the given key stroke or click name and the modifier keys to a key binding string that can be used in action texts.
      Parameters:
      modifierKeys - the modifier keys
      keyOrClick - a key stroke or click, e.g. "Double Click", cannot be null
      Returns:
      the formatted keyboard shortcut string, e.g. "Shift+Double Click", never null
    • 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.
    • 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
    • initializeImageRegistry

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