Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2007-07-25 20:02:41 +0000
committerbvosburgh2007-07-25 20:02:41 +0000
commit87d1b156fbbbdb9855162ed51ab74d5798650257 (patch)
treecff003801e1e01b20f554c8b9e31322cf06cc634 /jpa/plugins/org.eclipse.jpt.core/src/org/eclipse
parent280dde2103ffd4273631d1a33c81e2b95497fe42 (diff)
downloadwebtools.dali-87d1b156fbbbdb9855162ed51ab74d5798650257.tar.gz
webtools.dali-87d1b156fbbbdb9855162ed51ab74d5798650257.tar.xz
webtools.dali-87d1b156fbbbdb9855162ed51ab74d5798650257.zip
added some more methods to BitTools
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/content/java/JpaCompilationUnit.java8
1 files changed, 5 insertions, 3 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 aab555f9c6..a65a6d39e8 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
@@ -37,6 +37,7 @@ import org.eclipse.jpt.core.internal.JpaFile;
import org.eclipse.jpt.core.internal.jdtutility.ASTNodeTextRange;
import org.eclipse.jpt.core.internal.jdtutility.AttributeAnnotationTools;
import org.eclipse.jpt.core.internal.jdtutility.JDTTools;
+import org.eclipse.jpt.utility.internal.BitTools;
import org.eclipse.jpt.utility.internal.Filter;
import org.eclipse.jpt.utility.internal.iterators.EmptyIterator;
@@ -378,9 +379,10 @@ public class JpaCompilationUnit extends JavaEObject
}
private void synchCompilationUnitWithJavaDelta(IJavaElementDelta delta) {
- // ignore changes to/from primary working copy - no content has changed
- // this checks that no flags other than F_PRIMARY_WORKING_COPY are set
- if ((delta.getFlags() & ~IJavaElementDelta.F_PRIMARY_WORKING_COPY) == 0) {
+ // ignore changes to/from primary working copy - no content has changed;
+ // and make sure there are no other flags set that indicate both a change to/from
+ // primary working copy AND content has changed
+ if (BitTools.onlyFlagIsSet(delta.getFlags(), IJavaElementDelta.F_PRIMARY_WORKING_COPY)) {
return;
}
// synchronize if the change is for this compilation unit

Back to the top