Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-10-18 10:07:27 +0000
committerEike Stepper2010-10-18 10:07:27 +0000
commit6e584140d4942669e1bc4a6d9b0684b2a421060e (patch)
tree04745a4c2ad89772bfecffc9e0538bc4179151c7 /plugins/org.eclipse.emf.cdo.efs
parent8a60628572ccb8cc0776d7f37b4e60ec4e11d61a (diff)
downloadcdo-6e584140d4942669e1bc4a6d9b0684b2a421060e.tar.gz
cdo-6e584140d4942669e1bc4a6d9b0684b2a421060e.tar.xz
cdo-6e584140d4942669e1bc4a6d9b0684b2a421060e.zip
[327405] Provide an offline CDOWorkspace with Checkout/Update/Commit workflows
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327405
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.efs')
-rw-r--r--plugins/org.eclipse.emf.cdo.efs/src/org/eclipse/emf/cdo/internal/efs/bundle/OM.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.efs/src/org/eclipse/emf/cdo/internal/efs/bundle/OM.java b/plugins/org.eclipse.emf.cdo.efs/src/org/eclipse/emf/cdo/internal/efs/bundle/OM.java
index 0c7627f51a..f857bbc2ba 100644
--- a/plugins/org.eclipse.emf.cdo.efs/src/org/eclipse/emf/cdo/internal/efs/bundle/OM.java
+++ b/plugins/org.eclipse.emf.cdo.efs/src/org/eclipse/emf/cdo/internal/efs/bundle/OM.java
@@ -55,7 +55,7 @@ public abstract class OM
/**
* @author Eike Stepper
*/
- public static final class Activator extends OSGiActivator.WithConfig implements IResourceChangeListener
+ public static final class Activator extends OSGiActivator.WithState implements IResourceChangeListener
{
public Activator()
{
@@ -64,14 +64,19 @@ public abstract class OM
@SuppressWarnings("unchecked")
@Override
- protected void doStartWithConfig(Object config) throws Exception
+ protected void doStartWithState(Object state) throws Exception
{
- projectNames.putAll((Map<URI, String>)config);
+ Map<URI, String> names = (Map<URI, String>)state;
+ if (names != null)
+ {
+ projectNames.putAll(names);
+ }
+
ResourcesPlugin.getWorkspace().addResourceChangeListener(this);
}
@Override
- protected Object doStopWithConfig() throws Exception
+ protected Object doStopWithState() throws Exception
{
ResourcesPlugin.getWorkspace().removeResourceChangeListener(this);
return projectNames;

Back to the top