public HaxeAdditionalConfigurablePanel() {
myNekoTextField.getButton().addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, false, false, false, false);
final VirtualFile file = FileChooser.chooseFile(descriptor, myPanel, null, null);
if (file != null) {
setNekoBinPath(FileUtil.toSystemIndependentName(file.getPath()));
}
}
});
myNekoLabel.setLabelFor(myNekoTextField.getTextField());
myHaxelibTextField.getButton().addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
final FileChooserDescriptor descriptor = new FileChooserDescriptor(true, false, false, false, false, false);
final VirtualFile file = FileChooser.chooseFile(descriptor, myPanel, null, null);
if (file != null) {
setHaxelibPath(FileUtil.toSystemIndependentName(file.getPath()));
}
}