View | Details | Raw Unified | Return to bug 237775
Collapse All | Expand All

(-)src/org/eclipse/jst/jsp/ui/internal/contentassist/AutoImportProposal.java (-1 / +1 lines)
Lines 190-196 Link Here
190
				closing = "\"%>"; //$NON-NLS-1$
190
				closing = "\"%>"; //$NON-NLS-1$
191
			}
191
			}
192
		}
192
		}
193
		return delim + opening + getImportDeclaration() + closing;
193
		return opening + getImportDeclaration() + closing + delim;
194
	}
194
	}
195
195
196
	public String getImportDeclaration() {
196
	public String getImportDeclaration() {
(-)src/org/eclipse/jst/jsp/ui/internal/contentassist/JSPProposalCollector.java (-2 / +2 lines)
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();

Return to bug 237775