void () { myOptionsProvider.setShowDebugConsoleByDefault(myShowDebugConsoleByDefault.isSelected()); myOptionsProvider.setIpythonEnabled(myIpythonEnabledCheckbox.isSelected()); myOptionsProvider.setShowVariablesByDefault(myShowsVariablesByDefault.isSelected()); myOptionsProvider.setUseExistingConsole(myUseExistingConsole.isSelected()); myOptionsProvider.setCommandQueueEnabled(myCommandQueueEnabledCheckbox.isSelected()); Object selectedCodeCompletion = myCodeCompletionComboBox.getSelectedItem(); if (selectedCodeCompletion instanceof CodeCompletionOption) { myOptionsProvider.setCodeCompletionOption((CodeCompletionOption)selectedCodeCompletion); } }