diff options
author | pnehrer | 2005-02-02 03:21:53 +0000 |
---|---|---|
committer | pnehrer | 2005-02-02 03:21:53 +0000 |
commit | f52913c9f08ff6d0c5a21aad5f3c094905f49f62 (patch) | |
tree | d8d7dcdc3ce10a893e1ae0ee50216f493b64c702 /examples/bundles/org.eclipse.ecf.sdo/src/org/eclipse | |
parent | 4d0c38f60ed007e447158a983c91488d9ddb1951 (diff) | |
download | org.eclipse.ecf-f52913c9f08ff6d0c5a21aad5f3c094905f49f62.tar.gz org.eclipse.ecf-f52913c9f08ff6d0c5a21aad5f3c094905f49f62.tar.xz org.eclipse.ecf-f52913c9f08ff6d0c5a21aad5f3c094905f49f62.zip |
Normalized exception specs.
Diffstat (limited to 'examples/bundles/org.eclipse.ecf.sdo/src/org/eclipse')
-rw-r--r-- | examples/bundles/org.eclipse.ecf.sdo/src/org/eclipse/ecf/sdo/SDOPlugin.java | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/examples/bundles/org.eclipse.ecf.sdo/src/org/eclipse/ecf/sdo/SDOPlugin.java b/examples/bundles/org.eclipse.ecf.sdo/src/org/eclipse/ecf/sdo/SDOPlugin.java index 0b815b41f..b321e143f 100644 --- a/examples/bundles/org.eclipse.ecf.sdo/src/org/eclipse/ecf/sdo/SDOPlugin.java +++ b/examples/bundles/org.eclipse.ecf.sdo/src/org/eclipse/ecf/sdo/SDOPlugin.java @@ -10,15 +10,12 @@ *******************************************************************************/ package org.eclipse.ecf.sdo; -import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.Plugin; -import org.eclipse.core.runtime.Status; import org.eclipse.ecf.core.ISharedObjectContainer; import org.eclipse.ecf.core.ISharedObjectManager; -import org.eclipse.ecf.core.SharedObjectAddException; import org.eclipse.ecf.core.identity.ID; import org.eclipse.ecf.core.identity.IDFactory; -import org.eclipse.ecf.core.identity.IDInstantiationException; +import org.eclipse.ecf.core.util.ECFException; import org.eclipse.ecf.internal.sdo.DataGraphSharing; import org.osgi.framework.BundleContext; @@ -65,31 +62,17 @@ public class SDOPlugin extends Plugin { } public IDataGraphSharing getDataGraphSharing( - ISharedObjectContainer container) throws CoreException { + ISharedObjectContainer container) throws ECFException { ISharedObjectManager mgr = container.getSharedObjectManager(); - ID id; - try { - id = IDFactory.makeStringID(DataGraphSharing.DATA_GRAPH_SHARING_ID); - } catch (IDInstantiationException e) { - throw new CoreException(new Status(Status.ERROR, getBundle() - .getSymbolicName(), 0, - "Could not create data graph sharing ID.", e)); - } - + ID id = IDFactory.makeStringID(DataGraphSharing.DATA_GRAPH_SHARING_ID); synchronized (container) { DataGraphSharing result = (DataGraphSharing) mgr .getSharedObject(id); if (result == null) { result = new DataGraphSharing(); result.setDebug(debug); - try { - mgr.addSharedObject(id, result, null, null); - } catch (SharedObjectAddException e) { - throw new CoreException(new Status(Status.ERROR, - getBundle().getSymbolicName(), 0, - "Could not add data sharing to the container.", e)); - } + mgr.addSharedObject(id, result, null, null); } return result; |