Skip to main content
summaryrefslogtreecommitdiffstats
path: root/jpa
diff options
context:
space:
mode:
authorkmoore2007-05-15 13:28:14 +0000
committerkmoore2007-05-15 13:28:14 +0000
commit8a410ed4242fac89f065fff9f6cf27c31cc57c09 (patch)
tree231c571e0a8f7e68d69ce9c5b1f20cf8d87c76e2 /jpa
parent6e99b381c456ecb9d9600dde0610ccaf14276d96 (diff)
downloadwebtools.dali-8a410ed4242fac89f065fff9f6cf27c31cc57c09.tar.gz
webtools.dali-8a410ed4242fac89f065fff9f6cf27c31cc57c09.tar.xz
webtools.dali-8a410ed4242fac89f065fff9f6cf27c31cc57c09.zip
return null for selection textRange - entire file was being selected when switching editors
Diffstat (limited to 'jpa')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/JpaCompilationUnit.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/JpaCompilationUnit.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/JpaCompilationUnit.java
index 220e3b06f9..24706d0e39 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/JpaCompilationUnit.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/JpaCompilationUnit.java
@@ -297,8 +297,12 @@ public class JpaCompilationUnit extends JavaEObject
return this.selectionTextRange();
}
+ /**
+ * Return null for selection textRange. Entire java file will appear selected when
+ * switching files otherwise
+ */
public ITextRange selectionTextRange() {
- return this.fullTextRange();
+ return null;
}
public Object getId() {

Back to the top