Skip to content

Commit

Permalink
Add normal field for executable name. #18
Browse files Browse the repository at this point in the history
  • Loading branch information
atsky committed Jun 5, 2014
1 parent 8f4d4ea commit ffd54a0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.jetbrains.haskell.run.ModuleComboBoxRenderer
import java.awt.BorderLayout

class ProgramParamsPanel(modules: Array<Module>) : JPanel() {
private var executableComponent: TextFieldWithBrowseButton
private var executableComponent: JTextField
private var moduleComboBox: JComboBox
private var programParametersComponent : RawCommandLineEditor
private var workingDirectoryComponent : TextFieldWithBrowseButton
Expand All @@ -39,8 +39,7 @@ class ProgramParamsPanel(modules: Array<Module>) : JPanel() {

{
this.setLayout(GridBagLayout())
executableComponent = TextFieldWithBrowseButton();
executableComponent.addBrowseFolderListener("Main file", "Main File", null, FileChooserDescriptor(true, false, false, false, true, false))
executableComponent = JTextField();
moduleComboBox = JComboBox(DefaultComboBoxModel(modules))
moduleComboBox.setRenderer(ModuleComboBoxRenderer())

Expand All @@ -57,7 +56,7 @@ class ProgramParamsPanel(modules: Array<Module>) : JPanel() {
result
}

val moduleLabel = JLabel("Main module")
val moduleLabel = JLabel("Executable Name")
add(moduleLabel, base().setConstraints {
gridx = 0
gridy = 0
Expand Down

0 comments on commit ffd54a0

Please sign in to comment.