public PropertyViewModel(PropertyDeclaration property, AD.ProjectProperty projectProperty, ViewModel parent) : base(parent) { _property = property; _projectProperty = projectProperty; Caption = NodePrinter.Print(_property); Image = ImageType.Node_Properties; }
internal static string Print(EventDeclaration e) { var printer = new NodePrinter(); printer._type = e.GetOwnerType(); printer.PrintEvent(e); return(printer.ToString()); }
internal static string Print(PropertyDeclaration property) { var printer = new NodePrinter(); printer._type = property.GetOwnerType(); printer.PrintProperty(property); return(printer.ToString()); }
internal static string Print(FieldDeclaration field, FieldNodeKind kind) { var printer = new NodePrinter(); printer._type = field.GetOwnerType(); printer.PrintField(field, kind); return(printer.ToString()); }
internal static string Print(TypeDeclaration type, bool ignoreEnclosingType = false, bool ignoreNamespace = false) { var printer = new NodePrinter(); printer._type = type; printer.PrintType(type, ignoreEnclosingType, ignoreNamespace); return(printer.ToString()); }
internal MethodViewModel(MethodDeclaration method, AD.ProjectMethod projectMethod, ViewModel parent) : base(parent) { _method = method; _projectMethod = projectMethod; Caption = NodePrinter.Print(method); Image = ProjectUtils.GetMethodImage(method); }
public EventViewModel(EventDeclaration e, AD.ProjectEvent projectEvent, ViewModel parent) : base(parent) { _event = e; _projectEvent = projectEvent; _assemblyViewModel = FindParent <AssemblyViewModel>(true); Caption = NodePrinter.Print(_event); Image = ImageType.Node_Event; }
public TypeViewModel(TypeDeclaration type, AD.ProjectType projectType, ViewModel parent) : base(parent) { _type = type; _projectType = projectType; _typeKind = ProjectUtils.GetTypeKind(type); Caption = NodePrinter.Print(type, true, true); Image = ProjectUtils.GetTypeImage(type, _typeKind); }
internal static string Print(MethodDeclaration method) { var printer = new NodePrinter(); printer._method = method; printer._type = method.GetOwnerType(); printer.PrintMethod(method); return(printer.ToString()); }
public FieldViewModel(FieldDeclaration field, AD.ProjectField projectField, ViewModel parent) : base(parent) { _field = field; _projectField = projectField; var typeViewModel = FindParent <TypeViewModel>(); _fieldKind = ProjectUtils.GetFieldKind(field, typeViewModel.Type, typeViewModel.TypeKind); Caption = NodePrinter.Print(field, _fieldKind); Image = ProjectUtils.GetFieldImage(field, _fieldKind); }
internal SearchTypeItem(TypeDeclaration type) { _type = type; _caption = NodePrinter.Print(_type); }