1314151617181920212223
private static final String CONCAT_STRING = " - "; @Override public String getText(Object element) { if (element instanceof FitResource) { FitResource r = (FitResource) element; return getBasicText(r); } return super.getText(element); }
4748495051525354555657585960616263646566
if (returnCode != FitResourceSelectionDialog.OK) { return null; } FitResource r = (FitResource) dialog.getFirstResult(); if (r == null) { return null; } IFile file = ResourcesPlugin .getWorkspace() .getRoot() .getFile( new Path(r.getPath() + IPath.SEPARATOR + Constants.CONTENT_TXT)); if (file == null) { return null; }
454647484950515253545556
@Override protected ItemsFilter createFilter() { return new ItemsFilter() { public boolean matchItem(Object item) { FitResource r = (FitResource) item; return matches(r.getName()); } public boolean isConsistentItem(Object item) { return true; }
606162636465666768697071
@Override protected Comparator getItemsComparator() { return new Comparator() { public int compare(Object arg0, Object arg1) { FitResource a = (FitResource) arg0; FitResource b = (FitResource) arg1; return a.compareTo(b); } }; }
949596979899100101
progressMonitor.done(); } @Override public String getElementName(Object item) { FitResource r = (FitResource) item; return r.getName(); }