ilog.rules.studio.model.dt

Class IlrStudioDTPlugin

  • java.lang.Object
    • org.eclipse.core.runtime.Plugin
      • org.eclipse.ui.plugin.AbstractUIPlugin
        • ilog.rules.studio.shared.util.IlrAbstractUIPlugin
          • ilog.rules.studio.model.dt.IlrStudioDTPlugin
  • All Implemented Interfaces:
    ilog.rules.studio.model.builder.IlrRuleBuilderListener, org.osgi.framework.BundleActivator


    public class IlrStudioDTPlugin
    extends ilog.rules.studio.shared.util.IlrAbstractUIPlugin
    implements ilog.rules.studio.model.builder.IlrRuleBuilderListener
    The plugin class that enables support of DT feature in Rule Designer.

    DT regroups all functionalities related to the editing and the management of decision table and decision tree rules in Rule Designer. This plugin class provides utility methods that lets you manipulate DT rules in Rule Designer. You can retrieve the only instance of this plugin by calling the IlrStudioDTPlugin.getDefault() static method.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String DEBUG_DT
      Debug option for the DT plugin: report performance indicator for DT loading, code generation, and so on.
      static java.lang.String PLUGIN_ID
      The plug-in identifier of the DT rule support plugin (value "ilog.rules.studio.model.dt").
      • Fields inherited from class org.eclipse.core.runtime.Plugin

        PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean debugMode() 
      boolean getDebugOption(java.lang.String option)
      Indicates whether the debug mode is active for this plugin for the given option.
      static IlrStudioDTPlugin getDefault()
      Returns the shared instance of StudioDTPlugin.
      static IlrDTService getDTService(IlrRuleProject ruleProject)
      Returns the DT Rule Project service associated with the given rule project.
      static IlrDTService getDTService(org.eclipse.core.resources.IProject project)
      Returns the DT Rule Project service associated with the given project.
      static java.lang.String getPluginId() 
      static org.eclipse.core.resources.IWorkspace getWorkspace()
      Returns the workspace instance.
      void start(org.osgi.framework.BundleContext context) 
      void stop(org.osgi.framework.BundleContext context) 
      • Methods inherited from class ilog.rules.studio.shared.util.IlrAbstractUIPlugin

        getActivePage, getActiveWorkbenchShell, getActiveWorkbenchWindow, getBundleLocalizationString, getErrorString, getExceptionHandler, getFormattedErrorString, getFormattedString, getFormattedString, getFormattedString, getLogger, getMessages, getString, getString, printToMessageConsole, registerMessages, unregisterMessages
      • Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin

        createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
      • Methods inherited from class org.eclipse.core.runtime.Plugin

        find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
      • Methods inherited from class java.lang.Object

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

      • PLUGIN_ID

        public static final java.lang.String PLUGIN_ID
        The plug-in identifier of the DT rule support plugin (value "ilog.rules.studio.model.dt").
        See Also:
        Constant Field Values
      • DEBUG_DT

        public static final java.lang.String DEBUG_DT
        Debug option for the DT plugin: report performance indicator for DT loading, code generation, and so on.
        See Also:
        Constant Field Values
    • Method Detail

      • getDefault

        public static IlrStudioDTPlugin getDefault()
        Returns the shared instance of StudioDTPlugin.

        Returns:
        the plugin instance, or null if the plugin has not been loaded correctly.
      • start

        public void start(org.osgi.framework.BundleContext context)
                   throws java.lang.Exception
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Overrides:
        start in class ilog.rules.studio.shared.util.IlrAbstractUIPlugin
        Throws:
        java.lang.Exception
      • stop

        public void stop(org.osgi.framework.BundleContext context)
                  throws java.lang.Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Overrides:
        stop in class ilog.rules.studio.shared.util.IlrAbstractUIPlugin
        Throws:
        java.lang.Exception
      • getDTService

        public static IlrDTService getDTService(IlrRuleProject ruleProject)
        Returns the DT Rule Project service associated with the given rule project.

        Parameters:
        ruleProject - The rule project.
        Returns:
        the DT Service of the given rule project.
      • getDTService

        public static IlrDTService getDTService(org.eclipse.core.resources.IProject project)
        Returns the DT Rule Project service associated with the given project.

        Parameters:
        project - The rule project.
        Returns:
        the DT Service of the given project, or null if the given project does not correspond to a rule project.
      • getWorkspace

        public static org.eclipse.core.resources.IWorkspace getWorkspace()
        Returns the workspace instance.
      • getPluginId

        public static java.lang.String getPluginId()
        Returns:
        the symbolic name of the plugin.
      • getDebugOption

        public boolean getDebugOption(java.lang.String option)
        Indicates whether the debug mode is active for this plugin for the given option.
        Overrides:
        getDebugOption in class ilog.rules.studio.shared.util.IlrAbstractUIPlugin
        Parameters:
        option - One of the debug options for this plugin (see DEBUG_DT).
      • debugMode

        public boolean debugMode()

© Copyright IBM Corp. 1987, 2017