Project

General

Profile

Download (1.63 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy 
5
* http://www.e-taxonomy.eu
6
* 
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

    
11
package eu.etaxonomy.taxeditor.ui.translation;
12

    
13
import org.eclipse.jface.wizard.WizardPage;
14
import org.eclipse.swt.SWT;
15
import org.eclipse.swt.custom.SashForm;
16
import org.eclipse.swt.widgets.Composite;
17
import org.eclipse.swt.widgets.Display;
18

    
19
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
20
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
21

    
22
/**
23
 * <p>TranslationMetaDataWizardPage class.</p>
24
 *
25
 * @author n.hoffmann
26
 * @created Sep 29, 2010
27
 * @version 1.0
28
 */
29
public class TranslationMetaDataWizardPage extends WizardPage {
30

    
31
	private CdmFormFactory formFactory;
32

    
33
	/**
34
	 * <p>Constructor for TranslationMetaDataWizardPage.</p>
35
	 */
36
	protected TranslationMetaDataWizardPage() {
37
		super("TranslationMetaDataWizardPage");
38
		setTitle("See information about existing translations");
39
				
40
		formFactory = new CdmFormFactory(Display.getCurrent());
41
	}
42
	
43
	/* (non-Javadoc)
44
	 * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
45
	 */
46
	/** {@inheritDoc} */
47
	@Override
48
	public void createControl(Composite parent) {
49
		Composite control = formFactory.createComposite(parent);
50
//		control.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_GREEN));
51
		control.setLayout(LayoutConstants.LAYOUT(1, false));
52
		SashForm sash = new SashForm(control, SWT.HORIZONTAL);
53
		sash.setLayoutData(LayoutConstants.FILL());
54
		
55
		setControl(control);
56
	}
57
}
(5-5/7)