3 * Copyright (C) 2016 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.ui
;
12 import org
.eclipse
.jface
.util
.IPropertyChangeListener
;
13 import org
.eclipse
.jface
.wizard
.WizardPage
;
14 import org
.eclipse
.swt
.widgets
.Composite
;
15 import org
.eclipse
.ui
.forms
.widgets
.TableWrapLayout
;
17 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
18 import eu
.etaxonomy
.taxeditor
.ui
.element
.LayoutConstants
;
19 import eu
.etaxonomy
.taxeditor
.ui
.element
.RootElement
;
26 public abstract class AbstractEntityCollectionElementWizardPage
extends WizardPage
implements
27 IPropertyChangeListener
{
29 protected CdmFormFactory formFactory
;
31 protected RootElement rootElement
;
33 protected AbstractEntityCollectionElementWizardPage(String pageName
) {
41 public void createControl(Composite parent
) {
42 this.setPageComplete(false);
44 Composite control
= formFactory
.createComposite(parent
);
46 TableWrapLayout layout
= LayoutConstants
.LAYOUT(2, false);
47 layout
.horizontalSpacing
= 5;
48 control
.setLayout(layout
);
50 rootElement
= new RootElement(formFactory
, control
);
59 public void dispose() {
60 rootElement
.removeElements();
61 formFactory
.removePropertyChangeListener(this);