コード例 #1
0
ファイル: JavaPanel.java プロジェクト: CTMM-TraIT/trait_ctp
 public void save() {
   Configuration config = Configuration.getInstance();
   Properties props = config.props;
   props.setProperty("mx", maxMemory.tf.getText().trim());
   props.setProperty("ms", initMemory.tf.getText().trim());
   props.setProperty("ss", stackSize.tf.getText().trim());
   props.setProperty("ext", extDirs.tf.getText().trim());
   props.setProperty("clr", (clearLogs.cb.isSelected() ? "yes" : "no"));
   props.setProperty("ssl", (debugSSL.cb.isSelected() ? "yes" : "no"));
   props.setProperty("mon", (javaMonitor.cb.isSelected() ? "yes" : "no"));
   config.save();
 }
コード例 #2
0
 public void actionPerformed(ActionEvent event) {
   ProjectBrowser.TheInstance.saveScreenConfiguration();
   if (!Configuration.save()) Configuration.save(true);
 }