Method is used in ....OpenDSAction @return the opened datastore or null if an error occurs
()
| 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 = |
no test coverage detected