From b1613533d44e86c95bb2ae1e1428330b314df1f6 Mon Sep 17 00:00:00 2001 From: hansonr Date: Mon, 8 Apr 2019 23:38:21 -0500 Subject: [PATCH] code formatting only --- .../fts/service/uniprot/UniProtFTSRestClient.java | 5 +- src/jalview/gui/FeatureSettings.java | 158 ++++++++++---------- 2 files changed, 85 insertions(+), 78 deletions(-) diff --git a/src/jalview/fts/service/uniprot/UniProtFTSRestClient.java b/src/jalview/fts/service/uniprot/UniProtFTSRestClient.java index ae8f6e5..3f0b8a4 100644 --- a/src/jalview/fts/service/uniprot/UniProtFTSRestClient.java +++ b/src/jalview/fts/service/uniprot/UniProtFTSRestClient.java @@ -47,10 +47,11 @@ public class UniProtFTSRestClient extends FTSRestClient { private static final String DEFAULT_UNIPROT_DOMAIN = "https://www.uniprot.org"; - static { + static + { Platform.addJ2SDirectDatabaseCall(DEFAULT_UNIPROT_DOMAIN); } - + private static FTSRestClientI instance = null; public final String uniprotSearchEndpoint; diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index 872fe15..f81ecce 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -131,7 +131,8 @@ public class FeatureSettings extends JPanel private static final int MIN_HEIGHT = 400; - private final static String BASE_TOOLTIP = MessageManager.getString("label.click_to_edit"); + private final static String BASE_TOOLTIP = MessageManager + .getString("label.click_to_edit"); final FeatureRenderer fr; @@ -231,10 +232,9 @@ public class FeatureSettings extends JPanel default: break; } - + return tip; } - /** * Position the tooltip near the bottom edge of, and half way across, the @@ -261,7 +261,7 @@ public class FeatureSettings extends JPanel table.setDefaultEditor(FeatureMatcherSet.class, new FilterEditor()); table.setDefaultRenderer(FeatureMatcherSet.class, new FilterRenderer()); - + TableColumn colourColumn = new TableColumn(COLOUR_COLUMN, 75, new ColorRenderer(), new ColorEditor()); table.addColumn(colourColumn); @@ -385,15 +385,15 @@ public class FeatureSettings extends JPanel inConstruction = false; } - /** - * Constructs and shows a popup menu of possible actions on the selected row and - * feature type - * - * @param rowSelected - * @param type - * @param typeCol - * @param pt - */ + /** + * Constructs and shows a popup menu of possible actions on the selected row + * and feature type + * + * @param rowSelected + * @param type + * @param typeCol + * @param pt + */ protected void showPopupMenu(final int rowSelected, final String type, final Object typeCol, final Point pt) { @@ -409,7 +409,7 @@ public class FeatureSettings extends JPanel MessageManager.getString("label.variable_colour")); variableColourCB.setSelected(!featureColour.isSimpleColour()); men.add(variableColourCB); - + /* * checkbox action listener doubles up as listener to OK * from the variable colour / filters dialog @@ -421,8 +421,10 @@ public class FeatureSettings extends JPanel { if (e.getSource() == variableColourCB) { - men.setVisible(true); // BH 2018 for JavaScript because this is a checkbox - men.setVisible(false); // BH 2018 for JavaScript because this is a checkbox + men.setVisible(true); // BH 2018 for JavaScript because this is a + // checkbox + men.setVisible(false); // BH 2018 for JavaScript because this is a + // checkbox if (featureColour.isSimpleColour()) { /* @@ -436,7 +438,8 @@ public class FeatureSettings extends JPanel /* * toggle variable to simple colour - show colour chooser */ - String title = MessageManager.formatMessage("label.select_colour_for", type); + String title = MessageManager + .formatMessage("label.select_colour_for", type); ColourChooserListener listener = new ColourChooserListener() { @Override @@ -450,11 +453,11 @@ public class FeatureSettings extends JPanel false); } }; - JalviewColourChooser.showColourChooser(FeatureSettings.this, title, - featureColour.getMaxColour(), listener); + JalviewColourChooser.showColourChooser(FeatureSettings.this, + title, featureColour.getMaxColour(), listener); } } - else + else { if (e.getSource() instanceof FeatureTypeSettings) { @@ -465,13 +468,13 @@ public class FeatureSettings extends JPanel FeatureColourI fci = fr.getFeatureColours().get(type); table.setValueAt(fci, rowSelected, COLOUR_COLUMN); // BH 2018 setting a table value does not invalidate it. -// System.out.println("FeatureSettings is valied" + table.isValid()); -// table.validate(); + // System.out.println("FeatureSettings is valied" + + // table.validate(); } } } }); - + men.addSeparator(); JMenuItem scr = new JMenuItem( @@ -760,8 +763,8 @@ public class FeatureSettings extends JPanel } /** - * Updates 'originalData' (used for restore on Cancel) if we detect that changes - * have been made outwith this dialog + * Updates 'originalData' (used for restore on Cancel) if we detect that + * changes have been made outwith this dialog *