protected JavaPackageElement(JavaPackage parent, string name, JavaPackageElementTypes type) { Parent = parent; Name = name; Type = type; Extension = Type.GetExtension(); }
public static string GetExtension(this JavaPackageElementTypes type) { return(_typesByEx.FirstOrDefault(t => t.Value == type).Key ?? string.Empty); }