Java 类com.intellij.util.xml.ElementPresentation 实例源码

项目:tools-idea    文件:DeleteDomElement.java   
private static String getPresentationText(final SimpleNode selectedNode) {
  String removeString = ApplicationBundle.message("action.remove");
  final ElementPresentation presentation = ((BaseDomElementNode)selectedNode).getDomElement().getPresentation();
  removeString += " " + presentation.getTypeName() +
                              (presentation.getElementName() == null || presentation.getElementName().trim().length() == 0? "" : ": " + presentation.getElementName());
  return removeString;
}
项目:consulo-xml    文件:DeleteDomElement.java   
private static String getPresentationText(final SimpleNode selectedNode) {
  String removeString = ApplicationBundle.message("action.remove");
  final ElementPresentation presentation = ((BaseDomElementNode)selectedNode).getDomElement().getPresentation();
  removeString += " " + presentation.getTypeName() +
                              (presentation.getElementName() == null || presentation.getElementName().trim().length() == 0? "" : ": " + presentation.getElementName());
  return removeString;
}
项目:intellij-ce-playground    文件:DeleteDomElement.java   
private static String getPresentationText(final SimpleNode selectedNode, String removeString) {
  final ElementPresentation presentation = ((BaseDomElementNode)selectedNode).getDomElement().getPresentation();
  removeString += " " + presentation.getTypeName() +
                              (presentation.getElementName() == null || presentation.getElementName().trim().length() == 0? "" : ": " + presentation.getElementName());
  return removeString;
}