public override void Present( StructuredPresenter <TreeModelNode, IPresentableItem> presenter, IPresentableItem item, TreeModelNode modelNode, PresentationState state ) { item.RichText = GetDirectiveText(); item.Images.Add(PsiWebThemedIcons.AspDirective.Id); }
public override void Present(StructuredPresenter<TreeModelNode, IPresentableItem> presenter, IPresentableItem item, TreeModelNode modelNode, PresentationState state) { base.Present(presenter, item, modelNode, state); if (_element.InheritanceInformation != null) item.Images.Add(_element.InheritanceInformation.Image, _element.InheritanceInformation.ToolTip); else { // if the children have inheritance information, we must add en empty inheritance icon so that the text is aligned var structureDeclaredElement = _element.Parent as T4CSharpCodeStructureDeclaredElement; if (structureDeclaredElement != null && structureDeclaredElement.ChildrenWithInheritance) item.Images.Add(PsiServicesThemedIcons.Empty.Id); } }
public override void Present(StructuredPresenter <TreeModelNode, IPresentableItem> presenter, IPresentableItem item, TreeModelNode modelNode, PresentationState state) { base.Present(presenter, item, modelNode, state); if (_element.InheritanceInformation != null) { item.Images.Add(_element.InheritanceInformation.Image, _element.InheritanceInformation.ToolTip); } else { // if the children have inheritance information, we must add en empty inheritance icon so that the text is aligned var structureDeclaredElement = _element.Parent as T4CSharpCodeStructureDeclaredElement; if (structureDeclaredElement != null && structureDeclaredElement.ChildrenWithInheritance) { item.Images.Add(PsiServicesThemedIcons.Empty.Id); } } }
public abstract void Present(StructuredPresenter <TreeModelNode, IPresentableItem> presenter, IPresentableItem item, TreeModelNode modelNode, PresentationState state);