mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
eclipse: ensure compiler output set after 'use module output' rb selection (IDEA-137955)
This commit is contained in:
+10
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user