import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Text;
-import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.wb.swt.ResourceManager;
import eu.etaxonomy.cdm.api.service.config.SetSecundumForSubtreeConfigurator;
import eu.etaxonomy.taxeditor.l10n.Messages;
import eu.etaxonomy.taxeditor.ui.dialog.selection.SelectionDialogFactory;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
+import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
/**
* @author k.luther
* @date 10.02.2017
*
*/
-public class SetSecundumConfiguratorWizardPage extends WizardPage implements Listener{
+public class SetSecundumConfiguratorWizardPage extends WizardPage implements Listener {
private DataBindingContext m_bindingContext;
- private final FormToolkit toolkit = new CdmFormFactory(Display.getCurrent());
+ private final static CdmFormFactory toolkit = new CdmFormFactory(Display.getCurrent());
private final SetSecundumForSubtreeConfigurator configurator;
private Button btnBrowseReference = null;
private Text textReference = null;
private Button btnClear = null;
-
+ private EntitySelectionElement<Reference> selectReference;
private Button btnIncludeAcceptedTaxa;
private Button btnIncludeSynonyms;
private Button btnOverwriteExistingAccepted;
public SetSecundumConfiguratorWizardPage(SetSecundumForSubtreeConfigurator configurator, Wizard parent, int style ) {
super("Set Secundum Reference Configuration");
this.configurator = configurator;
+ this.setDescription(Messages.SetSecundumConfiguration_Description);
// addDisposeListener(new DisposeListener() {
// @Override
compositeRef.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, true));
Label label = new Label(compositeRef, SWT.NONE);
label.setText(Messages.SetSecundumConfiguration_NewSecundum_Label);
- //label.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, false));
+ label.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, false));
textReference = new Text(compositeRef, SWT.BORDER);
textReference.setEditable(false);
btnClear.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/trash.gif"));
btnClear.addListener(SWT.Selection, this);
+ // selectReference = toolkit.createSelectionElement(Rights.class, getConversationHolder(), composite, "Rights", null, EntitySelectionElement.SELECTABLE);
final Composite control = new Composite(composite, SWT.NULL);
GridLayout gridLayoutControl = new GridLayout();
gridLayoutControl.numColumns = 1;
}
+// /**
+// * {@inheritDoc}
+// */
+// @Override
+// public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) {
+// // TODO Auto-generated method stub
+// return null;
+// }
+