summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-01-16 07:32:24 (EST)
committer Stephan Born2012-04-24 04:29:37 (EDT)
commit92d06db1c47c50f240f6354e3fb5715d9d2b3366 (patch)
tree671395148b2bf5a2b6166ae4d3840639f522bccb
parenta825024e5f1206db30ca5257c1fcf13d7d133f82 (diff)
downloadorg.eclipse.stardust.ide-92d06db1c47c50f240f6354e3fb5715d9d2b3366.zip
org.eclipse.stardust.ide-92d06db1c47c50f240f6354e3fb5715d9d2b3366.tar.gz
org.eclipse.stardust.ide-92d06db1c47c50f240f6354e3fb5715d9d2b3366.tar.bz2
Jira-ID: CRNT-23149 MTA: External Classes->Add -> enter/type text in class field throws exception
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@52891 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/widgets/ExternalClassAdditionDialog.java24
1 files changed, 13 insertions, 11 deletions
diff --git a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/widgets/ExternalClassAdditionDialog.java b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/widgets/ExternalClassAdditionDialog.java
index 7320d03..c9c95ea 100644
--- a/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/widgets/ExternalClassAdditionDialog.java
+++ b/modeling/org.eclipse.stardust.modeling.transformation/src/org/eclipse/stardust/modeling/transformation/messaging/modeling/application/transformation/widgets/ExternalClassAdditionDialog.java
@@ -208,17 +208,19 @@ public void modifyText(ModifyEvent arg0) {
}
private void serializableTypeModified(ModifyEvent e) {
- String messageName = classBrowser.getType().getType().getElementName();
- String text = messageName;
- int n = 1;
- while ( isAccessPointIdDefined(text + n) )
- {
- n++;
- }
- text = text + n;
- messageNameText.setText(text);
- AccessPointType apt = controller.getMtaUtils().createSerializableAccessPoint(classBrowser.getType(), text, directionType);
- this.messageType = apt;
+ if (classBrowser.getType() != null) {
+ String messageName = classBrowser.getType().getType().getElementName();
+ String text = messageName;
+ int n = 1;
+ while ( isAccessPointIdDefined(text + n) )
+ {
+ n++;
+ }
+ text = text + n;
+ messageNameText.setText(text);
+ AccessPointType apt = controller.getMtaUtils().createSerializableAccessPoint(classBrowser.getType(), text, directionType);
+ this.messageType = apt;
+ }
}
public AccessPointType getMessageType() {