1 /******************************************************************************* 2 * Copyright (c) 2004, 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 12 package org.eclipse.jface.wizard; 13 14 /** 15 * <p><code>IWizardContainer2</code> is a supplement to 16 * <code>IWizardContainer</code> that adds a method for updating the size of 17 * the wizard shell based on the contents of the current page.</p> 18 * 19 * <p>The class <code>WizardDialog</code> provides a fully functional 20 * implementation of this interface which will meet the needs of 21 * most clients. However, clients are also free to implement this 22 * interface if <code>WizardDialog</code> does not suit their needs. 23 * </p> 24 * 25 * @see org.eclipse.jface.wizard.IWizardContainer 26 * @since 3.0 27 */ 28 public interface IWizardContainer2 extends IWizardContainer { 29 30 /** 31 * Updates the window size to reflect the state of the current wizard. 32 * <p> 33 * This method is called by the container itself 34 * when its wizard changes and may be called 35 * by the wizard at other times to force a window 36 * size change. 37 * </p> 38 */ 39 public void updateSize(); 40 } 41