Esempio n. 1
0
 public SVCompletionProposal(
     SVDBDeclCacheItem item, String prefix, int replacementOffset, int replacementLength) {
   fCacheItem = item;
   fPrefix = prefix;
   fReplacement = item.getName();
   fReplacementOffset = replacementOffset;
   fReplacementLength = replacementLength;
   fType = SVCompletionProposalType.SVObject;
 }
Esempio n. 2
0
 @Override
 public String getElementName(Object item) {
   if (item instanceof SVDBDeclCacheItem) {
     SVDBDeclCacheItem ci = (SVDBDeclCacheItem) item;
     return ci.getName();
   } else {
     return item.toString();
   }
 }
Esempio n. 3
0
 public String getName() {
   if (fCacheItem != null) {
     return fCacheItem.getName();
   } else {
     ISVDBItemBase item = getItem();
     if (item != null) {
       return SVDBItem.getName(item);
     } else {
       return fReplacement;
     }
   }
 }