1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.modeling.ui.utils;
14 import org.eclipse.jface.wizard.WizardPage;
15 import org.eclipse.swt.SWT;
16 import org.eclipse.swt.layout.GridLayout;
17 import org.eclipse.swt.widgets.Composite;
20 * @author Tuukka Lehtonen
22 public class NoProjectPage extends WizardPage {
24 public NoProjectPage(String pageName) {
25 super(pageName, "No project open", null);
29 public void createControl(Composite parent) {
30 Composite container = new Composite(parent, SWT.NONE);
32 GridLayout layout = new GridLayout();
33 layout.horizontalSpacing = 20;
34 layout.verticalSpacing = 10;
35 layout.numColumns = 1;
36 container.setLayout(layout);
39 setErrorMessage("No project is open, unable to export.");
41 setControl(container);
42 setPageComplete(false);