1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.ui; 12 13 import org.eclipse.jface.preference.IPreferencePage; 14 15 /** 16 * Interface for workbench preference pages. 17 * <p> 18 * Clients should implement this interface and include the name of their class 19 * in an extension contributed to the workbench's preference extension point 20 * (named <code>"org.eclipse.ui.preferencePages"</code>). 21 * For example, the plug-in's XML markup might contain: 22 * <pre> 23 * <extension point="org.eclipse.ui.preferencePages"> 24 * <page id="com.example.myplugin.prefs" 25 * name="Knobs" 26 * class="com.example.myplugin.MyPreferencePage" /> 27 * </extension> 28 * </pre> 29 * </p> 30 */ 31 public interface IWorkbenchPreferencePage extends IPreferencePage { 32 /** 33 * Initializes this preference page for the given workbench. 34 * <p> 35 * This method is called automatically as the preference page is being created 36 * and initialized. Clients must not call this method. 37 * </p> 38 * 39 * @param workbench the workbench 40 */ 41 void init(IWorkbench workbench); 42 } 43