label.variable_color_for = Variable Feature Colour for {0}
label.select_background_colour = Select Background Colour
label.invalid_font = Invalid Font
+label.search_db_all = Search all of {0}
+label.search_db_index = Search {0} index {1}
label.separate_multiple_accession_ids = Enter one or more accession IDs separated by a semi-colon ";"
label.separate_multiple_query_values = Enter one or more {0} separated by a semi-colon ";"
label.search_all = Enter one or more search values separated by a semi-colon ";" (Note: This searches the entire database)
label.variable_color_for = Color variable para la característica de {0}
label.select_background_colour = Seleccionar color de fondo
label.invalid_font = Fuente no válida
+label.search_db_all = Buscar en todo {0}
+label.search_db_index = Buscar índice {0} {1}
label.separate_multiple_accession_ids = Separar los accession id con un punto y coma ";"
label.replace_commas_semicolons = Cambiar comas por puntos y comas
label.parsing_failed_syntax_errors_shown_below_param = Parseo erróneo. A continuación, se muestras los errores de sintaxis {0}
* checkbox
*/
public String getAutosearchPreference();
+
+ /**
+ * Return the name of the database being searched
+ *
+ * @return The database name
+ */
+ public String getDbName();
}
JvSwingUtils.wrapTooltip(true, tooltipText));
if (btn_autosearch.isSelected())
searchAction(true);
+
+ setCmbSearchTargetTooltip();
}
}
});
pnl_actions.add(btn_cancel);
pnl_results.add(tabbedPane);
+ setCmbSearchTargetTooltip();
pnl_inputs.add(cmb_searchTarget);
pnl_inputs.add(txt_search.getComponent());
pnl_inputs.add(txt_help);
@Override
public abstract void okAction();
+
+ private void setCmbSearchTargetTooltip()
+ {
+ JComboBox<FTSDataColumnI> cmb = getCmbSearchTarget();
+ if (cmb.isEnabled())
+ {
+ boolean isAll = "all"
+ .equalsIgnoreCase(cmb.getSelectedItem().toString());
+ FTSDataColumnI index = (FTSDataColumnI) cmb.getSelectedItem();
+ String indexCode = index.getAltCode();
+ String dbName = getDbName();
+ String message = isAll ? MessageManager
+ .formatMessage("label.search_db_all", new Object[]
+ { dbName })
+ : MessageManager.formatMessage("label.search_db_index",
+ new Object[]
+ { dbName, indexCode });
+ cmb.setToolTipText(message);
+ }
+ else
+ {
+ cmb.setToolTipText("");
+ }
+ }
}
package jalview.fts.service.pdb;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+
+import javax.help.HelpSetException;
+
import jalview.fts.api.FTSDataColumnI;
import jalview.fts.api.FTSRestClientI;
import jalview.fts.core.FTSRestRequest;
import jalview.gui.SequenceFetcher;
import jalview.util.MessageManager;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-
-import javax.help.HelpSetException;
-
@SuppressWarnings("serial")
public class PDBFTSPanel extends GFTSPanel
{
e1.printStackTrace();
}
}
+
+ public String getDbName()
+ {
+ return "PDB";
+ }
}
\ No newline at end of file
*/
package jalview.fts.service.threedbeacons;
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
import java.net.HttpURLConnection;
-import java.net.MalformedURLException;
-import java.net.URL;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import javax.swing.SwingUtilities;
-import org.json.JSONArray;
-import org.json.JSONObject;
-
import jalview.bin.Console;
import jalview.datamodel.AlignmentI;
import jalview.fts.api.FTSDataColumnI;
import jalview.fts.core.FTSRestRequest;
import jalview.fts.core.FTSRestResponse;
import jalview.fts.core.GFTSPanel;
-import jalview.fts.service.pdb.PDBFTSRestClient;
import jalview.gui.SequenceFetcher;
import jalview.io.DataSourceType;
import jalview.io.FileFormat;
-import jalview.io.FileFormatI;
-import jalview.io.FileLoader;
import jalview.io.FormatAdapter;
import jalview.util.MessageManager;
// no multiple query support yet
return enteredText;
}
+
+ public String getDbName()
+ {
+ return "3D-Beacons";
+ }
}
}
}
+ public String getDbName()
+ {
+ return "UniProt";
+ }
}