Refactor the class GitDecoratorPreferencePage
[egit/chris.git] / org.eclipse.egit.ui / src / org / eclipse / egit / ui / internal / preferences / GitPreferenceRoot.java
blob5cfbd103fd1ad7598357dc0e753615e571990c64
1 /*******************************************************************************
2 * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org>
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
9 package org.eclipse.egit.ui.internal.preferences;
11 import org.eclipse.egit.ui.Activator;
12 import org.eclipse.jface.preference.IPreferenceStore;
13 import org.eclipse.jface.preference.PreferencePage;
14 import org.eclipse.swt.SWT;
15 import org.eclipse.swt.widgets.Composite;
16 import org.eclipse.swt.widgets.Control;
17 import org.eclipse.ui.IWorkbench;
18 import org.eclipse.ui.IWorkbenchPreferencePage;
20 /** Root preference page for the all of our workspace preferences. */
21 public class GitPreferenceRoot extends PreferencePage implements
22 IWorkbenchPreferencePage {
23 protected Control createContents(Composite parent) {
24 return new Composite(parent, SWT.NULL);
27 protected IPreferenceStore doGetPreferenceStore() {
28 return Activator.getDefault().getPreferenceStore();
31 public void init(final IWorkbench workbench) {
32 // Do nothing.