Refactoring of selection elements. Additional minor refactoring. Fixed a bug with...
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / openurl / OpenUrlReferencePage.java
index d160ba2558b0192d99c8bd5538005e4a94bb60c9..9553a371987a93b830a462569334993ae54067a7 100644 (file)
@@ -27,8 +27,8 @@ import org.eclipse.ui.forms.widgets.ScrolledForm;
 
 import eu.etaxonomy.cdm.ext.openurl.OpenUrlReference;
 import eu.etaxonomy.taxeditor.store.StoreUtil;
-import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.ImageElement;
+import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
 import eu.etaxonomy.taxeditor.ui.element.RootElement;
 
 /**
@@ -49,8 +49,6 @@ public class OpenUrlReferencePage extends WizardPage implements SelectionListene
        private Button button_next;
        private Button button_previous;
 
-       private OpenUrlReference reference;
-
        private Composite container;
 
        private Label label_pageNumber; 
@@ -73,7 +71,7 @@ public class OpenUrlReferencePage extends WizardPage implements SelectionListene
                container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
                
                scrolledForm = getWizard().getFormFactory().createScrolledForm(container);
-               scrolledForm.getBody().setLayout(CdmFormFactory.LAYOUT(3, false));
+               scrolledForm.getBody().setLayout(LayoutConstants.LAYOUT(3, false));
                scrolledForm.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true));
                
                Composite buttonContainer = getWizard().getFormFactory().createComposite(container);
@@ -91,7 +89,7 @@ public class OpenUrlReferencePage extends WizardPage implements SelectionListene
                button_next.addSelectionListener(this);
                button_next.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));
                
-               scrolledForm.getBody().setLayoutData(CdmFormFactory.FILL());
+               scrolledForm.getBody().setLayoutData(LayoutConstants.FILL());
                
                rootElement = new RootElement(getWizard().getFormFactory(), scrolledForm.getBody());