mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 09:45:39 +02:00
bug 306945: Build Console no longer shows for non-C/C++ Projects
Patch from Christian W. Damus
This commit is contained in:
parent
196daf5a2a
commit
e79f6fda67
1 changed files with 8 additions and 2 deletions
|
@ -163,9 +163,15 @@ public class BuildConsolePage extends Page
|
||||||
|
|
||||||
protected void setProject(IProject project) {
|
protected void setProject(IProject project) {
|
||||||
if (fProject != project && project.isAccessible()) {
|
if (fProject != project && project.isAccessible()) {
|
||||||
|
fProject = project;
|
||||||
|
|
||||||
ICProjectDescription projDesc = CoreModel.getDefault().getProjectDescription(project);
|
ICProjectDescription projDesc = CoreModel.getDefault().getProjectDescription(project);
|
||||||
if (projDesc!=null) {
|
if (projDesc == null) {
|
||||||
fProject = project;
|
// don't support logging for non-C/C++ projects
|
||||||
|
fSaveConsoleAction.setChecked(false);
|
||||||
|
fSaveConsoleAction.setEnabled(false);
|
||||||
|
} else {
|
||||||
|
fSaveConsoleAction.setEnabled(true);
|
||||||
fSaveConsoleAction.setChecked(false);
|
fSaveConsoleAction.setChecked(false);
|
||||||
ICConfigurationDescription configDesc = projDesc.getActiveConfiguration();
|
ICConfigurationDescription configDesc = projDesc.getActiveConfiguration();
|
||||||
// Read save console log preferences
|
// Read save console log preferences
|
||||||
|
|
Loading…
Add table
Reference in a new issue