Class Utils


  • public class Utils
    extends java.lang.Object
    Some utility functions.
    Author:
    Holger Eichelberger
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T getParentProject​(ILanguageElement modelElement, java.lang.Class<T> cls)
      Returns the parent project.
      • Methods inherited from class java.lang.Object

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

      • Utils

        public Utils()
    • Method Detail

      • getParentProject

        public static <T> T getParentProject​(ILanguageElement modelElement,
                                             java.lang.Class<T> cls)
        Returns the parent project.
        Type Parameters:
        T - the project type
        Parameters:
        modelElement - the model (language) element
        cls - the class of the project type
        Returns:
        the parent project