Project

General

Profile

Download (1.62 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

    
18
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.swt.widgets.DisplayProxy;
19
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
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(DisplayProxy.getDefault());
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(DisplayProxy.getDefault().getSystemColor(SWT.COLOR_GREEN));
50
		control.setLayout(CdmFormFactory.LAYOUT(1, false));
51
		SashForm sash = new SashForm(control, SWT.HORIZONTAL);
52
		sash.setLayoutData(CdmFormFactory.FILL());
53
		
54
		setControl(control);
55
	}
56
}
(4-4/6)