コード例 #1
0
 public boolean isValidFor(IDocument document, int offset) {
   try {
     int length = offset - fReplacementOffset;
     return completionProposal
         .getDisplayString()
         .toLowerCase()
         .contains(document.get(fReplacementOffset, length).toLowerCase());
   } catch (BadLocationException e) {
     // ignore
   }
   return false;
 }
コード例 #2
0
 public String getDisplayString() {
   return completionProposal.getDisplayString();
 }