From 0d3ab54f8c983e5c0b5ce0d354024268d323b6af Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 30 Oct 2018 10:32:27 +0000 Subject: [PATCH] JAL-3144 spelling, Javadoc, abstract method for JalviewJS --- src/jalview/fts/core/GFTSPanel.java | 7 ++++--- src/jalview/gui/SequenceFetcher.java | 5 ++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/jalview/fts/core/GFTSPanel.java b/src/jalview/fts/core/GFTSPanel.java index 557b713..4771601 100644 --- a/src/jalview/fts/core/GFTSPanel.java +++ b/src/jalview/fts/core/GFTSPanel.java @@ -592,7 +592,6 @@ public abstract class GFTSPanel extends JPanel implements GFTSPanelI txt_search.addActionListener(new ActionListener() { - @Override public void actionPerformed(ActionEvent e) { @@ -921,7 +920,7 @@ public abstract class GFTSPanel extends JPanel implements GFTSPanelI lbl_blank.setVisible(true); btn_ok.setEnabled(false); mainFrame.setTitle(getFTSFrameTitle()); - referesh(); + refresh(); tbl_summary.setModel(new DefaultTableModel()); tbl_summary.setVisible(false); } @@ -1058,9 +1057,11 @@ public abstract class GFTSPanel extends JPanel implements GFTSPanelI } } - public void referesh() + public void refresh() { mainFrame.setTitle(getFTSFrameTitle()); } + @Override + public abstract void okAction(); } diff --git a/src/jalview/gui/SequenceFetcher.java b/src/jalview/gui/SequenceFetcher.java index 8037fed..f9d7760 100755 --- a/src/jalview/gui/SequenceFetcher.java +++ b/src/jalview/gui/SequenceFetcher.java @@ -331,7 +331,7 @@ public class SequenceFetcher extends JPanel implements Runnable } /** - * Action on selected a database other than Uniprot or PDB is to enable or + * Action on selecting a database other than Uniprot or PDB is to enable or * disable 'Replace commas', and await input in the query field */ protected void otherSourceAction() @@ -340,8 +340,7 @@ public class SequenceFetcher extends JPanel implements Runnable { String eq = exampleAccession.getText(); // TODO this should be a property of the SequenceFetcher whether commas - // are and - // colons are allowed in the IDs... + // are allowed in the IDs... boolean enablePunct = !(eq != null && eq.indexOf(",") > -1); replacePunctuation.setEnabled(enablePunct); -- 1.7.10.2