Class ModelSourceUtil


  • public final class ModelSourceUtil
    extends java.lang.Object
    This utility class contains helper methods for various tasks of determining information about the Integrity model source files.
    Author:
    Rene Schneider - initial API and implementation
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getSourceFilePathForEObject​(org.eclipse.emf.ecore.EObject anObject)
      Finds the path to the source file in which the given EObject is defined.
      static java.lang.String getSourceFilePathForINode​(org.eclipse.xtext.nodemodel.INode aNode)
      Finds the path to the source file in which the given INode is defined.
      • Methods inherited from class java.lang.Object

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

      • getSourceFilePathForEObject

        public static java.lang.String getSourceFilePathForEObject​(org.eclipse.emf.ecore.EObject anObject)
        Finds the path to the source file in which the given EObject is defined.
        Parameters:
        anObject - the object
        Returns:
        the path or null if not determinable
      • getSourceFilePathForINode

        public static java.lang.String getSourceFilePathForINode​(org.eclipse.xtext.nodemodel.INode aNode)
        Finds the path to the source file in which the given INode is defined.
        Parameters:
        aNode - the node
        Returns:
        the path