Changeset 112

Show
Ignore:
Timestamp:
07/15/08 01:21:00 (6 months ago)
Author:
mb0
Message:

forgot to add the prefix.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • axdt/trunk/org.axdt.as3/src/org/axdt/as3/imp/contentProposer/AS3ContentProposer.java

    r111 r112  
    7777                        Set<String> set = getUnitScopeNames(node, prefix); 
    7878                        for (String key:set)  
    79                                 list.add(new SourceProposal(key,"",offset)); 
     79                                list.add(new SourceProposal(key,prefix,offset)); 
    8080                        if (node != null) { 
    8181                                if (node instanceof BadDirective) { 
     
    9191                                } else if (node instanceof PackageBody) { 
    9292                                        for (String key:keywords) { 
    93                                                 list.add(new SourceProposal(key, "", offset)); 
     93                                                if (key.substring(0, key.length() - 1).startsWith(prefix)) 
     94                                                        list.add(new SourceProposal(key, prefix, offset)); 
    9495                                        } 
    95                                 } 
    96                         } else { 
    97                                 // node is null ?! the document is still empty 
    98                                 // list.add(new SourceProposal("add package","package 
    99                                 // {\n\t\n}","", offset, offset+8)); 
    100                                 for (String key:keywords) { 
    101                                         list.add(new SourceProposal(key, "", offset)); 
    10296                                } 
    10397                        } 
     
    110104                                Set<String> set = getUnitScopeNames(findNode, prefix); 
    111105                                for (String key:set)  
    112                                         list.add(new SourceProposal(key,"",offset)); 
     106                                        list.add(new SourceProposal(key,prefix,offset)); 
    113107                        } 
    114108                }