ilog.rules.studio.model.query.wrappers

Class IlrQueryProjectElementWrapper

  • java.lang.Object
    • ilog.rules.studio.model.query.wrappers.IlrQueryProjectElementWrapper
  • All Implemented Interfaces:
    IlrQueryableElementWrapper
    Direct Known Subclasses:
    ilog.rules.studio.model.query.wrappers.IlrQueryPackageElementWrapper, IlrQueryParameterWrapper


    public class IlrQueryProjectElementWrapper
    extends java.lang.Object
    implements IlrQueryableElementWrapper
    A wrapper for IlrProjectElement objects which are returned by a query. The useful parts of the IlrProjectElement are wrapped so that query actions can use them.
    See Also:
    IlrProjectElement
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      IlrElement getModelElement()
      Gets the wrapped project element.
      protected org.eclipse.core.resources.IProject getProject()
      Returns the project of the wrapped project element.
      IlrProjectElement getProjectElement()
      Gets the wrapped project element.
      boolean isElementModified()
      Returns true if the matching model element has been modified by the execution of the query action.
      void markElementModified()
      When extending the query model, if you write a method that modifies a property of the underlying IlrElement, call this method to let the environment know the element has been changed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getProjectElement

        public IlrProjectElement getProjectElement()
        Gets the wrapped project element.
        Returns:
        The wrapped project element.
      • getProject

        protected org.eclipse.core.resources.IProject getProject()
        Returns the project of the wrapped project element.
      • markElementModified

        public void markElementModified()
        Description copied from interface: IlrQueryableElementWrapper
        When extending the query model, if you write a method that modifies a property of the underlying IlrElement, call this method to let the environment know the element has been changed. RS will then automatically save the element after all query actions have been executed. RTS will proceed the same way, automatically versionning the element.
        Specified by:
        markElementModified in interface IlrQueryableElementWrapper

© Copyright IBM Corp. 1987, 2017