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.pde.internal.ui.wizards; 12 13 import java.util.Dictionary; 14 15 16 /** 17 * Wizards that implement this interface 18 * can be initialized with the default values so that 19 * their pages come preset. 20 */ 21 public interface IDefaultValueConsumer { 22 /** 23 * Initializes the consumer with the values. 24 * @param values 25 */ 26 void init(Dictionary values); 27 /** 28 * Returns the default value for the given key 29 * @param key 30 * @return the default value or <code>null</code> if not provided. 31 */ 32 String getDefaultValue(String key); 33 } 34