});
myPathToFileTextField.getButton().addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, false, true, false, false);
final VirtualFile file = FileChooser.chooseFile(descriptor, component, null, null);
if (file != null) {
customPathToFile = FileUtil.toSystemIndependentName(file.getPath());
updateComponents();
}
}
});
myAlternativeExecutable.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (!myAlternativeExecutable.isSelected()) {
customPathToExecutable = myExecutableField.getText();
}
updateComponents();
}
});
myExecutableField.getButton().addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, false, true, false, false);
final VirtualFile file = FileChooser.chooseFile(descriptor, component, null, null);
if (file != null) {
customPathToExecutable = FileUtil.toSystemIndependentName(file.getPath());
updateComponents();
}