summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-11-09 01:24:27 (EST)
committerEike Stepper2007-11-09 01:24:27 (EST)
commit54320e3b260f938120aae01d6c3c753c13bc0305 (patch)
tree022d4bf69077e48dd186b390ba424d5b80e78c86
parentfd33123a4140f47c8d33739ad3094282e443bb6f (diff)
downloadcdo-54320e3b260f938120aae01d6c3c753c13bc0305.zip
cdo-54320e3b260f938120aae01d6c3c753c13bc0305.tar.gz
cdo-54320e3b260f938120aae01d6c3c753c13bc0305.tar.bz2
Removed checkWritable()
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java4
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java8
2 files changed, 1 insertions, 11 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java
index 22759d4..151e54f 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java
@@ -117,6 +117,7 @@ public class CDOTransactionImpl extends CDOViewImpl implements CDOTransaction
return dirty;
}
+ @Override
public boolean hasConflict()
{
return conflict;
@@ -165,7 +166,6 @@ public class CDOTransactionImpl extends CDOViewImpl implements CDOTransaction
public void commit() throws TransactionException
{
- checkWritable();
if (dirty)
{
if (TRACER.isEnabled())
@@ -229,8 +229,6 @@ public class CDOTransactionImpl extends CDOViewImpl implements CDOTransaction
public void rollback(boolean remote)
{
- checkWritable();
-
try
{
if (!newResources.isEmpty())
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
index eb6c35a..4e43a12 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOViewImpl.java
@@ -770,14 +770,6 @@ public class CDOViewImpl extends org.eclipse.net4j.internal.util.event.Notifier
fireEvent(new ResourcesEvent(cdoResource.getPath(), ResourcesEvent.Kind.REMOVED));
}
- protected void checkWritable()
- {
- if (getViewType() != Type.TRANSACTION)
- {
- throw new IllegalStateException("CDO view is read only");
- }
- }
-
/**
* @author Eike Stepper
*/