mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +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();
|
||||
if (cf == null) return 0;
|
||||
for (int i=0; i<cf.length; i++) {
|
||||
ICResourceDescription out = cf[i].getResourceDescription(path, true);
|
||||
if (out != null) result |= TICK_CONFIGURATION;
|
||||
// exclude ticks behaviour is an item to discuss.
|
||||
// out = cf[i].getResourceDescription(path, false);
|
||||
// if (out.isExcluded()) result |= TICK_EXCLUDE;
|
||||
if (cf[i].isActive()) {
|
||||
ICResourceDescription out = cf[i].getResourceDescription(path, true);
|
||||
if (out != null) result |= TICK_CONFIGURATION;
|
||||
out = cf[i].getResourceDescription(path, false);
|
||||
if (out.isExcluded()) result |= TICK_EXCLUDE;
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
@ -20,6 +20,7 @@ import org.eclipse.jface.action.Action;
|
|||
import org.eclipse.cdt.core.model.CoreModel;
|
||||
import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
|
||||
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
|
||||
|
@ -57,6 +58,7 @@ public class BuildConfigAction extends Action {
|
|||
configs[i].setActive();
|
||||
try {
|
||||
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
||||
AbstractPage.updateViews();
|
||||
} catch (CoreException e) { }
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -76,6 +76,7 @@ public class ManageConfigDialog extends Dialog {
|
|||
if (d.open() == OK) {
|
||||
try {
|
||||
CoreModel.getDefault().setProjectDescription(prj, prjd);
|
||||
AbstractPage.updateViews();
|
||||
} catch (CoreException e) { return false; }
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue