View | Details | Raw Unified | Return to bug 321764 | Differences between
and this patch

Collapse All | Expand All

(-)model/org/eclipse/jdt/core/IAnnotation.java (-14 / +1 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 56-74 Link Here
56
	IMemberValuePair[] getMemberValuePairs() throws JavaModelException;
56
	IMemberValuePair[] getMemberValuePairs() throws JavaModelException;
57
57
58
	/**
58
	/**
59
	 * Returns the source range of this annotation's name,
60
	 * or <code>null</code> if this annotation does not have
61
	 * associated source code (for example, in a binary type).
62
	 *
63
	 * @exception JavaModelException if this element does not exist or if an
64
	 *      exception occurs while accessing its corresponding resource.
65
	 * @return the source range of this annotation's name,
66
	 * 		or <code>null</code> if this annotation does not have
67
	 * 		associated source code (for example, in a binary type)
68
	 */
69
	ISourceRange getNameRange() throws JavaModelException;
70
71
	/**
72
	 * Returns the position relative to the order this annotation is defined in the source.
59
	 * Returns the position relative to the order this annotation is defined in the source.
73
	 * Numbering starts at 1 (thus the first occurrence is occurrence 1, not occurrence 0).
60
	 * Numbering starts at 1 (thus the first occurrence is occurrence 1, not occurrence 0).
74
	 * <p>
61
	 * <p>
(-)model/org/eclipse/jdt/core/IImportDeclaration.java (-19 lines)
Lines 39-63 Link Here
39
 * @since 3.0
39
 * @since 3.0
40
 */
40
 */
41
int getFlags() throws JavaModelException;
41
int getFlags() throws JavaModelException;
42
43
/**
44
 * Returns the source range of this import declaration's name,
45
 * or <code>null</code> if this import declaration does not have
46
 * associated source code (for example, a binary type).
47
 * 
48
 * <p>The source range for the name includes the trailing '*' if the call to
49
 * {@link #isOnDemand()} returns true.
50
 * </p>
51
 *
52
 * @exception JavaModelException if this element does not exist or if an
53
 *      exception occurs while accessing its corresponding resource.
54
 * @return the source range of this import declaration's name,
55
 * or <code>null</code> if this import declaration does not have
56
 * associated source code (for example, a binary type)
57
 * @since 3.7
58
 */
59
ISourceRange getNameRange() throws JavaModelException;
60
61
/**
42
/**
62
 * Returns whether the import is on-demand. An import is on-demand if it ends
43
 * Returns whether the import is on-demand. An import is on-demand if it ends
63
 * with <code>".*"</code>.
44
 * with <code>".*"</code>.
(-)model/org/eclipse/jdt/core/IMember.java (-14 lines)
Lines 93-112 Link Here
93
 */
93
 */
94
ISourceRange getJavadocRange() throws JavaModelException;
94
ISourceRange getJavadocRange() throws JavaModelException;
95
/**
95
/**
96
 * Returns the source range of this member's simple name,
97
 * or <code>null</code> if this member does not have a name
98
 * (for example, an initializer), or if this member does not have
99
 * associated source code (for example, a binary type).
100
 *
101
 * @exception JavaModelException if this element does not exist or if an
102
 *      exception occurs while accessing its corresponding resource.
103
 * @return the source range of this member's simple name,
104
 * or <code>null</code> if this member does not have a name
105
 * (for example, an initializer), or if this member does not have
106
 * associated source code (for example, a binary type)
107
 */
108
ISourceRange getNameRange() throws JavaModelException;
109
/**
110
 * Returns the position relative to the order this member is defined in the source.
96
 * Returns the position relative to the order this member is defined in the source.
111
 * Numbering starts at 1 (thus the first occurrence is occurrence 1, not occurrence 0).
97
 * Numbering starts at 1 (thus the first occurrence is occurrence 1, not occurrence 0).
112
 * <p>
98
 * <p>
(-)model/org/eclipse/jdt/core/IPackageDeclaration.java (-14 lines)
Lines 24-41 Link Here
24
 * @return the name of the package the statement
24
 * @return the name of the package the statement
25
 */
25
 */
26
String getElementName();
26
String getElementName();
27
/**
28
 * Returns the source range of this package declaration's name,
29
 * or <code>null</code> if this package declaration does not have
30
 * associated source code (for example, a binary type).
31
 *
32
 * @exception JavaModelException if this element does not exist or if an
33
 *      exception occurs while accessing its corresponding resource.
34
 * @return the source range of this package declaration's name,
35
 * or <code>null</code> if this package declaration does not have
36
 * associated source code (for example, a binary type)
37
 * @since 3.7
38
 */
39
ISourceRange getNameRange() throws JavaModelException;
40
41
}
27
}
(-)model/org/eclipse/jdt/core/ISourceReference.java (-1 / +37 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 72-75 Link Here
72
 * @see SourceRange#isAvailable(ISourceRange)
72
 * @see SourceRange#isAvailable(ISourceRange)
73
 */
73
 */
74
ISourceRange getSourceRange() throws JavaModelException;
74
ISourceRange getSourceRange() throws JavaModelException;
75
76
/**
77
 * Returns the name range associated with this element.
78
 * 
79
 * <p>If the element is an {@link IMember}, it returns
80
 * the source range of this member's simple name,
81
 * or <code>null</code> if this member does not have a name
82
 * (for example, an initializer), or if this member does not have
83
 * associated source code (for example, a binary type).</p>
84
 * 
85
 * <p>If this element is an {@link IImportDeclaration}, the source range
86
 * of this import declaration's name, or <code>null</code> if this import
87
 * declaration does not have associated source code (for example, a binary type).
88
 * <br>The source range for the name includes the trailing '*' if the call to
89
 * {@link IImportDeclaration#isOnDemand()} returns true.
90
 * </p>
91
 *
92
 * <p>If this element is an {@link IPackageDeclaration}, the source range of
93
 * this package declaration's name, or <code>null</code> if this package 
94
 * declaration does not have associated source code (for example, a binary type).</p>
95
 *
96
 * <p>If this element is an {@link IAnnotation}, the source range of
97
 * this annotation's name, or <code>null</code> if this annotation does not have
98
 * associated source code (for example, in a binary type).</p>
99
 * 
100
 * <p>If this element is an {@link ITypeParameter}, the source range of this 
101
 * type parameter's name, or <code>null</code> if this type parameter does not have
102
 * associated source code (for example, in a binary type).</p>
103
 * 
104
 * <p>If this element is an {@link ITypeRoot} or {@link IImportContainer}, it
105
 * returns null.</p>
106
 *
107
 * @return the name range associated with this element
108
 * @since 3.7
109
 */
110
ISourceRange getNameRange() throws JavaModelException;
75
}
111
}
(-)model/org/eclipse/jdt/core/ITypeParameter.java (-13 lines)
Lines 66-82 Link Here
66
	 * @return the declaring member of this type parameter.
66
	 * @return the declaring member of this type parameter.
67
	 */
67
	 */
68
	IMember getDeclaringMember();
68
	IMember getDeclaringMember();
69
70
	/**
71
	 * Returns the source range of this type parameter's name,
72
	 * or <code>null</code> if this type parameter does not have
73
	 * associated source code (for example, in a binary type).
74
	 *
75
	 * @exception JavaModelException if this element does not exist or if an
76
	 *      exception occurs while accessing its corresponding resource.
77
	 * @return the source range of this type parameter's name,
78
	 * or <code>null</code> if this type parameter does not have
79
	 * associated source code (for example, in a binary type)
80
	 */
81
	ISourceRange getNameRange() throws JavaModelException;
82
}
69
}
(-)model/org/eclipse/jdt/internal/core/ClassFile.java (-1 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 834-837 Link Here
834
	}
834
	}
835
	return JavaModelStatus.VERIFIED_OK;
835
	return JavaModelStatus.VERIFIED_OK;
836
}
836
}
837
public ISourceRange getNameRange() {
838
	return null;
839
}
837
}
840
}
(-)model/org/eclipse/jdt/internal/core/CompilationUnit.java (+3 lines)
Lines 1340-1343 Link Here
1340
	return JavaModelStatus.VERIFIED_OK;
1340
	return JavaModelStatus.VERIFIED_OK;
1341
}
1341
}
1342
1342
1343
public ISourceRange getNameRange() {
1344
	return null;
1345
}
1343
}
1346
}
(-)model/org/eclipse/jdt/internal/core/ImportContainer.java (-1 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 114-117 Link Here
114
		buffer.append(" (not open)"); //$NON-NLS-1$
114
		buffer.append(" (not open)"); //$NON-NLS-1$
115
	}
115
	}
116
}
116
}
117
public ISourceRange getNameRange() {
118
	return null;
119
}
117
}
120
}

Return to bug 321764