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; }
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; }