ソースを参照

Space missing

Tom 5 年 前
コミット
95f815d846
1 ファイル変更2 行追加2 行削除
  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);