1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 09:15:38 +02:00

bug 306945: Build Console no longer shows for non-C/C++ Projects

Patch from Christian W. Damus
This commit is contained in:
Andrew Gvozdev 2010-03-28 02:09:50 +00:00
parent 196daf5a2a
commit e79f6fda67

View file

@ -163,9 +163,15 @@ public class BuildConsolePage extends Page
protected void setProject(IProject project) {
if (fProject != project && project.isAccessible()) {
fProject = project;
ICProjectDescription projDesc = CoreModel.getDefault().getProjectDescription(project);
if (projDesc!=null) {
fProject = project;
if (projDesc == null) {
// don't support logging for non-C/C++ projects
fSaveConsoleAction.setChecked(false);
fSaveConsoleAction.setEnabled(false);
} else {
fSaveConsoleAction.setEnabled(true);
fSaveConsoleAction.setChecked(false);
ICConfigurationDescription configDesc = projDesc.getActiveConfiguration();
// Read save console log preferences