Kaynağa Gözat

Space missing

Tom 5 yıl önce
ebeveyn
işleme
95f815d846
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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);