Legend:
- Unmodified
- Added
- Removed
-
trunk/greenstone3-extensions/vishnu/src/vishnu/testvis/object/DataManager.java
r8344 r8403 454 454 } 455 455 456 public DataManager(Vishnu d) 456 public DataManager(Vishnu d) { 457 this(d, null); 458 } 459 public DataManager(Vishnu d, String engine) 457 460 { 458 461 displayFrame = d; 459 Engine engine = new Engine(displayFrame); 462 if (engine != null && !engine.equals("")) { 463 engine_type = engine; 464 } 465 Engine theEngine; 466 try { 467 theEngine = (Engine)Class.forName("vishnu.testvis.object."+engine_type).newInstance(); 468 } catch (Exception e) { 469 System.err.println("Couldn't create an engine "+engine_type+ ", aborting query"); 470 System.err.println(e); 471 return; 472 } 473 474 theEngine.setDisplay(displayFrame); 460 475 Vector q = new Vector(); 461 476 q.addElement("initialise"); 462 collections = engine.getCollections(q);477 collections = theEngine.getCollections(q); 463 478 } 464 479 -
trunk/gsdl3/extensions/vishnu/src/vishnu/testvis/object/DataManager.java
r8344 r8403 454 454 } 455 455 456 public DataManager(Vishnu d) 456 public DataManager(Vishnu d) { 457 this(d, null); 458 } 459 public DataManager(Vishnu d, String engine) 457 460 { 458 461 displayFrame = d; 459 Engine engine = new Engine(displayFrame); 462 if (engine != null && !engine.equals("")) { 463 engine_type = engine; 464 } 465 Engine theEngine; 466 try { 467 theEngine = (Engine)Class.forName("vishnu.testvis.object."+engine_type).newInstance(); 468 } catch (Exception e) { 469 System.err.println("Couldn't create an engine "+engine_type+ ", aborting query"); 470 System.err.println(e); 471 return; 472 } 473 474 theEngine.setDisplay(displayFrame); 460 475 Vector q = new Vector(); 461 476 q.addElement("initialise"); 462 collections = engine.getCollections(q);477 collections = theEngine.getCollections(q); 463 478 } 464 479 -
trunk/gsdl3/packages/vishnu/src/vishnu/testvis/object/DataManager.java
r8344 r8403 454 454 } 455 455 456 public DataManager(Vishnu d) 456 public DataManager(Vishnu d) { 457 this(d, null); 458 } 459 public DataManager(Vishnu d, String engine) 457 460 { 458 461 displayFrame = d; 459 Engine engine = new Engine(displayFrame); 462 if (engine != null && !engine.equals("")) { 463 engine_type = engine; 464 } 465 Engine theEngine; 466 try { 467 theEngine = (Engine)Class.forName("vishnu.testvis.object."+engine_type).newInstance(); 468 } catch (Exception e) { 469 System.err.println("Couldn't create an engine "+engine_type+ ", aborting query"); 470 System.err.println(e); 471 return; 472 } 473 474 theEngine.setDisplay(displayFrame); 460 475 Vector q = new Vector(); 461 476 q.addElement("initialise"); 462 collections = engine.getCollections(q);477 collections = theEngine.getCollections(q); 463 478 } 464 479
Note:
See TracChangeset
for help on using the changeset viewer.