mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
Bug #161547
This commit is contained in:
parent
d6885590f9
commit
527a0fb83e
3 changed files with 9 additions and 5 deletions
|
@ -385,11 +385,12 @@ public class ProblemsLabelDecorator implements ILabelDecorator, ILightweightLabe
|
||||||
ICConfigurationDescription [] cf = prjd.getConfigurations();
|
ICConfigurationDescription [] cf = prjd.getConfigurations();
|
||||||
if (cf == null) return 0;
|
if (cf == null) return 0;
|
||||||
for (int i=0; i<cf.length; i++) {
|
for (int i=0; i<cf.length; i++) {
|
||||||
|
if (cf[i].isActive()) {
|
||||||
ICResourceDescription out = cf[i].getResourceDescription(path, true);
|
ICResourceDescription out = cf[i].getResourceDescription(path, true);
|
||||||
if (out != null) result |= TICK_CONFIGURATION;
|
if (out != null) result |= TICK_CONFIGURATION;
|
||||||
// exclude ticks behaviour is an item to discuss.
|
out = cf[i].getResourceDescription(path, false);
|
||||||
// out = cf[i].getResourceDescription(path, false);
|
if (out.isExcluded()) result |= TICK_EXCLUDE;
|
||||||
// if (out.isExcluded()) result |= TICK_EXCLUDE;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -20,6 +20,7 @@ import org.eclipse.jface.action.Action;
|
||||||
import org.eclipse.cdt.core.model.CoreModel;
|
import org.eclipse.cdt.core.model.CoreModel;
|
||||||
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
|
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
|
||||||
import org.eclipse.cdt.core.settings.model.ICProjectDescription;
|
import org.eclipse.cdt.core.settings.model.ICProjectDescription;
|
||||||
|
import org.eclipse.cdt.ui.newui.AbstractPage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Action which changes active build configuration of the current project to
|
* Action which changes active build configuration of the current project to
|
||||||
|
@ -57,6 +58,7 @@ public class BuildConfigAction extends Action {
|
||||||
configs[i].setActive();
|
configs[i].setActive();
|
||||||
try {
|
try {
|
||||||
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
||||||
|
AbstractPage.updateViews();
|
||||||
} catch (CoreException e) { }
|
} catch (CoreException e) { }
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,6 +76,7 @@ public class ManageConfigDialog extends Dialog {
|
||||||
if (d.open() == OK) {
|
if (d.open() == OK) {
|
||||||
try {
|
try {
|
||||||
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
||||||
|
AbstractPage.updateViews();
|
||||||
} catch (CoreException e) { return false; }
|
} catch (CoreException e) { return false; }
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue