diff options
author | Henrik Rentz-Reichert | 2012-01-12 17:01:01 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2012-01-12 17:01:01 +0000 |
commit | 8401c69d38c05bf1ed5a51f6aac790b1098eadd8 (patch) | |
tree | 589047a93d24b7a33a3dee600edcc6a795c664d3 | |
parent | ce9d0b3d97d63ba9cdec39e821952633ac0c58e8 (diff) | |
download | org.eclipse.etrice-8401c69d38c05bf1ed5a51f6aac790b1098eadd8.tar.gz org.eclipse.etrice-8401c69d38c05bf1ed5a51f6aac790b1098eadd8.tar.xz org.eclipse.etrice-8401c69d38c05bf1ed5a51f6aac790b1098eadd8.zip |
[ui.behavior] minor improvements in PortMessageSelectionDialog
-rw-r--r-- | plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/dialogs/PortMessageSelectionDialog.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/dialogs/PortMessageSelectionDialog.java b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/dialogs/PortMessageSelectionDialog.java index 213688550..1034830d6 100644 --- a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/dialogs/PortMessageSelectionDialog.java +++ b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/dialogs/PortMessageSelectionDialog.java @@ -178,10 +178,7 @@ public class PortMessageSelectionDialog extends FormDialog { element = ((MsgItemPair) element).msg;
else if (element instanceof OperationItemPair) {
PortOperation op = ((OperationItemPair) element).op;
- if (op.getSendsMsg()!=null)
- element = op.getSendsMsg();
- else
- element = op;
+ element = op;
}
return labelProvider.getImage(element);
}
@@ -200,8 +197,13 @@ public class PortMessageSelectionDialog extends FormDialog { return ((InterfaceItem) element).getName();
else if (element instanceof MsgItemPair)
return ((MsgItemPair) element).msg.getName();
- else if (element instanceof OperationItemPair)
- return ((OperationItemPair) element).op.getName();
+ else if (element instanceof OperationItemPair) {
+ PortOperation op = ((OperationItemPair) element).op;
+ String add = "";
+ if (op.getSendsMsg()!=null)
+ add = " sends "+op.getSendsMsg().getName();
+ return op.getName()+add;
+ }
break;
case 1:
if (element instanceof MsgItemPair)
|