Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 177879 Details for
Bug 321764
Add getNameRange() to ISourceReference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_321764.txt (text/plain), 12.18 KB, created by
Olivier Thomann
on 2010-08-31 15:09:28 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2010-08-31 15:09:28 EDT
Size:
12.18 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/core/IAnnotation.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IAnnotation.java,v >retrieving revision 1.4 >diff -u -r1.4 IAnnotation.java >--- model/org/eclipse/jdt/core/IAnnotation.java 7 Mar 2009 01:08:10 -0000 1.4 >+++ model/org/eclipse/jdt/core/IAnnotation.java 31 Aug 2010 19:09:06 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -56,19 +56,6 @@ > IMemberValuePair[] getMemberValuePairs() throws JavaModelException; > > /** >- * Returns the source range of this annotation's name, >- * or <code>null</code> if this annotation does not have >- * associated source code (for example, in a binary type). >- * >- * @exception JavaModelException if this element does not exist or if an >- * exception occurs while accessing its corresponding resource. >- * @return the source range of this annotation's name, >- * or <code>null</code> if this annotation does not have >- * associated source code (for example, in a binary type) >- */ >- ISourceRange getNameRange() throws JavaModelException; >- >- /** > * Returns the position relative to the order this annotation is defined in the source. > * Numbering starts at 1 (thus the first occurrence is occurrence 1, not occurrence 0). > * <p> >Index: model/org/eclipse/jdt/core/IImportDeclaration.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IImportDeclaration.java,v >retrieving revision 1.26 >diff -u -r1.26 IImportDeclaration.java >--- model/org/eclipse/jdt/core/IImportDeclaration.java 28 Jul 2010 16:36:34 -0000 1.26 >+++ model/org/eclipse/jdt/core/IImportDeclaration.java 31 Aug 2010 19:09:06 -0000 >@@ -39,25 +39,6 @@ > * @since 3.0 > */ > int getFlags() throws JavaModelException; >- >-/** >- * Returns the source range of this import declaration's name, >- * or <code>null</code> if this import declaration does not have >- * associated source code (for example, a binary type). >- * >- * <p>The source range for the name includes the trailing '*' if the call to >- * {@link #isOnDemand()} returns true. >- * </p> >- * >- * @exception JavaModelException if this element does not exist or if an >- * exception occurs while accessing its corresponding resource. >- * @return the source range of this import declaration's name, >- * or <code>null</code> if this import declaration does not have >- * associated source code (for example, a binary type) >- * @since 3.7 >- */ >-ISourceRange getNameRange() throws JavaModelException; >- > /** > * Returns whether the import is on-demand. An import is on-demand if it ends > * with <code>".*"</code>. >Index: model/org/eclipse/jdt/core/IMember.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IMember.java,v >retrieving revision 1.29 >diff -u -r1.29 IMember.java >--- model/org/eclipse/jdt/core/IMember.java 11 May 2010 18:47:10 -0000 1.29 >+++ model/org/eclipse/jdt/core/IMember.java 31 Aug 2010 19:09:06 -0000 >@@ -93,20 +93,6 @@ > */ > ISourceRange getJavadocRange() throws JavaModelException; > /** >- * Returns the source range of this member's simple name, >- * or <code>null</code> if this member does not have a name >- * (for example, an initializer), or if this member does not have >- * associated source code (for example, a binary type). >- * >- * @exception JavaModelException if this element does not exist or if an >- * exception occurs while accessing its corresponding resource. >- * @return the source range of this member's simple name, >- * or <code>null</code> if this member does not have a name >- * (for example, an initializer), or if this member does not have >- * associated source code (for example, a binary type) >- */ >-ISourceRange getNameRange() throws JavaModelException; >-/** > * Returns the position relative to the order this member is defined in the source. > * Numbering starts at 1 (thus the first occurrence is occurrence 1, not occurrence 0). > * <p> >Index: model/org/eclipse/jdt/core/IPackageDeclaration.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/IPackageDeclaration.java,v >retrieving revision 1.18 >diff -u -r1.18 IPackageDeclaration.java >--- model/org/eclipse/jdt/core/IPackageDeclaration.java 28 Jul 2010 16:17:01 -0000 1.18 >+++ model/org/eclipse/jdt/core/IPackageDeclaration.java 31 Aug 2010 19:09:06 -0000 >@@ -24,18 +24,4 @@ > * @return the name of the package the statement > */ > String getElementName(); >-/** >- * Returns the source range of this package declaration's name, >- * or <code>null</code> if this package declaration does not have >- * associated source code (for example, a binary type). >- * >- * @exception JavaModelException if this element does not exist or if an >- * exception occurs while accessing its corresponding resource. >- * @return the source range of this package declaration's name, >- * or <code>null</code> if this package declaration does not have >- * associated source code (for example, a binary type) >- * @since 3.7 >- */ >-ISourceRange getNameRange() throws JavaModelException; >- > } >Index: model/org/eclipse/jdt/core/ISourceReference.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/ISourceReference.java,v >retrieving revision 1.24 >diff -u -r1.24 ISourceReference.java >--- model/org/eclipse/jdt/core/ISourceReference.java 9 Nov 2009 19:52:18 -0000 1.24 >+++ model/org/eclipse/jdt/core/ISourceReference.java 31 Aug 2010 19:09:06 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -72,4 +72,42 @@ > * @see SourceRange#isAvailable(ISourceRange) > */ > ISourceRange getSourceRange() throws JavaModelException; >+ >+/** >+ * Returns the name range associated with this element. >+ * >+ * <p>If the element is an {@link IMember}, it returns >+ * the source range of this member's simple name, >+ * or <code>null</code> if this member does not have a name >+ * (for example, an initializer), or if this member does not have >+ * associated source code (for example, a binary type).</p> >+ * >+ * <p>If this element is an {@link IImportDeclaration}, the source range >+ * of this import declaration's name, or <code>null</code> if this import >+ * declaration does not have associated source code (for example, a binary type). >+ * <br>The source range for the name includes the trailing '*' if the call to >+ * {@link IImportDeclaration#isOnDemand()} returns true. >+ * </p> >+ * >+ * <p>If this element is an {@link IPackageDeclaration}, the source range of >+ * this package declaration's name, or <code>null</code> if this package >+ * declaration does not have associated source code (for example, a binary type).</p> >+ * >+ * <p>If this element is an {@link IAnnotation}, the source range of >+ * this annotation's name, or <code>null</code> if this annotation does not have >+ * associated source code (for example, in a binary type).</p> >+ * >+ * <p>If this element is an {@link ITypeParameter}, the source range of this >+ * type parameter's name, or <code>null</code> if this type parameter does not have >+ * associated source code (for example, in a binary type).</p> >+ * >+ * <p>If this element is an {@link ITypeRoot} or {@link IImportContainer}, it >+ * returns null.</p> >+ * >+ * @return the name range associated with this element, or <code>null</code> if >+ * not available >+ * >+ * @since 3.7 >+ */ >+ISourceRange getNameRange() throws JavaModelException; > } >Index: model/org/eclipse/jdt/core/ITypeParameter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/ITypeParameter.java,v >retrieving revision 1.11 >diff -u -r1.11 ITypeParameter.java >--- model/org/eclipse/jdt/core/ITypeParameter.java 24 Feb 2010 10:44:11 -0000 1.11 >+++ model/org/eclipse/jdt/core/ITypeParameter.java 31 Aug 2010 19:09:06 -0000 >@@ -66,17 +66,4 @@ > * @return the declaring member of this type parameter. > */ > IMember getDeclaringMember(); >- >- /** >- * Returns the source range of this type parameter's name, >- * or <code>null</code> if this type parameter does not have >- * associated source code (for example, in a binary type). >- * >- * @exception JavaModelException if this element does not exist or if an >- * exception occurs while accessing its corresponding resource. >- * @return the source range of this type parameter's name, >- * or <code>null</code> if this type parameter does not have >- * associated source code (for example, in a binary type) >- */ >- ISourceRange getNameRange() throws JavaModelException; > } >Index: model/org/eclipse/jdt/internal/core/ClassFile.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ClassFile.java,v >retrieving revision 1.147 >diff -u -r1.147 ClassFile.java >--- model/org/eclipse/jdt/internal/core/ClassFile.java 27 Aug 2009 15:27:02 -0000 1.147 >+++ model/org/eclipse/jdt/internal/core/ClassFile.java 31 Aug 2010 19:09:06 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -834,4 +834,7 @@ > } > return JavaModelStatus.VERIFIED_OK; > } >+public ISourceRange getNameRange() { >+ return null; >+} > } >Index: model/org/eclipse/jdt/internal/core/CompilationUnit.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CompilationUnit.java,v >retrieving revision 1.262 >diff -u -r1.262 CompilationUnit.java >--- model/org/eclipse/jdt/internal/core/CompilationUnit.java 7 Jan 2010 18:10:35 -0000 1.262 >+++ model/org/eclipse/jdt/internal/core/CompilationUnit.java 31 Aug 2010 19:09:06 -0000 >@@ -1340,4 +1340,7 @@ > return JavaModelStatus.VERIFIED_OK; > } > >+public ISourceRange getNameRange() { >+ return null; >+} > } >Index: model/org/eclipse/jdt/internal/core/ImportContainer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/ImportContainer.java,v >retrieving revision 1.39 >diff -u -r1.39 ImportContainer.java >--- model/org/eclipse/jdt/internal/core/ImportContainer.java 27 Aug 2009 15:27:02 -0000 1.39 >+++ model/org/eclipse/jdt/internal/core/ImportContainer.java 31 Aug 2010 19:09:06 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -114,4 +114,7 @@ > buffer.append(" (not open)"); //$NON-NLS-1$ > } > } >+public ISourceRange getNameRange() { >+ return null; >+} > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 321764
:
177877
| 177879