Project

General

Profile

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

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

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

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

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

    
30
	private CdmFormFactory formFactory;
31

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