Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2007-03-27 06:02:55 +0000
committerslewis2007-03-27 06:02:55 +0000
commit905d7d67bd7267ec00120553b13e34a19d7d96be (patch)
treea1d75d4ebc110dda8652d849c1de01fa02e9772e /framework
parent3ed7194c116916e937f19aa33c65766565153b96 (diff)
downloadorg.eclipse.ecf-905d7d67bd7267ec00120553b13e34a19d7d96be.tar.gz
org.eclipse.ecf-905d7d67bd7267ec00120553b13e34a19d7d96be.tar.xz
org.eclipse.ecf-905d7d67bd7267ec00120553b13e34a19d7d96be.zip
Added check for 'hidden' attribute on containertypedescription
Diffstat (limited to 'framework')
-rw-r--r--framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/actions/SelectProviderAction.java34
1 files changed, 19 insertions, 15 deletions
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/actions/SelectProviderAction.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/actions/SelectProviderAction.java
index facc66041..2f8d8c8bd 100644
--- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/actions/SelectProviderAction.java
+++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/internal/ui/actions/SelectProviderAction.java
@@ -17,6 +17,7 @@ import org.eclipse.core.runtime.IConfigurationElement;
import org.eclipse.core.runtime.IExtension;
import org.eclipse.core.runtime.IExtensionRegistry;
import org.eclipse.ecf.core.ContainerFactory;
+import org.eclipse.ecf.core.ContainerTypeDescription;
import org.eclipse.ecf.core.IContainer;
import org.eclipse.ecf.internal.ui.Activator;
import org.eclipse.ecf.internal.ui.wizards.IWizardRegistryConstants;
@@ -66,21 +67,24 @@ public class SelectProviderAction implements IWizardRegistryConstants,
final IConfigurationWizard wizard = getWizard(
configurationWizards, factoryName);
final IConfigurationElement ice = ices[j];
- if (wizard == null) {
- map.put(ice.getAttribute(ATT_NAME),
- new SelectionAdapter() {
- public void widgetSelected(SelectionEvent e) {
- openConnectWizard(ice, factoryName);
- }
- });
- } else {
- map.put(ice.getAttribute(ATT_NAME),
- new SelectionAdapter() {
- public void widgetSelected(SelectionEvent e) {
- openConnectWizard(wizard, ice,
- factoryName);
- }
- });
+ ContainerTypeDescription typeDescription = ContainerFactory.getDefault().getDescriptionByName(factoryName);
+ if (!typeDescription.isHidden()) {
+ if (wizard == null) {
+ map.put(ice.getAttribute(ATT_NAME),
+ new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ openConnectWizard(ice, factoryName);
+ }
+ });
+ } else {
+ map.put(ice.getAttribute(ATT_NAME),
+ new SelectionAdapter() {
+ public void widgetSelected(SelectionEvent e) {
+ openConnectWizard(wizard, ice,
+ factoryName);
+ }
+ });
+ }
}
}
}

Back to the top