Example #1
0
  /**
   * Wenn <code>true</code> zurueckgegeben wird ist das zeichen vor dem offset ein : und das Zeichen
   * davor kein Whitespace.
   */
  private boolean isQualifiedSymbolProposal(final IDocument doc, final int offset)
      throws BadLocationException {
    int wordOffset = skipWhitespace(doc, offset);
    String word = computePreviousWord(doc, wordOffset);

    if (word == null || word.equals("")) {
      return false;
    }

    Symbol sym = TypeFactory.createSymbol(word, null);
    if (sym.isQualified()) {
      fContextPackage = sym.getQualifier();
      fContextWord = sym.getSymbolName();
      return true;
    }
    return false;
  }