Changeset 112
- Timestamp:
- 07/15/08 01:21:00 (6 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
axdt/trunk/org.axdt.as3/src/org/axdt/as3/imp/contentProposer/AS3ContentProposer.java
r111 r112 77 77 Set<String> set = getUnitScopeNames(node, prefix); 78 78 for (String key:set) 79 list.add(new SourceProposal(key, "",offset));79 list.add(new SourceProposal(key,prefix,offset)); 80 80 if (node != null) { 81 81 if (node instanceof BadDirective) { … … 91 91 } else if (node instanceof PackageBody) { 92 92 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)); 94 95 } 95 }96 } else {97 // node is null ?! the document is still empty98 // list.add(new SourceProposal("add package","package99 // {\n\t\n}","", offset, offset+8));100 for (String key:keywords) {101 list.add(new SourceProposal(key, "", offset));102 96 } 103 97 } … … 110 104 Set<String> set = getUnitScopeNames(findNode, prefix); 111 105 for (String key:set) 112 list.add(new SourceProposal(key, "",offset));106 list.add(new SourceProposal(key,prefix,offset)); 113 107 } 114 108 }
