public List<Pair<String, Image>> getAllPossibleNames() { List<Pair<String, Image>> list = new LinkedList<Pair<String, Image>>(); for (String source : info.getSources()) { String name = info.getSourceName(source); if (name == null || name.trim().length() == 0) continue; Image icon = InfoRetrieverPluginRegistry.getIconForSource(source, data.getContentType().getID()); list.add(new Pair<String, Image>(name, icon)); } if (data.getSources().size() == 1) { list.add( new Pair<String, Image>( FileSystemUtil.getFileNameWithoutExtension(data.getSources().get(0).getFileName()), SharedImages.getImage(SharedImages.icons.x16.file.FILE))); } return list; }