Package org.tinyuml.ui.diagram.commands

Examples of org.tinyuml.ui.diagram.commands.SetConnectionNavigabilityCommand


      getSelectedElements().get(0) instanceof UmlConnection) {
      UmlConnection conn = (UmlConnection) getSelectedElements().get(0);
      Relation relation = (Relation) conn.getModelElement();
      // Setup a toggle
      if (endType == RelationEndType.SOURCE) {
        execute(new SetConnectionNavigabilityCommand(this, conn, endType,
          !relation.isNavigableToElement1()));
      }
      if (endType == RelationEndType.TARGET) {
        execute(new SetConnectionNavigabilityCommand(this, conn, endType,
          !relation.isNavigableToElement2()));
      }
    }
  }
View Full Code Here


      getSelectedElements().get(0) instanceof UmlConnection) {
      UmlConnection conn = (UmlConnection) getSelectedElements().get(0);
      Relation relation = (Relation) conn.getModelElement();
      // Setup a toggle
      if (endType == RelationEndType.SOURCE) {
        execute(new SetConnectionNavigabilityCommand(this, conn, endType,
          !relation.isNavigableToElement1()));
      }
      if (endType == RelationEndType.TARGET) {
        execute(new SetConnectionNavigabilityCommand(this, conn, endType,
          !relation.isNavigableToElement2()));
      }
    }
  }
View Full Code Here

      getSelectedElements().get(0) instanceof UmlConnection) {
      UmlConnection conn = (UmlConnection) getSelectedElements().get(0);
      Relation relation = (Relation) conn.getModelElement();
      // Setup a toggle
      if (endType == RelationEndType.SOURCE) {
        execute(new SetConnectionNavigabilityCommand(this, conn, endType,
          !relation.isNavigableToElement1()));
      }
      if (endType == RelationEndType.TARGET) {
        execute(new SetConnectionNavigabilityCommand(this, conn, endType,
          !relation.isNavigableToElement2()));
      }
    }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  @Override
  protected void setUp() {
    sourceCommand = new SetConnectionNavigabilityCommand(
      (DiagramEditorNotification) mockEditorNotification.proxy(),
      (UmlConnection) mockUmlConnection.proxy(),
      RelationEndType.SOURCE, true);
    targetCommand = new SetConnectionNavigabilityCommand(
      (DiagramEditorNotification) mockEditorNotification.proxy(),
      (UmlConnection) mockUmlConnection.proxy(),
      RelationEndType.TARGET, true);
  }
View Full Code Here

      getSelectedElements().get(0) instanceof UmlConnection) {
      UmlConnection conn = (UmlConnection) getSelectedElements().get(0);
      Relation relation = (Relation) conn.getModelElement();
      // Setup a toggle
      if (endType == RelationEndType.SOURCE) {
        execute(new SetConnectionNavigabilityCommand(this, conn, endType,
          !relation.isNavigableToElement1()));
      }
      if (endType == RelationEndType.TARGET) {
        execute(new SetConnectionNavigabilityCommand(this, conn, endType,
          !relation.isNavigableToElement2()));
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.tinyuml.ui.diagram.commands.SetConnectionNavigabilityCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.