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

This commit is contained in:
Greeny 2010-04-10 16:58:30 +00:00
parent 2fe45ed1ba
commit 5910978d57
3 changed files with 11 additions and 2 deletions

View File

@ -60,5 +60,8 @@
</attributes>
</classpathentry>
<classpathentry combineaccessrules="false" kind="src" path="/AppWorkUtils"/>
<classpathentry kind="lib" path="ressourcen/libs/laf/syntheticaBlackEye.jar"/>
<classpathentry kind="lib" path="ressourcen/libs/laf/syntheticaGreenDream.jar"/>
<classpathentry kind="lib" path="ressourcen/libs/image4j.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -25,6 +25,7 @@ public class TreeEntry {
}
private Class<? extends SwitchPanel> clazz;
private SingletonPanel singleton;
private SwitchPanel panel;
private String title;
@ -60,7 +61,7 @@ public class TreeEntry {
PANELS.put(clazz, this);
this.clazz = clazz;
this.panel = new SingletonPanel(clazz).getPanel();
this.singleton = new SingletonPanel(clazz);
}
public Class<? extends SwitchPanel> getClazz() {
@ -80,6 +81,9 @@ public class TreeEntry {
}
public SwitchPanel getPanel() {
if (panel == null && singleton != null) {
panel = singleton.getPanel();
}
return panel;
}

View File

@ -673,7 +673,9 @@ public abstract class PluginForHost extends Plugin {
return hosterIcon;
}
/* this function mayb be overriden by plugin for e.g. customized Favicon */
/**
* this function may be overwritten by plugin for e.g. customized Favicon
*/
public ImageIcon getFavIcon() {
return downloadFavIcon("http://" + getHost() + "/favicon.ico");
}