public void apply() {
    ExportToHTMLSettings exportToHTMLSettings = ExportToHTMLSettings.getInstance(myProject);

    if (myCanBeOpenInBrowser) {
      exportToHTMLSettings.OPEN_IN_BROWSER = myCbOpenInBrowser.isSelected();
    }
    exportToHTMLSettings.OUTPUT_DIRECTORY = myTargetDirectoryField.getText();
  }
 public void reset() {
   ExportToHTMLSettings exportToHTMLSettings = ExportToHTMLSettings.getInstance(myProject);
   if (myCanBeOpenInBrowser) {
     myCbOpenInBrowser.setSelected(exportToHTMLSettings.OPEN_IN_BROWSER);
   }
   myTargetDirectoryField.setText(exportToHTMLSettings.OUTPUT_DIRECTORY);
 }