Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-04-20 07:56:19 +0000
committerEike Stepper2010-04-20 07:56:19 +0000
commit3d0d093f84454fea8fa3a691521130277e1db47f (patch)
tree1854cb2556417dee3189b91e7ae81f998404abe4 /plugins
parent61dc51cb635476a6b4697e687f4d656dd99cfc98 (diff)
downloadcdo-3d0d093f84454fea8fa3a691521130277e1db47f.tar.gz
cdo-3d0d093f84454fea8fa3a691521130277e1db47f.tar.xz
cdo-3d0d093f84454fea8fa3a691521130277e1db47f.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.tests.db/src/org/eclipse/emf/cdo/tests/db/Net4jDBTest.java5
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/om/monitor/Monitor.java9
2 files changed, 1 insertions, 13 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/Net4jDBTest.java b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/Net4jDBTest.java
index 099e3d91cd..4f0c856912 100644
--- a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/Net4jDBTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/Net4jDBTest.java
@@ -16,8 +16,6 @@ import org.eclipse.emf.cdo.tests.AbstractCDOTest;
import org.eclipse.net4j.db.DBType;
import org.eclipse.net4j.db.ddl.IDBSchema;
import org.eclipse.net4j.db.ddl.IDBTable;
-import org.eclipse.net4j.internal.db.ddl.DBTable;
-import org.eclipse.net4j.spi.db.DBSchema;
import org.eclipse.net4j.util.collection.Pair;
import org.eclipse.net4j.util.io.ExtendedDataInputStream;
import org.eclipse.net4j.util.io.ExtendedDataOutputStream;
@@ -135,11 +133,10 @@ public class Net4jDBTest extends AbstractCDOTest
columns.add(column);
}
- @SuppressWarnings("restriction")
private void prepareTable()
{
IDBSchema schema = store.getDBSchema();
- IDBTable table = new DBTable((DBSchema)schema, TABLE_NAME);
+ IDBTable table = schema.addTable(TABLE_NAME);
int c = 0;
for (Pair<DBType, Object> column : columns)
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/om/monitor/Monitor.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/om/monitor/Monitor.java
index 9038721b02..185be8765b 100644
--- a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/om/monitor/Monitor.java
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/om/monitor/Monitor.java
@@ -23,15 +23,6 @@ public class Monitor extends AbstractMonitor
{
public static final long DEFAULT_ASYNC_SCHEDULE_PERIOD = 1000;
- private static TimerTask TEST_TASK = new TimerTask()
- {
- @Override
- public void run()
- {
- // Do nothing
- }
- };
-
private static Timer TIMER;
private boolean canceled;

Back to the top