Skip to content
Snippets Groups Projects
Commit 11810ce8 authored by Dominique Blouin's avatar Dominique Blouin
Browse files

Issue #69: Reverted modification that was preventing connection points

to be selected
parent f8f5ab38
No related branches found
No related tags found
No related merge requests found
...@@ -582,21 +582,17 @@ public class TDiagramMouseManager extends MouseAdapter {//implements MouseListen ...@@ -582,21 +582,17 @@ public class TDiagramMouseManager extends MouseAdapter {//implements MouseListen
} }
} }
// Issue #69 Always repaint. Needed for displaying the transition element in Avatar state machine diagram if ((selected == TGComponentManager.CONNECTOR) && (tdp.mode == TDiagramPanel.NORMAL)) { // is connectingPointShow selected
// if(tdp.highlightOutAndFreeConnectingPoint(e.getX(), e.getY(), tdp.getMGUI().getIdButtonSelected())) {
// if ((selected == TGComponentManager.CONNECTOR) && (tdp.mode == TDiagramPanel.NORMAL)) { // is connectingPointShow selected tdp.repaint();
// if(tdp.highlightOutAndFreeConnectingPoint(e.getX(), e.getY(), tdp.getMGUI().getIdButtonSelected())) { }
// tdp.repaint(); }
// }
// }
//
// if ((selected == TGComponentManager.CONNECTOR) && (tdp.mode == TDiagramPanel.ADDING_CONNECTOR)) {
// tdp.highlightInAndFreeConnectingPoint(e.getX(), e.getY(), tdp.getMGUI().getIdButtonSelected());
// tdp.setAddingTGConnector(e.getX(), e.getY());
// tdp.repaint();
// }
tdp.repaint(); if ((selected == TGComponentManager.CONNECTOR) && (tdp.mode == TDiagramPanel.ADDING_CONNECTOR)) {
tdp.highlightInAndFreeConnectingPoint(e.getX(), e.getY(), tdp.getMGUI().getIdButtonSelected());
tdp.setAddingTGConnector(e.getX(), e.getY());
tdp.repaint();
}
} }
@Override @Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment