Example usage for com.intellij.openapi.options UnnamedConfigurable reset

List of usage examples for com.intellij.openapi.options UnnamedConfigurable reset

Introduction

In this page you can find the example usage for com.intellij.openapi.options UnnamedConfigurable reset.

Prototype

default void reset() 

Source Link

Document

Loads the settings from the configurable component to the Swing form.

Usage

From source file:com.intellij.codeEditor.printing.ExportToHTMLDialog.java

License:Apache License

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

    myRbSelectedText.setEnabled(myIsSelectedTextEnabled);
    myRbSelectedText.setSelected(myIsSelectedTextEnabled);
    myRbCurrentFile.setEnabled(myFileName != null);
    myRbCurrentFile.setSelected(myFileName != null && !myIsSelectedTextEnabled);
    myRbCurrentPackage.setEnabled(myDirectoryName != null);
    myRbCurrentPackage.setSelected(myDirectoryName != null && !myIsSelectedTextEnabled && myFileName == null);
    myCbIncludeSubpackages.setSelected(exportToHTMLSettings.isIncludeSubdirectories());
    myCbIncludeSubpackages.setEnabled(myRbCurrentPackage.isSelected());

    myCbLineNumbers.setSelected(exportToHTMLSettings.PRINT_LINE_NUMBERS);
    myCbOpenInBrowser.setSelected(exportToHTMLSettings.OPEN_IN_BROWSER);

    myTargetDirectoryField.setText(exportToHTMLSettings.OUTPUT_DIRECTORY);

    for (UnnamedConfigurable printOption : myExtensions) {
        printOption.reset();
    }// ww  w. ja  va2  s.co m
}

From source file:com.intellij.plugins.haxe.ide.projectStructure.ui.HaxeConfigurationEditor.java

License:Apache License

public void reset() {
    final HaxeModuleSettings settings = HaxeModuleSettings.getInstance(myModule);
    assert settings != null;
    myMainClassFieldWithButton.setText(settings.getMainClass());
    myAppArguments.setText(settings.getArguments());
    selectedHaxeTarget = settings.getHaxeTarget();
    selectedNmeTarget = settings.getNmeTarget();
    selectedOpenFLTarget = settings.getOpenFLTarget();
    myExcludeFromCompilationCheckBox.setSelected(settings.isExcludeFromCompilation());
    myOutputFileNameTextField.setText(settings.getOutputFileName());
    myFolderTextField.setText(settings.getOutputFolder());
    for (UnnamedConfigurable configurable : configurables) {
        configurable.reset();
    }/*  w  ww .  j  a v a2 s .c om*/

    final String url = myExtension.getCompilerOutputUrl();
    myFolderTextField.setText(VfsUtil.urlToPath(url));
    myHxmlFileChooserTextField.setText(settings.getHxmlPath());
    myOpenFLFileChooserTextField.setText(settings.getOpenFLPath());
    myNMEFileChooserTextField.setText(settings.getNmmlPath());
    myNMEArguments.setText(settings.getNmeFlags());
    myOpenFLArgumentTextField.setText(settings.getOpenFLFlags());

    myHxmlFileRadioButton.setSelected(settings.isUseHxmlToBuild());
    myNmmlFileRadioButton.setSelected(settings.isUseNmmlToBuild());
    myUserPropertiesRadioButton.setSelected(settings.isUseUserPropertiesToBuild());
    myOpenFLFileRadioButton.setSelected(settings.isUseOpenFLToBuild());
    updateComponents();
    updateTargetCombo();
}

From source file:org.jetbrains.idea.maven.project.MavenImportingConfigurable.java

License:Apache License

public void reset() {
    mySettingsForm.setData(myImportingSettings);

    myUseMaven3CheckBox.setSelected(!MavenServerManager.getInstance().isUseMaven2());
    myEmbedderVMOptions.setText(MavenServerManager.getInstance().getMavenEmbedderVMOptions());

    for (final UnnamedConfigurable additionalConfigurable : myAdditionalConfigurables) {
        additionalConfigurable.reset();
    }//from   w w w  .ja va 2 s  .co m
}

From source file:org.jetbrains.plugins.ruby.settings.RSettingsPane.java

License:Apache License

public void reset() {
    for (UnnamedConfigurable configurable : configurableList) {
        configurable.reset();
    }
}