Explorar o código

Space missing

Tom %!s(int64=5) %!d(string=hai) anos
pai
achega
95f815d846
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/ui/view/FlexWindow.java

+ 2 - 2
src/ui/view/FlexWindow.java

@@ -332,7 +332,7 @@ public class FlexWindow extends JFrame {
 		listOfAllSelectedHolonObjects.removeAllChildren();
 		//Init with HolonObjects
 		for(AbstractCpsObject aCps: model.getSelectedCpsObjects()) {
-			DefaultMutableTreeNode newObjectChild = new DefaultMutableTreeNode(aCps.getName());
+			DefaultMutableTreeNode newObjectChild = new DefaultMutableTreeNode(aCps.getName() + " ID:" + aCps.getId());
 			if(aCps instanceof HolonObject) expandTreeHolonObject((HolonObject)aCps, newObjectChild);
 			if(aCps instanceof CpsUpperNode)expandTreeUpperNode((CpsUpperNode)aCps, newObjectChild);
 			listOfAllSelectedHolonObjects.add(newObjectChild);
@@ -369,7 +369,7 @@ public class FlexWindow extends JFrame {
 
 	private void expandTreeUpperNode(CpsUpperNode groupNode, DefaultMutableTreeNode root) {
 		for(AbstractCpsObject aCps: groupNode.getNodes()) {
-			DefaultMutableTreeNode newObjectChild = new DefaultMutableTreeNode(aCps.getName() + "ID:" + aCps.getId());
+			DefaultMutableTreeNode newObjectChild = new DefaultMutableTreeNode(aCps.getName() + " ID:" + aCps.getId());
 			if(aCps instanceof HolonObject) expandTreeHolonObject((HolonObject)aCps, newObjectChild);
 			if(aCps instanceof CpsUpperNode)expandTreeUpperNode((CpsUpperNode)aCps, newObjectChild);
 			root.add(newObjectChild);