Project

General

Profile

Revision fd29bcac

IDfd29bcac2ad193891b8442612222c1124c645a37
Parent 63f3c747
Child f8485a00

Added by Katja Luther over 3 years ago

ref #6315: add message that if no reference is chosen the sec references are deleted

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/Messages.java
158 158
    public static String SetSecundumConfiguration_EmptySecundumDetail;
159 159
    public static String SetSecundumConfiguration_IncludeSharedtaxa;
160 160
    public static String SetSecundumConfiguration_NewSecundum_Label;
161
    public static String SetSecundumConfiguration_Description;
161 162

  
162 163
    public static String DatabasePreferncesPage_Is_redList;
163 164
    public static String DatabasePreferncesPage_Determination_only_for_field_unnits;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages.properties
151 151
SetSecundumConfiguration_EmptySecundumDetail=empty existing details
152 152
SetSecundumConfiguration_IncludeSharedtaxa=include shared taxa
153 153
SetSecundumConfiguration_NewSecundum_Label=new secundum reference
154
SetSecundumConfiguration_Description=If no reference is chosen existing secundum references are deleted
154 155

  
155 156
DatabasePreferncesPage_Is_redList=Red List 2020
156 157
DatabasePreferncesPage_Determination_only_for_field_unnits=Determinations only for field units
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/l10n/messages_de.properties
149 149
SetSecundumConfiguration_EmptySecundumDetail=bestehende Details von Secundum Referenzen l?schen
150 150
SetSecundumConfiguration_IncludeSharedtaxa=auch mehrfach verwendete Taxa mit einbeziehen
151 151
SetSecundumConfiguration_NewSecundum_Label=neue Secundum Referenz
152
SetSecundumConfiguration_Description=Wenn keine Referenz ausgew?hlt wird, werden die bestehenden Secundum Referenzen gel?scht
152 153

  
153 154
DatabasePreferncesPage_Is_redList=Rote Liste 2020
154 155
DatabasePreferncesPage_Determination_only_for_field_unnits=Determinations nur f?r Field Units
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/SetSecundumConfiguratorWizardPage.java
24 24
import org.eclipse.swt.widgets.Label;
25 25
import org.eclipse.swt.widgets.Listener;
26 26
import org.eclipse.swt.widgets.Text;
27
import org.eclipse.ui.forms.widgets.FormToolkit;
28 27
import org.eclipse.wb.swt.ResourceManager;
29 28

  
30 29
import eu.etaxonomy.cdm.api.service.config.SetSecundumForSubtreeConfigurator;
......
32 31
import eu.etaxonomy.taxeditor.l10n.Messages;
33 32
import eu.etaxonomy.taxeditor.ui.dialog.selection.SelectionDialogFactory;
34 33
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
34
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
35 35

  
36 36
/**
37 37
 * @author k.luther
38 38
 * @date 10.02.2017
39 39
 *
40 40
 */
41
public class SetSecundumConfiguratorWizardPage extends WizardPage implements Listener{
41
public class SetSecundumConfiguratorWizardPage extends WizardPage implements Listener {
42 42
    private DataBindingContext m_bindingContext;
43 43

  
44
    private final FormToolkit toolkit = new CdmFormFactory(Display.getCurrent());
44
    private final static CdmFormFactory toolkit = new CdmFormFactory(Display.getCurrent());
45 45
    private final SetSecundumForSubtreeConfigurator configurator;
46 46

  
47 47
    private  Button btnBrowseReference = null;
48 48
    private  Text textReference = null;
49 49
    private  Button btnClear = null;
50

  
50
    private EntitySelectionElement<Reference> selectReference;
51 51
    private  Button btnIncludeAcceptedTaxa;
52 52
    private Button btnIncludeSynonyms;
53 53
    private Button btnOverwriteExistingAccepted;
......
64 64
    public SetSecundumConfiguratorWizardPage(SetSecundumForSubtreeConfigurator configurator, Wizard parent, int style ) {
65 65
        super("Set Secundum Reference Configuration");
66 66
        this.configurator = configurator;
67
        this.setDescription(Messages.SetSecundumConfiguration_Description);
67 68

  
68 69
//        addDisposeListener(new DisposeListener() {
69 70
//            @Override
......
130 131
        compositeRef.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, true));
131 132
        Label label = new Label(compositeRef, SWT.NONE);
132 133
        label.setText(Messages.SetSecundumConfiguration_NewSecundum_Label);
133
        //label.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, false));
134
       label.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, false));
134 135

  
135 136
        textReference = new Text(compositeRef, SWT.BORDER);
136 137
        textReference.setEditable(false);
......
144 145
        btnClear.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/trash.gif"));
145 146
        btnClear.addListener(SWT.Selection, this);
146 147

  
148
       // selectReference = toolkit.createSelectionElement(Rights.class, getConversationHolder(), composite, "Rights", null, EntitySelectionElement.SELECTABLE);
147 149
        final Composite control = new Composite(composite, SWT.NULL);
148 150
        GridLayout gridLayoutControl = new GridLayout();
149 151
        gridLayoutControl.numColumns = 1;
......
237 239

  
238 240
    }
239 241

  
242
//    /**
243
//     * {@inheritDoc}
244
//     */
245
//    @Override
246
//    public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) {
247
//        // TODO Auto-generated method stub
248
//        return null;
249
//    }
250

  
240 251

  
241 252

  
242 253

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)