コード例 #1
0
  public void apply() {
    ExportToHTMLSettings exportToHTMLSettings = ExportToHTMLSettings.getInstance(myProject);

    if (myCanBeOpenInBrowser) {
      exportToHTMLSettings.OPEN_IN_BROWSER = myCbOpenInBrowser.isSelected();
    }
    exportToHTMLSettings.OUTPUT_DIRECTORY = myTargetDirectoryField.getText();
  }
コード例 #2
0
 public void reset() {
   ExportToHTMLSettings exportToHTMLSettings = ExportToHTMLSettings.getInstance(myProject);
   if (myCanBeOpenInBrowser) {
     myCbOpenInBrowser.setSelected(exportToHTMLSettings.OPEN_IN_BROWSER);
   }
   myTargetDirectoryField.setText(exportToHTMLSettings.OUTPUT_DIRECTORY);
 }