diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapController.java b/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapController.java index 123f205..be7910a 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapController.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/EpnTapController.java @@ -127,18 +127,4 @@ public abstract class EpnTapController { } } - - /** - * Send the query to the specified service, download the result and update the voTable path. - * - * @param query An ADQL query to send. - * @param tableServiceURL the URL of the service. - * @throws VOTableException Can not get the VOTable. - */ - public void sendQuery(String query, String tableServiceURL) throws VOTableException { - resultsCtrl = new VOTableController(tableServiceURL, query); - resultsCtrl.readTable(); - voTablePath = resultsCtrl.getVOTablePath(); - } - } diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/mainpanel/MainPanelCtrl.java b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/mainpanel/MainPanelCtrl.java index 6526a59..e6735dd 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/gui/mainpanel/MainPanelCtrl.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/gui/mainpanel/MainPanelCtrl.java @@ -114,9 +114,9 @@ public class MainPanelCtrl extends EpnTapController implements MainPanelListener @Override public void sendQuery() { + List tableNames = servicesPanelCtrl.getServices().getTableNames(); + List targetUrls = servicesPanelCtrl.getServices().getTargetUrls(); try { - List tableNames = servicesPanelCtrl.getServices().getTableNames(); - List targetUrls = servicesPanelCtrl.getServices().getTargetUrls(); sendQuery(tableNames, targetUrls); } catch (EpnTapException e) { displayError("There is no service selected.", e); -- libgit2 0.21.2