summaryrefslogblamecommitdiffstats
path: root/org.rtems.cdt.toolchain2/org/rtems/cdt/preferences/PreferencePage.java
blob: 9848a5d2c1c0bcd1859949884395060ca5406f6d (plain) (tree)

























                                                                                 
                                                                                                                                                                                      








                                                        













                                                       
/*
 * Copyright (c) 2008
 * Embedded Brains GmbH
 * Obere Lagerstr. 30
 * D-82178 Puchheim
 * Germany
 * rtems@embedded-brains.de
 *
 * The license and distribution terms for this file may be found in the file
 * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
 */

package org.rtems.cdt.preferences;

import org.eclipse.jface.preference.*;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.rtems.cdt.Activator;
import org.rtems.cdt.Constants;

public class PreferencePage
	extends FieldEditorPreferencePage
	implements IWorkbenchPreferencePage {
	public PreferencePage() {
		super( GRID);
		setPreferenceStore( Activator.getDefault().getPreferenceStore());
		setDescription( "Select the RTEMS base installation path and the board support package (BSP) installation path.  This provides the default values for all projects.");
	}
	
	public void createFieldEditors() {
		addField(
			new DirectoryFieldEditor(
				Constants.BASE_PATH_KEY,
				"Base path:",
				getFieldEditorParent()
			)
		);
		addField(
			new DirectoryFieldEditor(
				Constants.BSP_PATH_KEY,
				"BSP path:",
				getFieldEditorParent()
			)
		);	
	}

	public void init( IWorkbench workbench) {
		// Do nothing
	}
}