Draft for ExportSingleReadAlignmentWizard added.
eu.etaxonomy.taxeditor.cdmlib/build.properties merge=ours
eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/handler/ExportSequenceToFileHandler.java -text
eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/io/CDMSequenceMatrixAdapter.java -text
-eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/io/ExportSingleReadAlignmentWizardPage.java -text
eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/io/SequenceIDIterator.java -text
+eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/io/wizard/ExportSingleReadAlignmentWizard.java -text
+eu.etaxonomy.taxeditor.molecular/src/main/java/eu/etaxonomy/taxeditor/molecular/io/wizard/ExportSingleReadAlignmentWizardPage.java -text
eu.etaxonomy.taxeditor.molecular/src/test/java/eu/etaxonomy/taxeditor/molecular/io/SequenceIDIteratorTest.java -text
eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product merge=ours
eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product.with.jre merge=ours
!src/test/.directory
!src/test/hibernate.log
!src/test/.settings
+!src/main/java/eu/etaxonomy/taxeditor/molecular/io/wizard/.project
+!src/main/java/eu/etaxonomy/taxeditor/molecular/io/wizard/integration-test.log
+!src/main/java/eu/etaxonomy/taxeditor/molecular/io/wizard/target
+!src/main/java/eu/etaxonomy/taxeditor/molecular/io/wizard/.directory
+!src/main/java/eu/etaxonomy/taxeditor/molecular/io/wizard/hibernate.log
+!src/main/java/eu/etaxonomy/taxeditor/molecular/io/wizard/.settings
import info.bioinfweb.jphyloio.dataadapters.ObjectListDataAdapter;\r
import info.bioinfweb.jphyloio.dataadapters.implementations.NoCharDefsNoSetsMatrixDataAdapter;\r
import info.bioinfweb.jphyloio.dataadapters.implementations.readtowriteadapter.StoreObjectListDataAdapter;\r
+import info.bioinfweb.jphyloio.events.CharacterSetIntervalEvent;\r
import info.bioinfweb.jphyloio.events.LinkedLabeledIDEvent;\r
import info.bioinfweb.jphyloio.events.SequenceTokensEvent;\r
import info.bioinfweb.jphyloio.events.TokenSetDefinitionEvent;\r
\r
private ObjectListDataAdapter<TokenSetDefinitionEvent> createTokenSetList() {\r
StoreObjectListDataAdapter<TokenSetDefinitionEvent> result = new StoreObjectListDataAdapter<TokenSetDefinitionEvent>();\r
- result.setObjectStartEvent(new TokenSetDefinitionEvent(CharacterStateSetType.DNA,\r
- ReadWriteConstants.DEFAULT_TOKEN_SET_ID_PREFIX, null));\r
+ final String id = ReadWriteConstants.DEFAULT_TOKEN_SET_ID_PREFIX;\r
+ result.setObjectStartEvent(new TokenSetDefinitionEvent(CharacterStateSetType.DNA, id, null));\r
+ result.getObjectContent(id).add(new CharacterSetIntervalEvent(0, getColumnCount(null))); //TODO Change this expression, if column count should return -1 in the future.\r
return result;\r
}\r
\r
public LinkedLabeledIDEvent getSequenceStartEvent(ReadWriteParameterMap parameters, String sequenceID) {\r
int singleReadIndex = extractSingleReadIndexFromID(sequenceID);\r
if (singleReadIndex >= 0) {\r
- return new LinkedLabeledIDEvent(EventContentType.SEQUENCE, sequenceID, "singleRead" + singleReadIndex, null);\r
+ return new LinkedLabeledIDEvent(EventContentType.SEQUENCE, sequenceID, "Single read " + singleReadIndex, null);\r
//TODO Use name displayed in derivate hierarchy or specified name as label instead?\r
}\r
else if (CONSENSUS_SEQUENCE_ID.equals(sequenceID)) {\r
--- /dev/null
+// $Id$\r
+/**\r
+* Copyright (C) 2016 EDIT\r
+* European Distributed Institute of Taxonomy\r
+* http://www.e-taxonomy.eu\r
+*\r
+* The contents of this file are subject to the Mozilla Public License Version 1.1\r
+* See LICENSE.TXT at the top of this package for the full license terms.\r
+*/\r
+package eu.etaxonomy.taxeditor.molecular.io.wizard;\r
+\r
+\r
+import org.eclipse.jface.wizard.Wizard;\r
+\r
+\r
+\r
+/**\r
+ * A wizard to export a single read alignment from <i>CDM</i> using <i>JPhyloIO</i>.\r
+ *\r
+ * @author Ben Stöver\r
+ * @date 23.06.2016\r
+ */\r
+public class ExportSingleReadAlignmentWizard extends Wizard {\r
+ public ExportSingleReadAlignmentWizard() {\r
+ setWindowTitle("Export single read alignment"); //TODO Use multi languange message\r
+ }\r
+\r
+\r
+ @Override\r
+ public void addPages() {\r
+ addPage(new ExportSingleReadAlignmentWizardPage());\r
+ }\r
+\r
+\r
+ @Override\r
+ public boolean performFinish() {\r
+ return true; //TODO Check inputs\r
+ }\r
+}\r
* The contents of this file are subject to the Mozilla Public License Version 1.1\r
* See LICENSE.TXT at the top of this package for the full license terms.\r
*/\r
-package eu.etaxonomy.taxeditor.molecular.io;\r
+package eu.etaxonomy.taxeditor.molecular.io.wizard;\r
\r
\r
import org.eclipse.jface.wizard.WizardPage;\r