Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2015-08-30 21:24:54 +0000
committerslewis2015-08-30 21:24:54 +0000
commit9c9c27b849ebdc4336ac8d505e3d53ca81fb601d (patch)
tree06005aeaf61908ea1dadda4109c5d3392cbde043 /framework
parent4752c626bd5ad8b8b421421127f4fb57bbb991d2 (diff)
downloadorg.eclipse.ecf-9c9c27b849ebdc4336ac8d505e3d53ca81fb601d.tar.gz
org.eclipse.ecf-9c9c27b849ebdc4336ac8d505e3d53ca81fb601d.tar.xz
org.eclipse.ecf-9c9c27b849ebdc4336ac8d505e3d53ca81fb601d.zip
Fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=476180
Diffstat (limited to 'framework')
-rw-r--r--framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/provider/BaseContainerInstantiator.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/provider/BaseContainerInstantiator.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/provider/BaseContainerInstantiator.java
index 6204820cf..904aeaaf7 100644
--- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/provider/BaseContainerInstantiator.java
+++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/provider/BaseContainerInstantiator.java
@@ -83,6 +83,27 @@ public class BaseContainerInstantiator implements IContainerInstantiator {
return def;
}
+ /**
+ * @since 3.6
+ */
+ protected <T> T getMapParameter(Object[] parameters, String key, Class<T> clazz) {
+ return getMapParameter(parameters, key, clazz, null);
+ }
+
+ /**
+ * @since 3.6
+ */
+ protected String getMapParameterString(Object[] parameters, String key, String def) {
+ return getMapParameter(parameters, key, String.class, def);
+ }
+
+ /**
+ * @since 3.6
+ */
+ protected String getMapParameterString(Object[] parameters, String key) {
+ return getMapParameter(parameters, key, String.class, null);
+ }
+
public IContainer createInstance(ContainerTypeDescription description, Object[] parameters) throws ContainerCreateException {
throw new ContainerCreateException("createInstance not supported"); //$NON-NLS-1$
}

Back to the top