Exemplo n.º 1
0
 public ISVDBItemBase getItem() {
   if (fItem != null) {
     return fItem;
   } else if (fCacheItem != null) {
     fItem = fCacheItem.getSVDBItem();
     return fItem;
   } else {
     return null;
   }
 }
Exemplo n.º 2
0
  public List<SVDBClassDecl> findItem(String type_name) {
    List<SVDBClassDecl> ret = new ArrayList<SVDBClassDecl>();

    List<SVDBDeclCacheItem> found =
        fIndexIt.findGlobalScopeDecl(new NullProgressMonitor(), type_name, fMatcher);

    for (SVDBDeclCacheItem ci : found) {
      if (ci.getType() == SVDBItemType.ClassDecl) {
        ret.add((SVDBClassDecl) ci.getSVDBItem());
      }
    }

    return ret;
  }