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

fix QualifierChoice

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@6207 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 058a3deb
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/ListSelectionPanel.java,v 1.4 2007-03-28 11:56:35 tjc Exp $ * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/ListSelectionPanel.java,v 1.5 2007-07-09 13:03:45 tjc Exp $
*/ */
package uk.ac.sanger.artemis.components; package uk.ac.sanger.artemis.components;
...@@ -39,6 +39,7 @@ import javax.swing.JPanel; ...@@ -39,6 +39,7 @@ import javax.swing.JPanel;
import javax.swing.JScrollPane; import javax.swing.JScrollPane;
import uk.ac.sanger.artemis.EntryGroup; import uk.ac.sanger.artemis.EntryGroup;
import uk.ac.sanger.artemis.io.GFFDocumentEntry;
class ListSelectionPanel extends JPanel class ListSelectionPanel extends JPanel
{ {
...@@ -125,8 +126,11 @@ class ListSelectionPanel extends JPanel ...@@ -125,8 +126,11 @@ class ListSelectionPanel extends JPanel
add(bdown, BorderLayout.CENTER); add(bdown, BorderLayout.CENTER);
boolean isGFF = false;
if(entry_group.getDefaultEntry().getEMBLEntry() instanceof GFFDocumentEntry)
isGFF = true;
final QualifierChoice qualifier_choice = new QualifierChoice( final QualifierChoice qualifier_choice = new QualifierChoice(
entry_group.elementAt(0).getEntryInformation(), null, null); entry_group.elementAt(0).getEntryInformation(), null, null, isGFF);
JButton add_butt = new JButton("ADD"); JButton add_butt = new JButton("ADD");
add_butt.addActionListener(new ActionListener() add_butt.addActionListener(new ActionListener()
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/QualifierEditor.java,v 1.4 2005-02-17 10:36:28 tjc Exp $ * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/components/QualifierEditor.java,v 1.5 2007-07-09 13:07:38 tjc Exp $
*/ */
package uk.ac.sanger.artemis.components; package uk.ac.sanger.artemis.components;
...@@ -28,6 +28,7 @@ package uk.ac.sanger.artemis.components; ...@@ -28,6 +28,7 @@ package uk.ac.sanger.artemis.components;
import uk.ac.sanger.artemis.*; import uk.ac.sanger.artemis.*;
import uk.ac.sanger.artemis.util.ReadOnlyException; import uk.ac.sanger.artemis.util.ReadOnlyException;
import uk.ac.sanger.artemis.io.GFFDocumentEntry;
import uk.ac.sanger.artemis.io.Qualifier; import uk.ac.sanger.artemis.io.Qualifier;
import uk.ac.sanger.artemis.io.QualifierInfo; import uk.ac.sanger.artemis.io.QualifierInfo;
import uk.ac.sanger.artemis.io.QualifierVector; import uk.ac.sanger.artemis.io.QualifierVector;
...@@ -46,7 +47,7 @@ import javax.swing.*; ...@@ -46,7 +47,7 @@ import javax.swing.*;
* features at once. * features at once.
* *
* @author Kim Rutherford <kmr@sanger.ac.uk> * @author Kim Rutherford <kmr@sanger.ac.uk>
* @version $Id: QualifierEditor.java,v 1.4 2005-02-17 10:36:28 tjc Exp $ * @version $Id: QualifierEditor.java,v 1.5 2007-07-09 13:07:38 tjc Exp $
**/ **/
public class QualifierEditor extends JFrame { public class QualifierEditor extends JFrame {
...@@ -69,8 +70,11 @@ public class QualifierEditor extends JFrame { ...@@ -69,8 +70,11 @@ public class QualifierEditor extends JFrame {
setFont (font); setFont (font);
boolean isGFF = false;
if(entry_group.getDefaultEntry().getEMBLEntry() instanceof GFFDocumentEntry)
isGFF = true;
final QualifierChoice qualifier_choice = final QualifierChoice qualifier_choice =
new QualifierChoice (entry_information, first_feature.getKey (), null); new QualifierChoice (entry_information, first_feature.getKey (), null, isGFF);
final JPanel outer_qualifier_choice_panel = new JPanel (); final JPanel outer_qualifier_choice_panel = new JPanel ();
final JPanel qualifier_choice_panel = new JPanel (); final JPanel qualifier_choice_panel = new JPanel ();
......
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