Project

General

Profile

« Previous | Next » 

Revision bcb823d5

Added by Ben Stöver over 7 years ago

Missing dependency Apache commons.lang added to molecular.lib.
Single read alignment export feature now makes use of wizard. (Selecting which sequences to export is not yet supported.)

View differences:

eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/io/wizard/ExportSingleReadAlignmentWizardPage.java
14 14
import info.bioinfweb.jphyloio.factory.JPhyloIOReaderWriterFactory;
15 15
import info.bioinfweb.jphyloio.formatinfo.JPhyloIOFormatInfo;
16 16

  
17
import java.io.File;
17 18
import java.util.ArrayList;
18 19
import java.util.Collections;
19 20
import java.util.List;
......
158 159
        btnBrowse.setLayoutData(fd_btnBrowse);
159 160
        btnBrowse.setText("Browse...");
160 161

  
161
        formatComboBox = new Combo(container, SWT.NONE);
162
        formatComboBox = new Combo(container, SWT.READ_ONLY);
162 163
        for (JPhyloIOFormatInfo formatInfo : FORMATS) {
163 164
            formatComboBox.add(formatInfo.getFormatName());
164 165
        }
......
168 169
        fd_formatComboBox.top = new FormAttachment(lblFormat, 6);
169 170
        fd_formatComboBox.left = new FormAttachment(exportSingleReadsCB, 0, SWT.LEFT);
170 171
        formatComboBox.setLayoutData(fd_formatComboBox);
172
        formatComboBox.select(0);
171 173
    }
172 174

  
173 175

  
......
180 182
        if (formatComboBox != null) {
181 183
            int index = formatComboBox.getSelectionIndex();
182 184
            if (index > -1) {
183
                FORMATS.get(index).getFormatID();
185
                return FORMATS.get(index).getFormatID();
184 186
            }
185 187
        }
186 188
        return null;
187 189
    }
190

  
191

  
192
    public File getSelectedFile() {
193
        if (fileTextField !=  null) {
194
            return new File(fileTextField.getText());
195
        }
196
        else {
197
            return null;
198
        }
199
    }
200

  
201

  
202
    public String getConsensusSequenceLabel() {
203
        if (consensusSequenceNameTextField != null) {
204
            return consensusSequenceNameTextField.getText();
205
        }
206
        else {
207
            return null;
208
        }
209
    }
188 210
}

Also available in: Unified diff