blob: abde9d02ed144f1e223e1652ccec15b39bdfa28a [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:
<<<<<<< HEAD
* Pierre Allard - initial API and implementation
=======
* Pierre Allard - initial API and implementation
*
>>>>>>> refs/heads/eclipse_pa
* SPDX-License-Identifier: EPL-1.0
*******************************************************************************/
/**
* Wizard age used ton configure Geographic Coordinates.
*/
package org.eclipse.apogy.core.environment.earth.ui.wizards;
import org.eclipse.apogy.core.environment.earth.ui.SurfacePolygonWorldWindLayer;
import org.eclipse.apogy.core.environment.earth.ui.composites.SurfacePolygonWorldWindLayerComposite;
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 SurfacePolygonWorldWindLayerWizardPage extends WizardPage {
private final static String WIZARD_PAGE_ID = "org.eclipse.apogy.core.environment.earth.ui.wizards.SurfacePolygonWorldWindLayerWizardPage";
private final SurfacePolygonWorldWindLayer surfacePolygonWorldWindLayer;
private SurfacePolygonWorldWindLayerComposite surfacePolygonWorldWindLayerComposite;
public SurfacePolygonWorldWindLayerWizardPage(SurfacePolygonWorldWindLayer surfacePolygonWorldWindLayer) {
super(WIZARD_PAGE_ID);
this.surfacePolygonWorldWindLayer = surfacePolygonWorldWindLayer;
setTitle("Layer graphical attributes.");
setDescription("The layer graphicalm attributes.");
validate();
}
@Override
public void createControl(Composite parent) {
Composite top = new Composite(parent, SWT.None);
top.setLayout(new GridLayout(1, false));
this.surfacePolygonWorldWindLayerComposite = new SurfacePolygonWorldWindLayerComposite(top, SWT.NONE);
this.surfacePolygonWorldWindLayerComposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
this.surfacePolygonWorldWindLayerComposite.setSurfacePolygonWorldWindLayer(this.surfacePolygonWorldWindLayer);
setControl(top);
this.surfacePolygonWorldWindLayerComposite.setFocus();
}
protected void validate() {
setErrorMessage(null);
setPageComplete(getErrorMessage() == null);
}
}