- Timestamp:
- 2019-03-25T20:03:00+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r32923 r32924 671 671 // if gsdlsite.cfg does not exist (if using server.exe for instance), the above method will just return 672 672 } 673 674 } 675 676 677 /** Returns the correct version of the (local or remote) Greenstone server if init() has already been called. */ 678 public static int serverVersionNumber() { 679 return GS3 ? 3 : 2; 680 } 681 682 /** Returns "Server: version number" if init() has already been called. */ 683 public static String getServerVersionAsString() { 684 return "Server: v" + serverVersionNumber(); 685 } 686 687 public void openGUI() 688 { 689 690 // openGUI() is called on the EDT (graphical/swing thread) 691 // remoteGS.downloadCollectionConfigurations() moved here as it calls remoteGS3.authenticateUser() 692 // which displays a dialog to get user input and therefore belongs on the EDT. 673 693 674 // If using a remote Greenstone we need to download the collection configurations now 694 675 if (Gatherer.isGsdlRemote) { … … 701 682 } 702 683 } 703 684 } 685 686 687 /** Returns the correct version of the (local or remote) Greenstone server if init() has already been called. */ 688 public static int serverVersionNumber() { 689 return GS3 ? 3 : 2; 690 } 691 692 /** Returns "Server: version number" if init() has already been called. */ 693 public static String getServerVersionAsString() { 694 return "Server: v" + serverVersionNumber(); 695 } 696 697 public void openGUI() 698 { 704 699 // Size and place the frame on the screen 705 700 Rectangle bounds = Configuration.getBounds("general.bounds", true);
Note:
See TracChangeset
for help on using the changeset viewer.