Update of /cvsroot/rails/18xx/rails/ui/swing
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv20733/rails/ui/swing
Modified Files:
ORPanel.java
Log Message:
Added some info items. Use getInfo()
Index: ORPanel.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/ui/swing/ORPanel.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** ORPanel.java 18 Jan 2010 18:47:29 -0000 1.42
--- ORPanel.java 19 Jan 2010 19:51:57 -0000 1.43
***************
*** 496,500 ****
} else {
for (SpecialPropertyI sp : sps) {
! appendInfoText(b, sp.toString());
}
}
--- 496,500 ----
} else {
for (SpecialPropertyI sp : sps) {
! appendInfoText(b, sp.getInfo());
}
}
***************
*** 553,556 ****
--- 553,564 ----
appendInfoText(b, LocalText.getText("PhaseNumberOfORs", phase.getNumberOfOperatingRounds()));
appendInfoText(b, LocalText.getText("PhaseOffBoardStep", phase.getOffBoardRevenueStep()));
+ if (phase.doPrivatesClose()) {
+ appendInfoText(b, LocalText.getText("PhaseClosesAllPrivates"));
+ }
+ if (phase.getClosedObjects() != null) {
+ for (Closeable object : phase.getClosedObjects()) {
+ appendInfoText(b, LocalText.getText("PhaseRemoves", Util.lowerCaseFirst(object.getInfo())));
+ }
+ }
item = new JMenu (LocalText.getText("PhaseX", phase.getName()));
item.setEnabled(true);
|