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

fix for read entry in

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@8379 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 5c5c3ca5
No related branches found
No related tags found
No related merge requests found
......@@ -1010,7 +1010,7 @@ public class DNADraw extends ScrollPanel
{
public void actionPerformed(ActionEvent e)
{
Wizard.readEntry(DNADraw.this);
Wizard.readEntry(DNADraw.this, getBases());
viewer.refresh();
repaint();
}
......
......@@ -44,6 +44,7 @@ import uk.ac.sanger.artemis.Options;
import uk.ac.sanger.artemis.SimpleEntryGroup;
import uk.ac.sanger.artemis.io.Range;
import uk.ac.sanger.artemis.io.RangeVector;
import uk.ac.sanger.artemis.sequence.Bases;
import uk.ac.sanger.artemis.sequence.NoSequenceException;
import uk.ac.sanger.artemis.util.OutOfRangeException;
......@@ -271,7 +272,8 @@ public class Wizard
protected static DNADraw readEntry(final DNADraw dna_current)
protected static DNADraw readEntry(final DNADraw dna_current,
final Bases bases)
{
Options.getOptions();
uk.ac.sanger.artemis.components.FileDialogEntrySource entrySource =
......@@ -279,7 +281,7 @@ public class Wizard
try
{
final Entry entry = entrySource.getEntry(true);
final Entry entry = entrySource.getEntry(bases,true);
dna_current.getArtemisEntryGroup().add(entry);
FeatureVector features = entry.getAllFeatures();
......@@ -313,14 +315,12 @@ public class Wizard
}
catch(OutOfRangeException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
catch(NoSequenceException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
JOptionPane.showMessageDialog(null,
"Feature found out of range:\n"+
e.getMessage(),"Out of Range",
JOptionPane.WARNING_MESSAGE);
}
return dna_current;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment