Changeset 32925
- Timestamp:
- 2019-03-25T20:39:09+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r32924 r32925 1234 1234 */ 1235 1235 static public void missingEXEC() { 1236 try { 1237 SwingUtilities.invokeAndWait(new Runnable() { 1238 public void run() { 1236 1239 WarningDialog dialog; 1237 1240 String configPropertyName = "general.library_url"+Configuration.gliPropertyNameSuffix(); … … 1291 1294 } 1292 1295 } 1296 } 1297 }); 1298 } catch(Exception e) { //InterruptedException or InvocationTargetException 1299 e.printStackTrace(); 1300 } 1293 1301 } 1294 1302 … … 1298 1306 */ 1299 1307 static private void popupFedoraInfo() { 1300 1308 try { 1309 SwingUtilities.invokeAndWait(new Runnable() { 1310 public void run() { 1301 1311 FedoraLogin dialog = new FedoraLogin("Fedora Login", false); 1302 1312 … … 1364 1374 1365 1375 // Now we are connected. 1376 } 1377 }); 1378 } catch(Exception e) { //InterruptedException or InvocationTargetException 1379 e.printStackTrace(); 1380 } 1366 1381 } 1367 1382 … … 1370 1385 static private void requestGLIServerURL() 1371 1386 { 1387 try { 1388 SwingUtilities.invokeAndWait(new Runnable() { 1389 public void run() { 1372 1390 WarningDialog dialog; 1373 1391 String[] defaultURLs = { … … 1414 1432 } 1415 1433 } 1434 } 1435 }); 1436 } catch(Exception e) { //InterruptedException or InvocationTargetException 1437 e.printStackTrace(); 1438 } 1416 1439 } 1417 1440 … … 1420 1443 */ 1421 1444 static private void missingGSDL() { 1445 try { 1446 SwingUtilities.invokeAndWait(new Runnable() { 1447 public void run() { 1422 1448 WarningDialog dialog = new WarningDialog("warning.MissingGSDL", Dictionary.get("MissingGSDL.Title"), Dictionary.get("MissingGSDL.Message"), null, false); 1423 1449 dialog.display(); 1424 1450 dialog.dispose(); 1425 1451 dialog = null; 1452 } 1453 }); 1454 } catch(Exception e) { //InterruptedException or InvocationTargetException 1455 e.printStackTrace(); 1456 } 1426 1457 } 1427 1458 1428 1459 /** Prints a warning message about missing a valid ImageMagick path, which although not fatal means building image collections won't work */ 1429 1460 static private void missingImageMagick() { 1461 try { 1462 SwingUtilities.invokeAndWait(new Runnable() { 1463 public void run() { 1430 1464 WarningDialog dialog = new WarningDialog("warning.MissingImageMagick", Dictionary.get("MissingImageMagick.Title"), Dictionary.get("MissingImageMagick.Message"), null, false); 1431 1465 dialog.display(); 1432 1466 dialog.dispose(); 1433 1467 dialog = null; 1468 } 1469 }); 1470 } catch(Exception e) { //InterruptedException or InvocationTargetException 1471 e.printStackTrace(); 1472 } 1434 1473 } 1435 1474 1436 1475 /** Prints a message informing the user where they can get PDFBox from to process PDF files of v1.5 and greater */ 1437 1476 static private void missingPDFBox(String zipExtension, String extFolder) { 1477 try { 1478 SwingUtilities.invokeAndWait(new Runnable() { 1479 public void run() { 1480 1438 1481 // point to the correct version of the PDFBox extension for this Greenstone release 1439 1482 String releaseTag = ""; … … 1446 1489 dialog.dispose(); 1447 1490 dialog = null; 1491 } 1492 }); 1493 } catch(Exception e) { //InterruptedException or InvocationTargetException 1494 e.printStackTrace(); 1495 } 1448 1496 } 1449 1497 1450 1498 /** Prints a warning message about missing a valid PERL path, which although not fatal pretty much ensures no collection creation/building will work properly in the GLI. */ 1451 1499 static private void missingPERL() { 1500 try { 1501 SwingUtilities.invokeAndWait(new Runnable() { 1502 public void run() { 1452 1503 WarningDialog dialog = new WarningDialog("warning.MissingPERL", Dictionary.get("MissingPERL.Title"), Dictionary.get("MissingPERL.Message"), null, false); 1453 1504 dialog.display(); 1454 1505 dialog.dispose(); 1455 1506 dialog = null; 1507 } 1508 }); 1509 } catch(Exception e) { //InterruptedException or InvocationTargetException 1510 e.printStackTrace(); 1511 } 1456 1512 } 1457 1513 1458 1514 /** Prints a message informing the user that their collecthome is non-standard (not inside GS installation) */ 1459 1515 static private void nonStandardCollectHomeMessage(String open_collection_file_path, String defaultColDir) { 1516 try { 1517 SwingUtilities.invokeAndWait(new Runnable() { 1518 public void run() { 1460 1519 WarningDialog dialog = new WarningDialog("warning.NonStandardCollectHome", Dictionary.get("NonStandardCollectHome.Title"), Dictionary.get("NonStandardCollectHome.Message", new String[]{open_collection_file_path, defaultColDir}), null, false); 1461 1520 dialog.display(); 1462 1521 dialog.dispose(); 1463 1522 dialog = null; 1523 } 1524 }); 1525 } catch(Exception e) { //InterruptedException or InvocationTargetException 1526 e.printStackTrace(); 1527 } 1464 1528 } 1465 1529 1466 1530 /** Prints a warning message about the OS not supporting multiple filename encodings. */ 1467 static private void multipleFilenameEncodingsNotSupported() { 1531 static private void multipleFilenameEncodingsNotSupported() { 1532 try { 1533 SwingUtilities.invokeAndWait(new Runnable() { 1534 public void run() { 1468 1535 WarningDialog dialog = new WarningDialog("warning.NoEncodingSupport", 1469 1536 Dictionary.get("NoEncodingSupport.Title"), … … 1472 1539 dialog.dispose(); 1473 1540 dialog = null; 1541 } 1542 }); 1543 } catch(Exception e) { //InterruptedException or InvocationTargetException 1544 e.printStackTrace(); 1545 } 1474 1546 } 1475 1547
Note:
See TracChangeset
for help on using the changeset viewer.