mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 18:25:40 +02:00
cosmetics: formatting
This commit is contained in:
parent
ec96add1ba
commit
5c4d39a370
1 changed files with 13 additions and 12 deletions
|
@ -30,8 +30,8 @@ import org.eclipse.cdt.internal.ui.buildconsole.BuildConsoleManager;
|
||||||
*/
|
*/
|
||||||
public class GlobalBuildLogPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
|
public class GlobalBuildLogPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
|
||||||
public GlobalBuildLogPreferencePage() {
|
public GlobalBuildLogPreferencePage() {
|
||||||
super(GRID);
|
super(GRID);
|
||||||
setPreferenceStore(BuildConsoleManager.getBuildLogPreferenceStore(null));
|
setPreferenceStore(BuildConsoleManager.getBuildLogPreferenceStore(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,21 +55,22 @@ public class GlobalBuildLogPreferencePage extends FieldEditorPreferencePage impl
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void createFieldEditors() {
|
protected void createFieldEditors() {
|
||||||
Composite parent = getFieldEditorParent();
|
Composite parent = getFieldEditorParent();
|
||||||
BooleanFieldEditor keepLog = new BooleanFieldEditor(BuildConsoleManager.KEY_KEEP_LOG,
|
BooleanFieldEditor keepLog = new BooleanFieldEditor(BuildConsoleManager.KEY_KEEP_LOG,
|
||||||
PreferencesMessages.GlobalBuildLogPreferencePage_EnableLogging, parent);
|
PreferencesMessages.GlobalBuildLogPreferencePage_EnableLogging, parent);
|
||||||
addField(keepLog);
|
addField(keepLog);
|
||||||
FilePathEditor logLocation = new FilePathEditor(BuildConsoleManager.KEY_LOG_LOCATION,
|
FilePathEditor logLocation = new FilePathEditor(BuildConsoleManager.KEY_LOG_LOCATION,
|
||||||
PreferencesMessages.GlobalBuildLogPreferencePage_LogLocation, parent);
|
PreferencesMessages.GlobalBuildLogPreferencePage_LogLocation, parent);
|
||||||
addField(logLocation);
|
addField(logLocation);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void init(IWorkbench workbench) {
|
public void init(IWorkbench workbench) {
|
||||||
initDefaults(BuildConsoleManager.getBuildLogPreferenceStore(null));
|
initDefaults(BuildConsoleManager.getBuildLogPreferenceStore(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void initDefaults(IPreferenceStore prefs) {
|
public static void initDefaults(IPreferenceStore prefs) {
|
||||||
prefs.setDefault(BuildConsoleManager.KEY_KEEP_LOG, BuildConsoleManager.CONSOLE_KEEP_LOG_DEFAULT);
|
prefs.setDefault(BuildConsoleManager.KEY_KEEP_LOG, BuildConsoleManager.CONSOLE_KEEP_LOG_DEFAULT);
|
||||||
prefs.setDefault(BuildConsoleManager.KEY_LOG_LOCATION, BuildConsoleManager.getDefaultConsoleLogLocation(null));
|
prefs.setDefault(BuildConsoleManager.KEY_LOG_LOCATION,
|
||||||
|
BuildConsoleManager.getDefaultConsoleLogLocation(null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue