protected final StrutsFileSet mySet;
FileSetNode(final StrutsFileSet fileSet) {
mySet = fileSet;
final PresentationData presentationData = getPresentation();
final String name = mySet.getName();
if (fileSet.getFiles().isEmpty()) {
presentationData.addText(name, getErrorAttributes());
presentationData.setTooltip(StrutsBundle.message("facet.fileset.no.files.attached"));
}
else {
presentationData.addText(name, getPlainAttributes());
presentationData.setLocationString(Integer.toString(fileSet.getFiles().size()));
}
}