Class DcsPlugin

java.lang.Object
org.eclipse.core.runtime.Plugin
com._1c.g5.v8.dt.dcs.DcsPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class DcsPlugin extends org.eclipse.core.runtime.Plugin
Dcs plugin.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.eclipse.core.runtime.Plugin

    PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.eclipse.core.runtime.IStatus
    Creates error status.
    static org.eclipse.core.runtime.IStatus
    Creates an info status by the given message.
    static org.eclipse.core.runtime.IStatus
    Creates warning status.
    Gets singletom instance of DcsDataSetInfoLocalQueryCache
    static DcsPlugin
    Gets default instance.
    com.google.inject.Injector
     
    static boolean
    Returns whether this plugin debug mode is on.
    static void
    log(org.eclipse.core.runtime.IStatus status)
    Logs the given IStatus.
    void
    start(org.osgi.framework.BundleContext context)
     
    void
    stop(org.osgi.framework.BundleContext context)
     
    static void
    trace(String message)
    Writes a message as INFO status to the plug-in logger, if plug-in debug mode is on.

    Methods inherited from class org.eclipse.core.runtime.Plugin

    find, find, getBundle, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • DcsPlugin

      public DcsPlugin()
      Creates a new instance.
  • Method Details

    • createErrorStatus

      public static org.eclipse.core.runtime.IStatus createErrorStatus(String message, Throwable e)
      Creates error status.
      Parameters:
      message - the message to log.
      e - the throwable.
      Returns:
      created status.
    • createWarningStatus

      public static org.eclipse.core.runtime.IStatus createWarningStatus(String message)
      Creates warning status.
      Parameters:
      message - the message to log.
      Returns:
      created status.
    • createInfoStatus

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

      public static DcsPlugin getDefault()
      Gets default instance.
      Returns:
      the default instance.
    • log

      public static void log(org.eclipse.core.runtime.IStatus status)
      Logs the given IStatus.
      Parameters:
      status - the status to log.
    • isTracing

      public static boolean isTracing()
      Returns whether this plugin debug mode is on.
      Returns:
      whether this plugin debug mode is on
    • trace

      public static void trace(String message)
      Writes a message as INFO status to the plug-in logger, if plug-in debug mode is on.
      Parameters:
      message - the message to log, cannot be 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.core.runtime.Plugin
      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.core.runtime.Plugin
      Throws:
      Exception
    • getInjector

      public com.google.inject.Injector getInjector()
    • getDcsDataSetInfoLocalQueryCache

      public DcsDataSetInfoLocalQueryCache getDcsDataSetInfoLocalQueryCache()
      Gets singletom instance of DcsDataSetInfoLocalQueryCache
      Returns:
      instance of DcsDataSetInfoLocalQueryCache, never null