01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.wizards;
11:
12: import java.util.Dictionary;
13:
14: /**
15: * Wizards that implement this interface
16: * can be initialized with the default values so that
17: * their pages come preset.
18: */
19: public interface IDefaultValueConsumer {
20: /**
21: * Initializes the consumer with the values.
22: * @param values
23: */
24: void init(Dictionary values);
25:
26: /**
27: * Returns the default value for the given key
28: * @param key
29: * @return the default value or <code>null</code> if not provided.
30: */
31: String getDefaultValue(String key);
32: }
|