diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapMainApp.java b/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapMainApp.java index 8177f9b..3366a8d 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapMainApp.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapMainApp.java @@ -21,6 +21,8 @@ import java.util.logging.Logger; import javax.swing.JFrame; import javax.swing.SwingUtilities; +import com.google.gson.Gson; + import eu.omp.irap.vespa.epntapclient.controller.EpnTapController; /** @@ -44,7 +46,7 @@ public class EpnTapMainApp { * @param args The program arguments (not used). */ public static void main(final String[] args) { - EpnTapMainApp.logger.info("Lauching EPN-TAP application..."); + EpnTapMainApp.logger.info("Lauching EPNTAP app with arguments: " + new Gson().toJson(args)); SwingUtilities.invokeLater(new Runnable() { @Override diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/controller/EpnTapController.java b/src/main/java/eu/omp/irap/vespa/epntapclient/controller/EpnTapController.java index 9e35baf..20bf744 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/controller/EpnTapController.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/controller/EpnTapController.java @@ -127,10 +127,10 @@ public class EpnTapController implements ViewListener { try { voTablePath = resultsController.fillTable(selectedTableServiceURL, "ADQL", query); } catch (CantDisplayVOTableException e) { - // TODO Auto-generated catch block + // TODO Create exception e.printStackTrace(); } catch (CantSendQueryException e) { - // TODO Auto-generated catch block + // TODO Create exception e.printStackTrace(); } } diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/view/ParamField.java b/src/main/java/eu/omp/irap/vespa/epntapclient/view/ParamField.java index a84f84e..7fdc807 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/view/ParamField.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/view/ParamField.java @@ -110,7 +110,6 @@ public abstract class ParamField extends JPanel { this.paramName = paramName; buildParamField(); - // TODO: Add tooltip text based on rr.table_column.column_description } private void buildParamField() { @@ -440,7 +439,6 @@ public abstract class ParamField extends JPanel { for (int i = 0; i < count; i++) { JsonObject elmt = hits.get(i).getAsJsonObject(); targetNames[i] = elmt.get("name").toString().replace("\"", ""); - // TODO: Display "[name] ([type])" on the JComboBox, but only "[name]" on the query. } return targetNames; } diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/view/panels/RequestPanel.java b/src/main/java/eu/omp/irap/vespa/epntapclient/view/panels/RequestPanel.java index 6573e1a..cd53a16 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/view/panels/RequestPanel.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/view/panels/RequestPanel.java @@ -78,9 +78,6 @@ public class RequestPanel extends JPanel { setPreferredSize(new Dimension(GUIDim.RIGHT_PANEL_WIDTH, GUIDim.TOP_PANEL_HEIGHT)); setMinimumSize(new Dimension(GUIDim.RIGHT_PANEL_MIN_WIDTH, GUIDim.TOP_PANEL_MIN_HEIGHT)); - // TODO: Use a JScrollPane. - // TODO: Get max row number from the GUI - this.add(buildParamPanel(), this); this.add(buildQueryPanel(), this); this.add(buildButtonPanel(), this); @@ -92,10 +89,6 @@ public class RequestPanel extends JPanel { * @return The JPanel. */ private JPanel buildParamPanel() { - // TODO: new GUI field column to allow the user to select the comparison operator: - // - if the field is a String: listbox with 'xx', '%xx', 'xx%', and '%xx%'. - // - if the field is a numeric value: listbox with <, <=, =, =>, >. - // TODO use enums for the parameters names paramFields = new ArrayList<>(); paramFields.add(new TargetNameField(viewListener, "target_name")); paramFields.add(new DateRangeField(viewListener, "time_")); diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/view/panels/ServicesPanel.java b/src/main/java/eu/omp/irap/vespa/epntapclient/view/panels/ServicesPanel.java index 21099ee..38120b1 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/view/panels/ServicesPanel.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/view/panels/ServicesPanel.java @@ -73,7 +73,6 @@ public class ServicesPanel extends JPanel { setPreferredSize(new Dimension(GUIDim.LEFT_PANEL_WIDTH, GUIDim.TOP_PANEL_HEIGHT)); setMinimumSize(new Dimension(GUIDim.LEFT_PANEL_MIN_WIDTH, GUIDim.TOP_PANEL_MIN_HEIGHT)); - // TODO: Support multi-selection voTableView.getTable().getSelectionModel() .addListSelectionListener(new ListSelectionListener() { diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/VOTableApp.java b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/VOTableApp.java index c668bba..e139814 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/VOTableApp.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/VOTableApp.java @@ -45,27 +45,14 @@ public class VOTableApp { /** * Main function to start the application as standalone. * - *
- * **Usage 1**: `VOtableApp pathToVOTable` - * Display the VOTable stored in the specified XML file. - * - `pathToVOTable`: The path to an XML file representing a VOtable; - * - * **Usage 2**: `VOtableApp targetURL type language query` - * Display the VOTable resulting the service or registry request. - * - `targetURL`: The URL of the service or registry to ask, ie `http://cdpp-epntap.cesr.fr`; - * - `language`: The language of the query, ie `ADQL`; - * - `query`: The query in the specified language in double quotes, ie. `"SELECT * FROM amdadb.epn_core"` - *- * * @param args The program arguments */ public static void main(final String[] args) { - VOTableApp.logger.info("Lauching VOTable app with arguments:\n" + new Gson().toJson(args)); + VOTableApp.logger.info("Lauching VOTable app with arguments: " + new Gson().toJson(args)); SwingUtilities.invokeLater(new Runnable() { @Override public void run() { - // TODO: Add option to export to CSV and HTML in CLI. VOTableController voTableControl; if (args.length == 1) { try { diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java index 68741ff..bfe9179 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableController.java @@ -102,12 +102,10 @@ public class VOTableController { voTable = VOTableParser.parseVOTable(voTablePath); - // TODO: Handle the case when there are more than 1 resource or table. if (voTable.getRESOURCE().size() > 1) { throw new SeveralResourcesException(voTablePath); } - // TODO: Iterate over all potential ERROR tags if ("ERROR".equals(voTable.getRESOURCE().get(0).getINFO().get(0).getValueAttribute())) { String errorInfo = voTable.getRESOURCE().get(0).getINFO().get(0).getValue(); throw new ErrorMessageInVOTableException(errorInfo); diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableDataParser.java b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableDataParser.java index c11aca1..4c758d2 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableDataParser.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/votable/controller/VOTableDataParser.java @@ -278,7 +278,6 @@ public class VOTableDataParser { */ private static void parseBinary2Stream(Stream stream, List