|
@@ -373,7 +373,7 @@ public class UpperNodeCanvas extends JPanel implements MouseListener, MouseMotio
|
|
|
tabbedPane = (JTabbedPane) tempSplit.getLeftComponent();
|
|
|
tabbedPane2 = null;
|
|
|
}
|
|
|
- //Look if the uppernode is open in a Tab
|
|
|
+ // Look if the uppernode is open in a Tab
|
|
|
for (int i = 4; i < tabbedPane.getTabCount(); i++) {
|
|
|
if (tabbedPane.getComponentAt(i) == null) {
|
|
|
} else if (((UpperNodeCanvas) ((JScrollPane) tabbedPane.getComponentAt(i)).getViewport()
|
|
@@ -388,8 +388,8 @@ public class UpperNodeCanvas extends JPanel implements MouseListener, MouseMotio
|
|
|
if (tabbedPane2 != null
|
|
|
&& ((UpperNodeCanvas) ((JScrollPane) tabbedPane2.getSelectedComponent())
|
|
|
.getViewport().getComponent(0)).upperNode.getId() == cps.getId()) {
|
|
|
- ((ButtonTabComponent) tabbedPane
|
|
|
- .getTabComponentAt(tabbedPane2.getSelectedIndex())).removeTabs();
|
|
|
+ ((ButtonTabComponent) tabbedPane.getTabComponentAt(tabbedPane2.getSelectedIndex()))
|
|
|
+ .removeTabs();
|
|
|
}
|
|
|
} catch (Exception e2) {
|
|
|
}
|
|
@@ -715,6 +715,9 @@ public class UpperNodeCanvas extends JPanel implements MouseListener, MouseMotio
|
|
|
g2.setColor(Color.RED);
|
|
|
g2.setStroke(new BasicStroke(2));
|
|
|
}
|
|
|
+ if (ed.getA().getId() == model.getSelectedObjectID()
|
|
|
+ || ed.getB().getId() == model.getSelectedObjectID())
|
|
|
+ g2.setColor(Color.BLUE);
|
|
|
} else {
|
|
|
g2.setColor(Color.DARK_GRAY);
|
|
|
g2.setStroke(new BasicStroke(2));
|
|
@@ -853,6 +856,7 @@ public class UpperNodeCanvas extends JPanel implements MouseListener, MouseMotio
|
|
|
dataSelected = null;
|
|
|
edgeHighlight = null;
|
|
|
controller.setSelecteEdge(null);
|
|
|
+ controller.setSelectedObjectID(-1);
|
|
|
// Object Selection
|
|
|
|
|
|
// Erase old data in the PropertyTable
|