summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-04-10 03:28:58 (EDT)
committer Stephan Born2012-04-24 10:13:55 (EDT)
commitf692cabdf05bc2e60dc493c47e2cb9de4fb40471 (patch)
tree4ab97b774ee3579332f66dbb4ccb6efdb7583062
parent900924cd5c252be536d5aef81c3999add6f9b1eb (diff)
downloadorg.eclipse.stardust.ide-f692cabdf05bc2e60dc493c47e2cb9de4fb40471.zip
org.eclipse.stardust.ide-f692cabdf05bc2e60dc493c47e2cb9de4fb40471.tar.gz
org.eclipse.stardust.ide-f692cabdf05bc2e60dc493c47e2cb9de4fb40471.tar.bz2
Jira-ID: CRNT-23153
Modeler: Changing the file connection in External model references property page throws exception git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@55380 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/ModelElementPropertyDialog.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/ModelElementPropertyDialog.java b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/ModelElementPropertyDialog.java
index 594869c..48c1d01 100644
--- a/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/ModelElementPropertyDialog.java
+++ b/modeling/org.eclipse.stardust.modeling.core/src/org/eclipse/stardust/modeling/core/editors/ui/ModelElementPropertyDialog.java
@@ -44,7 +44,6 @@ import org.eclipse.stardust.common.CompareHelper;
import org.eclipse.stardust.common.StringUtils;
import org.eclipse.stardust.common.reflect.Reflect;
import org.eclipse.stardust.model.xpdl.carnot.ActivityType;
-import org.eclipse.stardust.model.xpdl.carnot.DataType;
import org.eclipse.stardust.model.xpdl.carnot.IExtensibleElement;
import org.eclipse.stardust.model.xpdl.carnot.IModelElement;
import org.eclipse.stardust.model.xpdl.carnot.IModelElementNodeSymbol;
@@ -59,6 +58,7 @@ import org.eclipse.stardust.model.xpdl.carnot.util.VariableContextHelper;
import org.eclipse.stardust.model.xpdl.util.IConnection;
import org.eclipse.stardust.model.xpdl.util.IConnectionManager;
import org.eclipse.stardust.model.xpdl.xpdl2.Extensible;
+import org.eclipse.stardust.model.xpdl.xpdl2.ExternalPackage;
import org.eclipse.stardust.model.xpdl.xpdl2.util.ExtendedAttributeUtil;
import org.eclipse.stardust.modeling.common.platform.validation.IQuickValidationStatus;
import org.eclipse.stardust.modeling.common.ui.jface.databinding.BindingManager;
@@ -500,6 +500,10 @@ public class ModelElementPropertyDialog extends PreferenceDialog
{
return (EObject) model;
}
+ if (model instanceof ExternalPackage)
+ {
+ return null;
+ }
if (model instanceof EObject)
{
return (EObject) model;