Changeset 378 for trunk


Ignore:
Timestamp:
02/24/06 15:01:33 (19 years ago)
Author:
remar
Message:
  • temporary fix for computeContextInformation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.ui/src/org/modelica/mdt/ui/editor/ModelicaCompletionProcessor.java

    r375 r378  
    624624            int offset)
    625625    {
    626         String className = getPrefix(viewer.getDocument(), offset);
    627 
    628         fetchParameters(className.substring(0, className.length()-1));
     626        /* make sure we don't back over the document... */
     627        if(offset == 0)
     628        {
     629            return new IContextInformation[0];
     630        }
     631       
     632        String className = getPrefix(viewer.getDocument(), offset - 1);
     633
     634       
     635        fetchParameters(className);
    629636       
    630637        String proposal = "";
Note: See TracChangeset for help on using the changeset viewer.