237238239240241242243244
* @return The change suns dialog. */ public synchronized ChangeSunsDialog getChangeSunsDialog() { if (this.changeSunsDialog == null) this.changeSunsDialog = new ChangeSunsDialog(this); return this.changeSunsDialog; }
578579580581582583584585586587588589590591592
* Changes the suns. */ @Override public void changeSuns() { final ChangeSunsDialog dialog = this.complex.getGame().getChangeSunsDialog(); dialog.setSuns(this.complex.getSuns()); if (dialog.open() == Result.OK) { this.complex.setSuns(dialog.getSuns()); doChange(); redraw(); } }