}
}
});
applicationPackage.addBrowseFolderListener("Application package directory", "Application package directory",
project, new FileChooserDescriptor(false, true, false, false, false, false));
buildDirectoryPathBrowser.addBrowseFolderListener("Go executable build path", "Go executable build path",
project, new FileChooserDescriptor(false, true, false, false, false, false));
workingDirectoryBrowser.addBrowseFolderListener("Application working directory", "Application working directory",
project, new FileChooserDescriptor(false, true, false, false, false, false));
buildBeforeRunCheckBox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
buildDirectoryPathBrowser.setEnabled(buildBeforeRunCheckBox.isSelected());
enableDebuggingCheckBox.setEnabled(buildBeforeRunCheckBox.isSelected());
}
});
goFileRadioButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
applicationName.setEnabled(goFileRadioButton.isSelected());
applicationPackage.setEnabled(!goFileRadioButton.isSelected());
}
});
goPackageRadioButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
applicationName.setEnabled(!goPackageRadioButton.isSelected());
applicationPackage.setEnabled(goPackageRadioButton.isSelected());
}
});
m_gdbPath.addBrowseFolderListener("GDB executable path", "GDB executable path",
project, new FileChooserDescriptor(true, false, false, false, false, false));
debugPanel.setEnabled(enableDebuggingCheckBox.isSelected());
}