ilog.rules.studio.model

Class IlrStudioModelPlugin

  • java.lang.Object
    • org.eclipse.core.runtime.Plugin
      • ilog.rules.studio.shared.util.IlrAbstractPlugin
        • ilog.rules.studio.model.IlrStudioModelPlugin
  • All Implemented Interfaces:
    org.osgi.framework.BundleActivator


    public class IlrStudioModelPlugin
    extends ilog.rules.studio.shared.util.IlrAbstractPlugin
    The central class for access to the Rule Designer model.

    This class provides:

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String NATURE_ID
      The identifier for the rule project nature (value "ilog.rules.studio.model.ruleNature").
      static java.lang.String PLUGIN_ID
      The plug-in identifier of the Rule Designer core support (value "ilog.rules.studio.model").
      • 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 checkToBeRebuild(org.eclipse.core.resources.IProject project) 
      static IlrRuleProject createRuleProject(java.lang.String projectName)
      Creates a working rule project.
      static IlrStudioModelPlugin getPluginInstance()
      Returns the singleton instance of this plugin.
      static IlrResourceManager getResourceManager()
      Returns the Resource Manager singleton instance.
      IlrRuleEnginePolicy getRuleEnginePolicy()
      Return the policy controlling the default build mode for rule projects and other related configs.
      static IlrRuleMetaModel getRuleMetaModel()
      Returns the singleton instance of the rule meta model.
      static IlrRuleModel getRuleModel()
      Returns the singleton instance of the rule model.
      static java.lang.String getSymbolicName()
      Returns the symbolic name of this plugin (value "ilog.rules.studio.model").
      static org.eclipse.core.resources.IWorkspace getWorkspace()
      Returns the workspace singleton instance.
      void start(org.osgi.framework.BundleContext context) 
      void stop(org.osgi.framework.BundleContext context) 
      • Methods inherited from class ilog.rules.studio.shared.util.IlrAbstractPlugin

        getBundleLocalizationString, getDebugOption, getErrorString, getExceptionHandler, getFormattedErrorString, getFormattedString, getFormattedString, getFormattedString, getLogger, getMessages, getString, getString, getString, registerMessages, unregisterMessages
      • Methods inherited from class org.eclipse.core.runtime.Plugin

        find, find, getBundle, getDescriptor, 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 Detail

      • PLUGIN_ID

        public static final java.lang.String PLUGIN_ID
        The plug-in identifier of the Rule Designer core support (value "ilog.rules.studio.model").
        See Also:
        Constant Field Values
      • NATURE_ID

        public static final java.lang.String NATURE_ID
        The identifier for the rule project nature (value "ilog.rules.studio.model.ruleNature").
        See Also:
        Constant Field Values
    • Constructor Detail

      • IlrStudioModelPlugin

        public IlrStudioModelPlugin()
        Constructor.

        This class is a singleton. It is not supposed to be instantiated by the users.

    • Method Detail

      • getPluginInstance

        public static IlrStudioModelPlugin getPluginInstance()
        Returns the singleton instance of this plugin.

        Returns:
        The plugin instance.
      • getSymbolicName

        public static java.lang.String getSymbolicName()
        Returns the symbolic name of this plugin (value "ilog.rules.studio.model").

        Returns:
        The symbolic name of this plugin.
      • getRuleModel

        public static IlrRuleModel getRuleModel()
        Returns the singleton instance of the rule model.

        Returns:
        The singleton instance of the rule model.
      • getRuleMetaModel

        public static IlrRuleMetaModel getRuleMetaModel()
        Returns the singleton instance of the rule meta model.

        Returns:
        The singleton instance of the rule meta model.
      • createRuleProject

        public static IlrRuleProject createRuleProject(java.lang.String projectName)
                                                throws org.eclipse.core.runtime.CoreException
        Creates a working rule project.
        Throws:
        org.eclipse.core.runtime.CoreException
      • getResourceManager

        public static IlrResourceManager getResourceManager()
        Returns the Resource Manager singleton instance.
      • getWorkspace

        public static org.eclipse.core.resources.IWorkspace getWorkspace()
        Returns the workspace singleton instance.
      • 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.IlrAbstractPlugin
        Throws:
        java.lang.Exception
      • checkToBeRebuild

        public boolean checkToBeRebuild(org.eclipse.core.resources.IProject project)
      • 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.IlrAbstractPlugin
        Throws:
        java.lang.Exception
      • getRuleEnginePolicy

        public IlrRuleEnginePolicy getRuleEnginePolicy()
        Return the policy controlling the default build mode for rule projects and other related configs. There's a default built-in policy (IlrRuleEnginePolicy) which can be overriden by a single extension on the ruleEnginePolicy extention point.
        Returns:
        a non-null value

© Copyright IBM Corp. 1987, 2017