Remove Unused Texts from UIText.java and corresponding properties
[egit.git] / org.eclipse.egit.ui / src / org / eclipse / egit / ui / PluginPreferenceInitializer.java
blob95dda4133764a1d4edb3f516211b63d8e3988ad7
1 /*******************************************************************************
2 * Copyright (C) 2008, Roger C. Soares <rogersoares@intelinet.com.br>
3 * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * http://www.eclipse.org/legal/epl-v10.html
9 *******************************************************************************/
10 package org.eclipse.egit.ui;
12 import org.eclipse.core.runtime.Preferences;
13 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
15 /**
16 * Plugin extension point to initialize the plugin runtime preferences.
18 public class PluginPreferenceInitializer extends AbstractPreferenceInitializer {
20 /**
21 * Calls super constructor.
23 public PluginPreferenceInitializer() {
24 super();
27 /**
28 * This method initializes the plugin preferences with default values.
30 public void initializeDefaultPreferences() {
31 Preferences prefs = Activator.getDefault().getPluginPreferences();
32 int[] w;
34 prefs.setDefault(UIPreferences.RESOURCEHISTORY_SHOW_COMMENT_WRAP, true);
35 prefs.setDefault(UIPreferences.RESOURCEHISTORY_SHOW_REV_DETAIL, true);
36 prefs.setDefault(UIPreferences.RESOURCEHISTORY_SHOW_REV_COMMENT, true);
37 prefs.setDefault(UIPreferences.RESOURCEHISTORY_SHOW_TOOLTIPS, false);
39 prefs.setDefault(UIPreferences.DECORATOR_RECOMPUTE_ANCESTORS, true);
40 prefs.setDefault(UIPreferences.DECORATOR_RECURSIVE_LIMIT,
41 Integer.MAX_VALUE);
42 prefs.setDefault(UIPreferences.DECORATOR_FILETEXT_DECORATION,
43 UIText.DecoratorPreferencesPage_fileFormatDefault);
44 prefs.setDefault(UIPreferences.DECORATOR_FOLDERTEXT_DECORATION,
45 UIText.DecoratorPreferencesPage_folderFormatDefault);
46 prefs.setDefault(UIPreferences.DECORATOR_PROJECTTEXT_DECORATION,
47 UIText.DecoratorPreferencesPage_projectFormatDefault);
48 prefs.setDefault(UIPreferences.DECORATOR_SHOW_TRACKED_ICON, true);
49 prefs.setDefault(UIPreferences.DECORATOR_SHOW_UNTRACKED_ICON, true);
50 prefs.setDefault(UIPreferences.DECORATOR_SHOW_STAGED_ICON, true);
51 prefs.setDefault(UIPreferences.DECORATOR_SHOW_CONFLICTS_ICON, true);
52 prefs.setDefault(UIPreferences.DECORATOR_SHOW_ASSUME_VALID_ICON, true);
54 w = new int[] { 500, 500 };
55 UIPreferences.setDefault(prefs,
56 UIPreferences.RESOURCEHISTORY_GRAPH_SPLIT, w);
57 w = new int[] { 700, 300 };
58 UIPreferences.setDefault(prefs,
59 UIPreferences.RESOURCEHISTORY_REV_SPLIT, w);
61 prefs.setDefault(UIPreferences.FINDTOOLBAR_IGNORE_CASE, true);
62 prefs.setDefault(UIPreferences.FINDTOOLBAR_FIND_IN, 2);