Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpnehrer2005-03-04 03:46:43 +0000
committerpnehrer2005-03-04 03:46:43 +0000
commit88b2edae864b5d23bb230862201f1b11e1e15335 (patch)
tree31d1eb5a7327e30994e1f40b6bbb796c5d6fedac /examples/bundles/org.eclipse.ecf.example.sdo.editor
parentf47a92bcae0767a3915a40ad0b593004f8de7f88 (diff)
downloadorg.eclipse.ecf-88b2edae864b5d23bb230862201f1b11e1e15335.tar.gz
org.eclipse.ecf-88b2edae864b5d23bb230862201f1b11e1e15335.tar.xz
org.eclipse.ecf-88b2edae864b5d23bb230862201f1b11e1e15335.zip
Added proper tracing support.Root_E3_1M5a
Diffstat (limited to 'examples/bundles/org.eclipse.ecf.example.sdo.editor')
-rw-r--r--examples/bundles/org.eclipse.ecf.example.sdo.editor/src/org/eclipse/ecf/example/sdo/editor/EditorPlugin.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/bundles/org.eclipse.ecf.example.sdo.editor/src/org/eclipse/ecf/example/sdo/editor/EditorPlugin.java b/examples/bundles/org.eclipse.ecf.example.sdo.editor/src/org/eclipse/ecf/example/sdo/editor/EditorPlugin.java
index 2f1cfaed8..cd0cd2e00 100644
--- a/examples/bundles/org.eclipse.ecf.example.sdo.editor/src/org/eclipse/ecf/example/sdo/editor/EditorPlugin.java
+++ b/examples/bundles/org.eclipse.ecf.example.sdo.editor/src/org/eclipse/ecf/example/sdo/editor/EditorPlugin.java
@@ -12,6 +12,7 @@ package org.eclipse.ecf.example.sdo.editor;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
+
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
@@ -22,14 +23,15 @@ import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.identity.IDFactory;
import org.eclipse.ecf.core.util.ECFException;
import org.eclipse.ecf.example.collab.Client;
+import org.eclipse.ecf.sdo.DataGraphSharingFactory;
import org.eclipse.ecf.sdo.ISharedDataGraph;
import org.eclipse.ecf.sdo.IUpdateConsumer;
-import org.eclipse.ecf.sdo.SDOPlugin;
import org.eclipse.ecf.sdo.WaitablePublicationCallback;
import org.eclipse.ecf.sdo.WaitableSubscriptionCallback;
import org.eclipse.ecf.sdo.emf.EMFUpdateProvider;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
+
import commonj.sdo.DataGraph;
/**
@@ -117,12 +119,11 @@ public class EditorPlugin extends AbstractUIPlugin {
.getWorkspace().getRoot().getProject(p.segment(0)));
PublishedGraphTracker tracker = getTracker(container);
- SDOPlugin.getDefault().setDebug(true);
ID id = IDFactory.makeStringID(path);
WaitableSubscriptionCallback mutex = new WaitableSubscriptionCallback();
- ISharedDataGraph result = SDOPlugin.getDefault().getDataGraphSharing(
- container).subscribe(id, new EMFUpdateProvider(), consumer,
- mutex);
+ ISharedDataGraph result = DataGraphSharingFactory.getDataGraphSharing(
+ container, "default").subscribe(id, new EMFUpdateProvider(),
+ consumer, mutex);
ID containerID = null;
try {
containerID = mutex.waitForSubscription(5000);
@@ -144,12 +145,11 @@ public class EditorPlugin extends AbstractUIPlugin {
.getWorkspace().getRoot().getProject(p.segment(0)));
PublishedGraphTracker tracker = getTracker(container);
- SDOPlugin.getDefault().setDebug(true);
ID id = IDFactory.makeStringID(path);
WaitablePublicationCallback mutex = new WaitablePublicationCallback();
- ISharedDataGraph result = SDOPlugin.getDefault().getDataGraphSharing(
- container).publish(dataGraph, id, new EMFUpdateProvider(),
- consumer, mutex);
+ ISharedDataGraph result = DataGraphSharingFactory.getDataGraphSharing(
+ container, "default").publish(dataGraph, id,
+ new EMFUpdateProvider(), consumer, mutex);
try {
if (!mutex.waitForPublication(5000))
throw new ECFException("Publication timed out.");

Back to the top