コード例 #1
0
 @Override
 protected void applyEditorTo(@NotNull ErlangConsoleRunConfiguration config)
     throws ConfigurationException {
   config.setModule((Module) myModuleComboBox.getSelectedItem());
   config.setWorkingDirPath(myWorkingDirPathField.getText());
   config.setConsoleArgs(myConsoleArgsEditor.getText());
 }
コード例 #2
0
  @Override
  protected void resetEditorFrom(@NotNull ErlangConsoleRunConfiguration config) {
    myModuleComboBox.removeAllItems();
    for (final Module module : config.getValidModules()) {
      if (ModuleType.get(module) == ErlangModuleType.getInstance()) {
        myModuleComboBox.addItem(module);
      }
    }
    myModuleComboBox.setSelectedItem(myInitialModule);
    //noinspection unchecked
    myModuleComboBox.setRenderer(getListCellRendererWrapper());

    myWorkingDirPathField.setText(config.getWorkingDirPath());
    myModuleComboBox.setSelectedItem(config.getConfigurationModule().getModule());
    myConsoleArgsEditor.setText(config.getConsoleArgs());
  }