protected JavaPackageElement(JavaPackage parent, string name, JavaPackageElementTypes type)
        {
            Parent = parent;
            Name   = name;

            Type = type;

            Extension = Type.GetExtension();
        }
Exemple #2
0
 public static string GetExtension(this JavaPackageElementTypes type)
 {
     return(_typesByEx.FirstOrDefault(t => t.Value == type).Key ?? string.Empty);
 }