Lines 90-96
Link Here
|
90 |
if(proposal.getKind() == CompletionProposal.TYPE_REF) { |
90 |
if(proposal.getKind() == CompletionProposal.TYPE_REF) { |
91 |
String signature = String.valueOf(proposal.getDeclarationSignature()); |
91 |
String signature = String.valueOf(proposal.getDeclarationSignature()); |
92 |
String completion = String.valueOf(proposal.getCompletion()); |
92 |
String completion = String.valueOf(proposal.getCompletion()); |
93 |
if(completion.indexOf(signature) != -1) { |
93 |
if(completion.indexOf(signature + ".") != -1) { |
94 |
jspProposal = createAutoImportProposal(proposal); |
94 |
jspProposal = createAutoImportProposal(proposal); |
95 |
} |
95 |
} |
96 |
} |
96 |
} |
Lines 114-120
Link Here
|
114 |
// it's fully qualified so we should |
114 |
// it's fully qualified so we should |
115 |
// add an import statement |
115 |
// add an import statement |
116 |
// create an autoimport proposal |
116 |
// create an autoimport proposal |
117 |
String newCompletion = completion.replaceAll(signature + ".", ""); //$NON-NLS-1$ //$NON-NLS-2$ |
117 |
String newCompletion = completion.replaceAll(signature + "\\.", ""); //$NON-NLS-1$ //$NON-NLS-2$ |
118 |
|
118 |
|
119 |
// java offset |
119 |
// java offset |
120 |
int offset = proposal.getReplaceStart(); |
120 |
int offset = proposal.getReplaceStart(); |