Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2014-01-27 09:40:09 -0500
committerptessier2014-01-27 09:40:09 -0500
commitbc56e957da4deded94425181f3288b98407c5764 (patch)
treea8b3eb0eeeac8f99c772df2901fbe6fa048476e9 /plugins
parent96651c4379b00c9cacc4026b7c1def0796d1df79 (diff)
downloadorg.eclipse.papyrus-bc56e957da4deded94425181f3288b98407c5764.tar.gz
org.eclipse.papyrus-bc56e957da4deded94425181f3288b98407c5764.tar.xz
org.eclipse.papyrus-bc56e957da4deded94425181f3288b98407c5764.zip
424316: [Component diagram] add parts connector and port on parts in the
component diagram https://bugs.eclipse.org/bugs/show_bug.cgi?id=424316
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/edit/command/ConnectorCreateCommand.java7
1 files changed, 0 insertions, 7 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/edit/command/ConnectorCreateCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/edit/command/ConnectorCreateCommand.java
index 7699f88092a..425c09c1436 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/edit/command/ConnectorCreateCommand.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.component/custom-src/org/eclipse/papyrus/uml/diagram/component/custom/edit/command/ConnectorCreateCommand.java
@@ -125,26 +125,20 @@ public class ConnectorCreateCommand extends org.eclipse.papyrus.uml.diagram.comp
*/
@Override
public boolean canExecute() {
- System.err.println("source"+source+ " target " +target);
if((source == null) && (target == null)) {
- System.err.println("1");
return false;
}
if((source != null) && !(source instanceof ConnectableElement)) {
- System.err.println("2");
return false;
}
if((target != null) && !(target instanceof ConnectableElement)) {
- System.err.println("3");
return false;
}
if(source == null) {
- System.err.println("4");
return true; // link creation is in progress; source is not defined yet
}
if((target != null) && (getContainer() == null)) {
- System.err.println("5");
return false;
}
@@ -254,7 +248,6 @@ public class ConnectorCreateCommand extends org.eclipse.papyrus.uml.diagram.comp
StructuredClassifier deducedContainer = null;
if((containerProposedBySource != null) && (containerProposedByTarget != null)) {
- System.err.println("Container "+containerProposedBySource.getName()+ ""+ containerProposedBySource.getName());
if(containerProposedBySource == containerProposedByTarget) {
deducedContainer = containerProposedBySource;
}

Back to the top