mirror of
https://github.com/mirror/jdownloader.git
synced 2024-10-07 09:03:39 +00:00
git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@11034 ebf7c1c2-ba36-0410-9fe8-c592906822b4
This commit is contained in:
parent
2fe45ed1ba
commit
5910978d57
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user