Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-04-14 15:48:37 +0000
committerEike Stepper2010-04-14 15:48:37 +0000
commit796d7a29cd9d7c58713092d080c2cdc751b57fc4 (patch)
tree12292e82a7de99c162a2c4b813b3d8463de56312 /plugins
parent5a3972a5beeca4addd796d3c28cab9a42c77f25c (diff)
downloadcdo-796d7a29cd9d7c58713092d080c2cdc751b57fc4.tar.gz
cdo-796d7a29cd9d7c58713092d080c2cdc751b57fc4.tar.xz
cdo-796d7a29cd9d7c58713092d080c2cdc751b57fc4.zip
[256936] Support for Offline Mode
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256936
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/CloneRepository.java8
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/FailoverParticipant.java13
2 files changed, 7 insertions, 14 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/CloneRepository.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/CloneRepository.java
index 1b5c19e902..a1c109638e 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/CloneRepository.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/CloneRepository.java
@@ -21,8 +21,14 @@ public class CloneRepository extends SynchronizableRepository
}
@Override
- public Type getType()
+ public final Type getType()
{
return Type.CLONE;
}
+
+ @Override
+ public final void setType(Type type)
+ {
+ throw new UnsupportedOperationException();
+ }
}
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/FailoverParticipant.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/FailoverParticipant.java
index 2c4a085416..8a29093e2f 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/FailoverParticipant.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/clone/FailoverParticipant.java
@@ -15,21 +15,8 @@ package org.eclipse.emf.cdo.internal.server.clone;
*/
public class FailoverParticipant extends SynchronizableRepository
{
- private Type type;
-
public FailoverParticipant()
{
setState(State.OFFLINE);
}
-
- @Override
- public Type getType()
- {
- return type;
- }
-
- public void setType(Type type)
- {
- this.type = type;
- }
}

Back to the top