git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@5916 ebf7c1c2-ba36-0410-9fe8-c592906822b4

This commit is contained in:
coalado 2009-05-28 21:13:23 +00:00
parent 7b46a25c34
commit 1ce005432e
5 changed files with 10 additions and 4 deletions

View File

@ -36,6 +36,7 @@ import jd.nutils.Executer;
import jd.nutils.JDFlags;
import jd.nutils.OSDetector;
import jd.nutils.Screen;
import jd.utils.JDFileReg;
import jd.utils.JDLocale;
import jd.utils.JDUtilities;
@ -143,6 +144,7 @@ public class Installer {
exec.start();
}
JDFileReg.registerFileExts();
}

View File

@ -490,7 +490,7 @@ public class Main {
JDUtilities.getController().fireControlEvent(new ControlEvent(this, ControlEvent.CONTROL_INIT_COMPLETE, null));
JDFileReg.registerFileExts();
try {
Thread.sleep(3000);

View File

@ -338,7 +338,7 @@ public class AccountController extends SubConfiguration implements ActionListene
if (ret != null && !JDUtilities.getConfiguration().getBooleanProperty(Configuration.PARAM_USE_GLOBAL_PREMIUM, true)) {
if (System.currentTimeMillis() - lastballoon > ballooninterval) {
lastballoon = System.currentTimeMillis();
Balloon.show("AccountController", JDTheme.II("gui.images.accounts", 32, 32), JDLocale.L("gui.accountcontroller.globpremdisabled", "Premiumaccounts are globally disabled!<br/>Click <a href='http://jdownloader.org/knowledge/wiki/gui/premiummenu'>here</a> for help."));
Balloon.show(JDLocale.L("gui.ballon.accountmanager.title", "Accountmanager"), JDTheme.II("gui.images.accounts", 32, 32), JDLocale.L("gui.accountcontroller.globpremdisabled", "Premiumaccounts are globally disabled!<br/>Click <a href='http://jdownloader.org/knowledge/wiki/gui/premiummenu'>here</a> for help."));
}
ret = null;
}

View File

@ -802,7 +802,7 @@ public class SimpleGUI extends JXFrame implements UIInterface, WindowListener {
}
}
logger.info("All downloads finished");
// Balloon.show(title, icon, htmlmessage)
break;
case ControlEvent.CONTROL_DISTRIBUTE_FINISHED:
break;
@ -813,9 +813,13 @@ public class SimpleGUI extends JXFrame implements UIInterface, WindowListener {
setTitle(JDUtilities.getJDTitle());
break;
case ControlEvent.CONTROL_DOWNLOAD_START:
Balloon.showIfHidden(JDLocale.L("ballon.download.title", "Download"), JDTheme.II("gui.images.play", 32, 32), JDLocale.L("ballon.download.finished.started", "Download started"));
if (speedmeter != null) speedmeter.start();
break;
case ControlEvent.CONTROL_DOWNLOAD_STOP:
Balloon.showIfHidden(JDLocale.L("ballon.download.title", "Download"), JDTheme.II("gui.images.play", 32, 32), JDLocale.L("ballon.download.finished.stopped", "Download stopped"));
if (speedmeter != null) speedmeter.stop();
break;
}

View File

@ -41,7 +41,7 @@ public class BackupAction extends StartAction {
public void run() {
inprogress = true;
DownloadController.getInstance().backupDownloadLinksSync();
Balloon.show("Backup", JDTheme.II("gui.images.save", 32, 32), JDLocale.LF("gui.backup.finished", "Linklist successfully backuped!"));
Balloon.show(JDLocale.L("gui.balloon.backup.title","Backup"), JDTheme.II("gui.images.save", 32, 32), JDLocale.LF("gui.backup.finished", "Linklist successfully backuped!"));
inprogress = false;
}
}.start();