Class ModelSourceUtil


  • public final class ModelSourceUtil
    extends 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 Detail

      • getSourceFilePathForEObject

        public static 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 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