// ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.dataprofiler.core.license;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.wizard.IWizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
import org.talend.dataprofiler.core.i18n.internal.DefaultMessagesImpl;
/**
* This dialog for displaying the License information.
*/
public final class LicenseWizardDialog extends WizardDialog {
public LicenseWizardDialog(Shell parentShell, IWizard newWizard) {
super(parentShell, newWizard);
}
/*
* (non-Javadoc)
*
* @see org.eclipse.jface.wizard.WizardDialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
*/
@Override
protected void createButtonsForButtonBar(Composite parent) {
super.createButtonsForButtonBar(parent);
Button button = getButton(IDialogConstants.FINISH_ID);
if (button != null) {
button.setText(DefaultMessagesImpl.getString("LicenseWizardDialog.accept")); //$NON-NLS-1$
GridData data = new GridData(250, -1);
button.setLayoutData(data);
}
Button buttonCancle = getButton(IDialogConstants.CANCEL_ID);
if (buttonCancle != null) {
buttonCancle.setText(DefaultMessagesImpl.getString("LicenseWizardDialog.cancel")); //$NON-NLS-1$
GridData data = new GridData(-1, -1);
buttonCancle.setLayoutData(data);
}
}
}