Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-04-27 21:39:08 +0000
committerslewis2007-04-27 21:39:08 +0000
commit4a10e4620947dcc5369b2d2b9b3f5261cf699ad4 (patch)
tree3a1d4e6127e15bba69862da82cde4e083cb79571 /providers/bundles/org.eclipse.ecf.provider.datashare
parentc20adc6adce3dc54a46a199ced89de4a8570f795 (diff)
downloadorg.eclipse.ecf-4a10e4620947dcc5369b2d2b9b3f5261cf699ad4.tar.gz
org.eclipse.ecf-4a10e4620947dcc5369b2d2b9b3f5261cf699ad4.tar.xz
org.eclipse.ecf-4a10e4620947dcc5369b2d2b9b3f5261cf699ad4.zip
Added support for accessing IContainer for containeradapter.getAdapter(IContainer.class)
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.datashare')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.datashare/src/org/eclipse/ecf/provider/datashare/DatashareContainerAdapter.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.datashare/src/org/eclipse/ecf/provider/datashare/DatashareContainerAdapter.java b/providers/bundles/org.eclipse.ecf.provider.datashare/src/org/eclipse/ecf/provider/datashare/DatashareContainerAdapter.java
index 94b337793..a42e0620f 100644
--- a/providers/bundles/org.eclipse.ecf.provider.datashare/src/org/eclipse/ecf/provider/datashare/DatashareContainerAdapter.java
+++ b/providers/bundles/org.eclipse.ecf.provider.datashare/src/org/eclipse/ecf/provider/datashare/DatashareContainerAdapter.java
@@ -15,6 +15,7 @@ import java.util.Map;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
+import org.eclipse.ecf.core.IContainer;
import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.identity.IDFactory;
import org.eclipse.ecf.core.identity.Namespace;
@@ -60,7 +61,8 @@ public class DatashareContainerAdapter implements IChannelContainerAdapter {
DatashareContainerAdapter.class,
"DatashareContainerAdapter.initialize", e);
Activator
- .getDefault().log(
+ .getDefault()
+ .log(
new Status(
IStatus.ERROR,
Activator.PLUGIN_ID,
@@ -123,7 +125,9 @@ public class DatashareContainerAdapter implements IChannelContainerAdapter {
}
public Object getAdapter(Class adapter) {
- // TODO Auto-generated method stub
- return null;
+ if (adapter != null && adapter.equals(IContainer.class))
+ return container;
+ else
+ return null;
}
}

Back to the top