Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2006 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2007 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 31-38
Link Here
|
31 |
* @param replacementOffset the offset of the text to be replaced |
31 |
* @param replacementOffset the offset of the text to be replaced |
32 |
* @param replacementLength the length of the text to be replaced |
32 |
* @param replacementLength the length of the text to be replaced |
33 |
* @param image the image to display for this proposal |
33 |
* @param image the image to display for this proposal |
34 |
* @param displayString the string to be displayed for the proposal If set to <code>null</code>, |
34 |
* @param displayString the string to be displayed for the proposal If set to <code>null</code>, the replacement string will be taken as display string. |
35 |
* the replacement string will be taken as display string. |
35 |
* @param relevance the relevance |
36 |
*/ |
36 |
*/ |
37 |
public JavaCompletionProposal(String replacementString, int replacementOffset, int replacementLength, Image image, String displayString, int relevance) { |
37 |
public JavaCompletionProposal(String replacementString, int replacementOffset, int replacementLength, Image image, String displayString, int relevance) { |
38 |
this(replacementString, replacementOffset, replacementLength, image, displayString, relevance, false); |
38 |
this(replacementString, replacementOffset, replacementLength, image, displayString, relevance, false); |
Lines 92-98
Link Here
|
92 |
* @see org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal#isValidPrefix(java.lang.String) |
92 |
* @see org.eclipse.jdt.internal.ui.text.java.AbstractJavaCompletionProposal#isValidPrefix(java.lang.String) |
93 |
*/ |
93 |
*/ |
94 |
protected boolean isValidPrefix(String prefix) { |
94 |
protected boolean isValidPrefix(String prefix) { |
95 |
String word= getDisplayString(); |
95 |
String word= getPrefixValidationString(); |
96 |
if (isInJavadoc()) { |
96 |
if (isInJavadoc()) { |
97 |
int idx = word.indexOf("{@link "); //$NON-NLS-1$ |
97 |
int idx = word.indexOf("{@link "); //$NON-NLS-1$ |
98 |
if (idx==0) { |
98 |
if (idx==0) { |