blob: 5c8de2d2bbb55b27a5f8014f56e17f2c0e4b7f95 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency
* 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:
* Pierre Allard,
* Regent L'Archeveque - initial API and implementation
*
* SPDX-License-Identifier: EPL-1.0
*******************************************************************************/
package org.eclipse.apogy.core.environment.earth.surface.ui.wizards;
import org.eclipse.apogy.core.environment.earth.surface.ui.SunVector3DTool;
import org.eclipse.apogy.core.environment.earth.surface.ui.composites.SunVector3DToolComposite;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
public class SunVector3DToolWizardPage extends WizardPage {
private final static String WIZARD_PAGE_ID = "org.eclipse.apogy.core.environment.earth.surface.ui.wizards.SunVector3DToolWizardPage";
private final SunVector3DTool sunVector3DTool;
private SunVector3DToolComposite sunVector3DToolComposite;
public SunVector3DToolWizardPage(SunVector3DTool sunVector3DTool) {
super(WIZARD_PAGE_ID);
this.sunVector3DTool = sunVector3DTool;
setTitle("Sun Vector 3D Tool");
setDescription("Configure the Sun Vector Tool settings.");
}
@Override
public void createControl(Composite parent) {
Composite container = new Composite(parent, SWT.None);
container.setLayout(new GridLayout(1, false));
this.sunVector3DToolComposite = new SunVector3DToolComposite(container, SWT.None);
this.sunVector3DToolComposite.setSunVector3DTool(this.sunVector3DTool);
this.sunVector3DToolComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
setControl(container);
this.sunVector3DToolComposite.setFocus();
setPageComplete(true);
}
}