mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +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 GlobalBuildLogPreferencePage() {
|
||||
super(GRID);
|
||||
setPreferenceStore(BuildConsoleManager.getBuildLogPreferenceStore(null));
|
||||
super(GRID);
|
||||
setPreferenceStore(BuildConsoleManager.getBuildLogPreferenceStore(null));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -55,21 +55,22 @@ public class GlobalBuildLogPreferencePage extends FieldEditorPreferencePage impl
|
|||
|
||||
@Override
|
||||
protected void createFieldEditors() {
|
||||
Composite parent = getFieldEditorParent();
|
||||
BooleanFieldEditor keepLog = new BooleanFieldEditor(BuildConsoleManager.KEY_KEEP_LOG,
|
||||
PreferencesMessages.GlobalBuildLogPreferencePage_EnableLogging, parent);
|
||||
addField(keepLog);
|
||||
FilePathEditor logLocation = new FilePathEditor(BuildConsoleManager.KEY_LOG_LOCATION,
|
||||
PreferencesMessages.GlobalBuildLogPreferencePage_LogLocation, parent);
|
||||
addField(logLocation);
|
||||
Composite parent = getFieldEditorParent();
|
||||
BooleanFieldEditor keepLog = new BooleanFieldEditor(BuildConsoleManager.KEY_KEEP_LOG,
|
||||
PreferencesMessages.GlobalBuildLogPreferencePage_EnableLogging, parent);
|
||||
addField(keepLog);
|
||||
FilePathEditor logLocation = new FilePathEditor(BuildConsoleManager.KEY_LOG_LOCATION,
|
||||
PreferencesMessages.GlobalBuildLogPreferencePage_LogLocation, parent);
|
||||
addField(logLocation);
|
||||
}
|
||||
|
||||
public void init(IWorkbench workbench) {
|
||||
initDefaults(BuildConsoleManager.getBuildLogPreferenceStore(null));
|
||||
initDefaults(BuildConsoleManager.getBuildLogPreferenceStore(null));
|
||||
}
|
||||
|
||||
public static void initDefaults(IPreferenceStore prefs) {
|
||||
prefs.setDefault(BuildConsoleManager.KEY_KEEP_LOG, BuildConsoleManager.CONSOLE_KEEP_LOG_DEFAULT);
|
||||
prefs.setDefault(BuildConsoleManager.KEY_LOG_LOCATION, BuildConsoleManager.getDefaultConsoleLogLocation(null));
|
||||
prefs.setDefault(BuildConsoleManager.KEY_KEEP_LOG, BuildConsoleManager.CONSOLE_KEEP_LOG_DEFAULT);
|
||||
prefs.setDefault(BuildConsoleManager.KEY_LOG_LOCATION,
|
||||
BuildConsoleManager.getDefaultConsoleLogLocation(null));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue