preferenceIcon = loadFile.receiveImageIcon("preference.gif");
}
boolean makeSureApiIsInitialized() throws Exception {
while (DirectTaskDatabaseConnection.testConnection() == null) {
DirectTaskDatabaseConnection directTaskDatabaseConnection =
new DirectTaskDatabaseConnection();
WaitDialog waitDialog = new WaitDialog(null, directTaskDatabaseConnection);
waitDialog.runIt();
if (waitDialog.isCancelled())
return false;
Throwable ex = directTaskDatabaseConnection.getException();
if (ex != null) {
InfoBox.exhibit(null, Phrase.get("ER_CONNECT_DATABASE"),
Phrase.get("TX_ERROR"), InfoBox.OK, ex, "Errors." + "ER_CONNECT_DATABASE");
String title = Phrase.get("TX_DIRECT_DATABASE_CONNECTION");