eclipse: ensure compiler output set after 'use module output' rb selection (IDEA-137955)

This commit is contained in:
Anna Kozlova
2015-03-24 16:48:19 +01:00
parent 03e646a96f
commit 45883b85ba
@@ -83,14 +83,14 @@ public class BuildElementsEditor extends ModuleElementsEditor {
myOutputPathPanel = createOutputPathPanel(ProjectBundle.message("module.paths.output.title"), new CommitPathRunnable() {
@Override
public void saveUrl(String url) {
if (getCompilerExtension().isCompilerOutputPathInherited()) return; //do not override settings if any
if (myInheritCompilerOutput.isSelected()) return; //do not override settings if any
getCompilerExtension().setCompilerOutputPath(url);
}
});
myTestsOutputPathPanel = createOutputPathPanel(ProjectBundle.message("module.paths.test.output.title"), new CommitPathRunnable() {
@Override
public void saveUrl(String url) {
if (getCompilerExtension().isCompilerOutputPathInherited()) return; //do not override settings if any
if (myInheritCompilerOutput.isSelected()) return; //do not override settings if any
getCompilerExtension().setCompilerOutputPathForTests(url);
}
});
@@ -218,6 +218,14 @@ public class BuildElementsEditor extends ModuleElementsEditor {
}
};
final ActionListener listener = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
commitRunnable.run();
}
};
myPerModuleCompilerOutput.addActionListener(listener);
textField.getDocument().addDocumentListener(new DocumentAdapter() {
@Override
protected void textChanged(DocumentEvent e) {