| author | Rainer Pielmann | 2012-02-20 08:31:25 (EST) |
|---|---|---|
| committer | Stephan Born | 2012-04-24 10:13:00 (EDT) |
| commit | e96f628ac8fa3edd91fc25774d4394b201cd36dc (patch) (side-by-side diff) | |
| tree | 139baa1b6000aa1d575b05d2d08aa64e46b5a296 | |
| parent | a1821a31be6520c7351da1934fa1c103e6cc6cc1 (diff) | |
| download | org.eclipse.stardust.ide-e96f628ac8fa3edd91fc25774d4394b201cd36dc.zip org.eclipse.stardust.ide-e96f628ac8fa3edd91fc25774d4394b201cd36dc.tar.gz org.eclipse.stardust.ide-e96f628ac8fa3edd91fc25774d4394b201cd36dc.tar.bz2 | |
Jira-ID: CRNT-23166 NPE observed while clicking on Restore default button after Interactive application type change, for all Interactive application types
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@53923 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
| -rw-r--r-- | modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/ApplicationInteractivePropertyPage.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/ApplicationInteractivePropertyPage.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/ApplicationInteractivePropertyPage.java index 399a589..337fa21 100644 --- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/ApplicationInteractivePropertyPage.java +++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/properties/ApplicationInteractivePropertyPage.java @@ -59,9 +59,14 @@ public class ApplicationInteractivePropertyPage extends AbstractModelElementProp private HashMap newContexts = new HashMap(); private TableManager tableManager; + private IModelElementNodeSymbol savedSymbol; + private IModelElement savedElement; public void loadFieldsFromElement(IModelElementNodeSymbol symbol, IModelElement node) { + savedSymbol = symbol; + savedElement = node; + resetContent(); ApplicationType application = (ApplicationType) node; @@ -121,6 +126,13 @@ public class ApplicationInteractivePropertyPage extends AbstractModelElementProp return types; } + @Override + protected void performDefaults() + { + loadFieldsFromElement(savedSymbol, savedElement); + //super.performDefaults(); + } + private void resetContent() { removePreferenceNodes(INTERACTIVE_ID); |

