Drag fragments in sequence diagram

Issue #536 resolved
Tony Chen created an issue

In the sequence diagram view, user should be able to drag fragments up/down within the same lifeline. Fragments associated with the fragment being dragged should be moved accordingly.

Comments (6)

  1. Tony Chen reporter

    References #536: Main functionality completed

    Dragging fragments up and down works correctly.

    Implemented DragHandler which is used to handle dragging for MessageCallView, ExecutionStatement, CombinedFragmentView and AssignmentStatementView.

    Moved getIndexAfter from MessageViewHandler.java to MessageViewUtil.java.

    → <<cset e2cbc017789d>>

  2. Tony Chen reporter

    References: #536: Refactoring

    • Remove duplicate code in DragHandler.java
    • Calls same FragmentController for moving to top spacer of a CombinedFragment
    • Put whole notifyChanged body within a runnable in MessageViewView
    • Minor refactoring

    → <<cset b07346da5ab3>>

  3. Tony Chen reporter

    References #536: Remove runnable from notifyChanged

    Adding a runnable for the whole notifyChanged block causes an error at line 707 in MessageViewView.removeInteractionFragment when removing a fragment. Runnable is changed back to where Notification.MOVE is handled.

    → <<cset 79eed74a0c1b>>

  4. Log in to comment