@Override public boolean select(Viewer viewer, Object parentElement, Object element) { if (searchString == null || searchString.length() == 0) return true; MongoDBIndexDAO dao = (MongoDBIndexDAO) element; if (dao.getNs().toUpperCase().matches(searchString.toUpperCase())) return true; return false; }
@Override public String getColumnText(Object element, int columnIndex) { MongoDBIndexDAO tc = (MongoDBIndexDAO) element; switch (columnIndex) { case 0: return tc.getNs(); case 1: return tc.getName(); case 2: return new Boolean(tc.isUnique()).toString(); } return "** not set column **"; }