Project

General

Profile

« Previous | Next » 

Revision 5d69e246

Added by Katja Luther almost 7 years ago

fix #6315: remaining issues of set secundum reference integration

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/configurator/SetSecundumConfiguratorWizardPage.java
45 45
    private final SetSecundumForSubtreeConfigurator configurator;
46 46

  
47 47
    private  Button btnBrowseReference = null;
48
   
48 49
    private  Text textReference = null;
49 50
    private  Button btnClear = null;
50 51
    private EntitySelectionElement<Reference> selectReference;
......
64 65
    public SetSecundumConfiguratorWizardPage(SetSecundumForSubtreeConfigurator configurator, Wizard parent, int style ) {
65 66
        super("Set Secundum Reference Configuration");
66 67
        this.configurator = configurator;
67
        this.setDescription(Messages.SetSecundumConfiguration_Description);
68
        this.setDescription(Messages.SetSecundumConfiguration_Description_Configurator);
68 69

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

  
136 137
        textReference = new Text(compositeRef, SWT.BORDER);
137 138
        textReference.setEditable(false);
......
141 142
        btnBrowseReference = new Button(compositeRef, SWT.NONE);
142 143
        btnBrowseReference.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/open.gif"));
143 144
        btnBrowseReference.addListener(SWT.Selection, this);
145
       
144 146
        btnClear = new Button(compositeRef, SWT.NONE);
145 147
        btnClear.setImage(ResourceManager.getPluginImage("eu.etaxonomy.taxeditor.store", "icons/trash.gif"));
146 148
        btnClear.addListener(SWT.Selection, this);
147

  
149
        Label labelDescription = new Label(compositeRef, SWT.NONE);
150
        labelDescription.setText(Messages.SetSecundumConfiguration_Description);
151
        GridData gd_labelDescription = new GridData(SWT.FILL, SWT.LEFT, true, false);
152
        gd_labelDescription.horizontalSpan = 4;
153
        labelDescription.setLayoutData(gd_labelDescription);
154
        new Label(compositeRef, SWT.NONE);
155
        new Label(compositeRef, SWT.NONE);
156
        new Label(compositeRef, SWT.NONE);
157
        
148 158
       // selectReference = toolkit.createSelectionElement(Rights.class, getConversationHolder(), composite, "Rights", null, EntitySelectionElement.SELECTABLE);
149 159
        final Composite control = new Composite(composite, SWT.NULL);
150 160
        GridLayout gridLayoutControl = new GridLayout();
151
        gridLayoutControl.numColumns = 1;
152 161

  
153 162
        control.setLayout(gridLayoutControl);
154 163
        control.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, true));
......
175 184
        });
176 185

  
177 186
        btnOverwriteExistingAccepted = new Button(control, SWT.CHECK);
187
        GridData gd_btnOverwriteExistingAccepted = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
188
        gd_btnOverwriteExistingAccepted.horizontalIndent = 10;
189
        btnOverwriteExistingAccepted.setLayoutData(gd_btnOverwriteExistingAccepted);
178 190
        btnOverwriteExistingAccepted.setText(Messages.SetSecundumConfiguration_OverwriteExistingAccepted);
191
        
192
                btnIncludeSharedTaxa = new Button(control, SWT.CHECK);
193
                GridData gd_btnIncludeSharedTaxa = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
194
                gd_btnIncludeSharedTaxa.horizontalIndent = 10;
195
                btnIncludeSharedTaxa.setLayoutData(gd_btnIncludeSharedTaxa);
196
                btnIncludeSharedTaxa.setText(Messages.SetSecundumConfiguration_IncludeSharedtaxa);
197
                btnIncludeSharedTaxa.setSelection(configurator.isIncludeSharedTaxa());
179 198

  
180 199
        btnIncludeSynonyms = new Button(control, SWT.CHECK);
181 200
        btnIncludeSynonyms.setText(Messages.SetSecundumConfiguration_IncludeSynonyms);
......
200 219

  
201 220
        btnOverwriteExistingAccepted.setSelection(configurator.isOverwriteExistingAccepted());
202 221
        btnOverwriteExistingSynonyms = new Button(control, SWT.CHECK);
222
        GridData gd_btnOverwriteExistingSynonyms = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);
223
        gd_btnOverwriteExistingSynonyms.horizontalIndent = 10;
224
        btnOverwriteExistingSynonyms.setLayoutData(gd_btnOverwriteExistingSynonyms);
203 225
        btnOverwriteExistingSynonyms.setText(Messages.SetSecundumConfiguration_OverwriteExistingSynonyms);
204 226
        btnOverwriteExistingSynonyms.setSelection(configurator.isOverwriteExistingSynonyms());
205 227
        btnEmptySecundumDetail = new Button(control, SWT.CHECK);
206 228
        btnEmptySecundumDetail.setText(Messages.SetSecundumConfiguration_EmptySecundumDetail);
207 229
        btnEmptySecundumDetail.setSelection(configurator.isEmptySecundumDetail());
208 230

  
209
        btnIncludeSharedTaxa = new Button(control, SWT.CHECK);
210
        btnIncludeSharedTaxa.setText(Messages.SetSecundumConfiguration_IncludeSharedtaxa);
211
        btnIncludeSharedTaxa.setSelection(configurator.isIncludeSharedTaxa());
212

  
213 231
        m_bindingContext = initDataBindings();
214 232
        setControl(composite);
215 233
    }

Also available in: Unified diff