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

comment cache size code

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@5734 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 42c08ef2
No related branches found
No related tags found
No related merge requests found
......@@ -71,6 +71,7 @@ public class BigPane extends JFrame
protected static JInternalFrame srsFrame;
protected static JCheckBox addNote = new JCheckBox("Add Note");
protected static int CACHE_SIZE = 100;
private JTextArea qualifier;
private DataViewInternalFrame dataView;
//private FeatureVector overlapFeature;
......@@ -307,6 +308,33 @@ public class BigPane extends JFrame
buttGroup.add(liveDrag);
buttGroup.add(outlineDrag);
// cache size
/*final JMenuItem cacheMenu = new JMenuItem("Cache Size");
cacheMenu.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
JTextField cacheSize = new JTextField(Integer.toString(CACHE_SIZE));
int select = JOptionPane.showConfirmDialog(BigPane.this,
cacheSize, "Cache Size",
JOptionPane.OK_CANCEL_OPTION);
if(select == JOptionPane.CANCEL_OPTION)
return;
CACHE_SIZE = Integer.parseInt(cacheSize.getText());
HitInfo[] cacheHits = FastaTextPane.cacheHits;
FastaTextPane.cacheHits = new HitInfo[CACHE_SIZE];
for(int i=0; i<cacheHits.length; i++)
{
if(i >= FastaTextPane.cacheHits.length)
break;
FastaTextPane.cacheHits[i] = cacheHits[i];
}
}
});
optionMenu.add(cacheMenu);*/
return menuBar;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment