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:
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) {
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue