summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-01-23 07:05:22 (EST)
committerStephan Born2012-04-24 04:29:48 (EDT)
commit6aae1ab90c8b65cdce34a9b1bcf7a00673a70d07 (patch)
tree351681bddf2c9dd58a8105813370f9b6073c7d6e
parentdc304d5303847a9c1ed7dca003ee10aa22953493 (diff)
downloadorg.eclipse.stardust.ide-6aae1ab90c8b65cdce34a9b1bcf7a00673a70d07.zip
org.eclipse.stardust.ide-6aae1ab90c8b65cdce34a9b1bcf7a00673a70d07.tar.gz
org.eclipse.stardust.ide-6aae1ab90c8b65cdce34a9b1bcf7a00673a70d07.tar.bz2
Jira-ID: CRNT-23161 External Web Application Type: Restore Default button leads to duplicate Typed Access Points
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@53063 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/modeling/externalwebapp/spi/context/ExternalWebappContextPropertyPage.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/modeling/externalwebapp/spi/context/ExternalWebappContextPropertyPage.java b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/modeling/externalwebapp/spi/context/ExternalWebappContextPropertyPage.java
index 79c586e..58051e7 100644
--- a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/modeling/externalwebapp/spi/context/ExternalWebappContextPropertyPage.java
+++ b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/modeling/externalwebapp/spi/context/ExternalWebappContextPropertyPage.java
@@ -61,11 +61,11 @@ public class ExternalWebappContextPropertyPage extends AbstractModelElementPrope
String iconName = "{org.eclipse.stardust.modeling.transformation.modeling.externalwebapp}icons/message_transformation_application_icon.gif"; //$NON-NLS-1$
ConfigurationElement element = ConfigurationElement.createPageConfiguration("org.eclipse.stardust.modeling.transformation.modeling.externalwebapp.spi.context.InputOutputApplicationPropertyPage", "Typed Access Points", iconName, org.eclipse.stardust.modeling.transformation.modeling.externalwebapp.spi.context.InputOutputApplicationPropertyPage.class); //$NON-NLS-1$ //$NON-NLS-2$
CarnotPreferenceNode actualNode = (CarnotPreferenceNode) getNode("_cwm_interactive_.externalWebApp"); //$NON-NLS-1$
- //ModelElementPropertyDialog propDialog = (ModelElementPropertyDialog) getContainer();
- //CarnotPreferenceNode newNode = new CarnotPreferenceNode(element, propDialog.getElement(), 0);
CarnotPreferenceNode newNode = new CarnotPreferenceNode(element, getElement(), 0);
- actualNode.add(newNode);
-
+ if (actualNode.getSubNodes().length == 0)
+ {
+ actualNode.add(newNode);
+ }
return composite;
}
}