Skip to content
Snippets Groups Projects
Commit 996efe87 authored by tjc's avatar tjc
Browse files

throw exception when editing indexed sequence

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@14921 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 6ce69cf4
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ import uk.ac.sanger.artemis.io.Entry;
import uk.ac.sanger.artemis.Options;
import uk.ac.sanger.artemis.components.EntryFileDialog;
import uk.ac.sanger.artemis.util.FileDocument;
import uk.ac.sanger.artemis.util.ReadOnlyException;
import uk.ac.sanger.artemis.util.URLDocument;
public class IndexFastaStream extends StreamSequence
......@@ -189,6 +190,13 @@ public class IndexFastaStream extends StreamSequence
{
return StreamSequenceFactory.INDEXED_FASTA_FORMAT;
}
public void setFromChar(final char dna[])
{
JOptionPane.showMessageDialog(null,"Read only sequence.",
"Warning", JOptionPane.WARNING_MESSAGE);
throw new RuntimeException(new ReadOnlyException());
}
@Override
public void writeToStream(Writer writer) throws IOException
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment