MCPcopy Create free account
hub / github.com/GateNLP/gate-core / openDocServiceDataStore

Method openDocServiceDataStore

src/main/java/gate/gui/MainFrame.java:2421–2439  ·  view source on GitHub ↗

Method is used in ....OpenDSAction @return the opened datastore or null if an error occurs

()

Source from the content-addressed store, hash-verified

2419 * @return the opened datastore or null if an error occurs
2420 */
2421 protected DataStore openDocServiceDataStore() {
2422 DataStore ds = null;
2423 try {
2424 String DSLocation =
2425 JOptionPane.showInputDialog(MainFrame.this,
2426 "Enter document service URL",
2427 "http://localhost:8080/docservice/services/docservice");
2428 // System.out.println("DEBUG: MainFrame.openDocServiceDataStore()
2429 // DSLocation='" + DSLocation + "'");
2430 ds =
2431 Factory.openDataStore("gleam.docservice.gate.DocServiceDataStore",
2432 DSLocation);
2433 }
2434 catch(Exception error) {
2435 String message = "Error when opening the Datastore.";
2436 log.error(message, error);
2437 }
2438 return ds;
2439 } // openWSDataStore()
2440
2441 /*
2442 * synchronized void showWaitDialog() { Point location =

Callers 1

actionPerformedMethod · 0.80

Calls 2

openDataStoreMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected