blob: 162a1588064ed6af79aa91bf9c412b62f60256ad [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2006 IBM Corporation and others.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// IBM Corporation - initial implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.authoring.ui.wizards;
import org.eclipse.epf.authoring.ui.AuthoringUIResources;
import org.eclipse.epf.ui.wizards.BaseWizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
/**
* The wizard page which lets you preview elements to be synchonized
* and also any additional information.
*
* @author BingXue Xu
* @since 1.0
*
*/
public class SynchronizationPreviewPage extends BaseWizardPage {
private SynchronizationChoices syncChoices = null;
private Text ctrl_previewText;
/**
* Creates a new instance.
*/
public SynchronizationPreviewPage(String pageName,
SynchronizationChoices choices) {
super(pageName);
setTitle(AuthoringUIResources.synchronizationWizard_previewPage_title);
setDescription(AuthoringUIResources.synchronizationWizard_previewPage_text);
this.syncChoices = choices;
}
/**
* @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
*/
public void createControl(Composite parent) {
// Create the composite to hold the widgets.
Composite composite = new Composite(parent, SWT.NULL);
composite.setLayout(new GridLayout(1, false));
String explainText = "Preview text coming here.\n\n" + //$NON-NLS-1$
"\tThis has to be coming from some underlyin API call. This may be cut off if there is not enoug time."; //$NON-NLS-1$
ctrl_previewText = createMultiLineText(composite, " ", 400, 240, 1); //$NON-NLS-1$
ctrl_previewText.setText(explainText);
setControl(composite);
}
}