private void renderFile( final VirtualFile file, final SimpleTextAttributes textAttributes, @Nullable final String toolTip) { final PresentationData presentation = getPresentation(); presentation.setTooltip(toolTip); presentation.addText(myFilePointer.getFileName(), textAttributes); if (file != null) { presentation.setLocationString(file.getPath()); } }
FileSetNode(final OfbizFileSet fileSet) { mySet = fileSet; final PresentationData presentationData = getPresentation(); final String name = mySet.getName(); if (fileSet.getFiles().isEmpty()) { presentationData.addText(name, getErrorAttributes()); presentationData.setTooltip("No files attached"); } else { presentationData.addText(name, getPlainAttributes()); presentationData.setLocationString("" + fileSet.getFiles().size()); } }