Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Roldan Betancort2009-01-29 05:49:57 -0500
committerVictor Roldan Betancort2009-01-29 05:49:57 -0500
commit772cc782fe50b499feb8f1d42c5999c623f63a62 (patch)
tree162df51753aff77a647d8ae8a0683300d0fbc6ba /plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util
parent3a631fef0dbdd9360fcf258ffddc88afc75574ac (diff)
downloadcdo-772cc782fe50b499feb8f1d42c5999c623f63a62.tar.gz
cdo-772cc782fe50b499feb8f1d42c5999c623f63a62.tar.xz
cdo-772cc782fe50b499feb8f1d42c5999c623f63a62.zip
[257365] [UI] Provide a Watch List View
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257365
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
index f64132b9fb..71d67cca35 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/FSMUtil.java
@@ -75,6 +75,18 @@ public final class FSMUtil
|| object instanceof org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
}
+ public static boolean isWatchable(Object obj)
+ {
+ // Only CLEAN and DIRTY CDOObjects are watchable
+ if (obj instanceof CDOObject)
+ {
+ CDOObject cdoObject = (CDOObject)obj;
+ return cdoObject.cdoState() == CDOState.CLEAN || cdoObject.cdoState() == CDOState.DIRTY;
+ }
+
+ return false;
+ }
+
/**
* @param view
* Only needed if object is a meta instance.

Back to the top