mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
cc88953450
commit
a69e4f47a1
1 changed files with 6 additions and 9 deletions
|
@ -38,13 +38,12 @@ import org.eclipse.cdt.internal.core.pdom.indexer.IndexerPreferences;
|
||||||
* various parsing related caches.
|
* various parsing related caches.
|
||||||
*/
|
*/
|
||||||
public class IndexerStrategyBlock extends AbstractCOptionPage {
|
public class IndexerStrategyBlock extends AbstractCOptionPage {
|
||||||
|
|
||||||
private Button fAutoUpdateButton;
|
private Button fAutoUpdateButton;
|
||||||
private Button fImmediateUpdateButton;
|
private Button fImmediateUpdateButton;
|
||||||
private Button fUseActiveBuildButton;
|
private Button fUseActiveBuildButton;
|
||||||
private Button fUseFixedBuildConfig;
|
private Button fUseFixedBuildConfig;
|
||||||
|
|
||||||
public IndexerStrategyBlock(ICOptionContainer container){
|
public IndexerStrategyBlock(ICOptionContainer container) {
|
||||||
setContainer(container);
|
setContainer(container);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,20 +116,18 @@ public class IndexerStrategyBlock extends AbstractCOptionPage {
|
||||||
int updatePolicy;
|
int updatePolicy;
|
||||||
if (!fAutoUpdateButton.getSelection()) {
|
if (!fAutoUpdateButton.getSelection()) {
|
||||||
updatePolicy= IndexerPreferences.UPDATE_POLICY_MANUAL;
|
updatePolicy= IndexerPreferences.UPDATE_POLICY_MANUAL;
|
||||||
}
|
} else if (fImmediateUpdateButton.getSelection()) {
|
||||||
else if (fImmediateUpdateButton.getSelection()) {
|
|
||||||
updatePolicy= IndexerPreferences.UPDATE_POLICY_IMMEDIATE;
|
updatePolicy= IndexerPreferences.UPDATE_POLICY_IMMEDIATE;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
updatePolicy= IndexerPreferences.UPDATE_POLICY_LAZY;
|
updatePolicy= IndexerPreferences.UPDATE_POLICY_LAZY;
|
||||||
}
|
}
|
||||||
IndexerPreferences.setUpdatePolicy(null, updatePolicy);
|
IndexerPreferences.setUpdatePolicy(null, updatePolicy);
|
||||||
|
|
||||||
if (fUseActiveBuildButton != null) {
|
if (fUseActiveBuildButton != null) {
|
||||||
boolean useActive= fUseActiveBuildButton.getSelection();
|
boolean useActive= fUseActiveBuildButton.getSelection();
|
||||||
int relation= useActive
|
int relation= useActive ?
|
||||||
? ICProjectDescriptionPreferences.CONFIGS_LINK_SETTINGS_AND_ACTIVE
|
ICProjectDescriptionPreferences.CONFIGS_LINK_SETTINGS_AND_ACTIVE :
|
||||||
: ICProjectDescriptionPreferences.CONFIGS_INDEPENDENT;
|
ICProjectDescriptionPreferences.CONFIGS_INDEPENDENT;
|
||||||
ICProjectDescriptionManager prjDescMgr= CCorePlugin.getDefault().getProjectDescriptionManager();
|
ICProjectDescriptionManager prjDescMgr= CCorePlugin.getDefault().getProjectDescriptionManager();
|
||||||
ICProjectDescriptionWorkspacePreferences prefs= prjDescMgr.getProjectDescriptionWorkspacePreferences(true);
|
ICProjectDescriptionWorkspacePreferences prefs= prjDescMgr.getProjectDescriptionWorkspacePreferences(true);
|
||||||
prefs.setConfigurationRelations(relation);
|
prefs.setConfigurationRelations(relation);
|
||||||
|
|
Loading…
Add table
Reference in a new issue