plugin links

This commit is contained in:
zzz
2010-02-07 19:01:06 +00:00
parent 3c8355790f
commit 9012baf51e
3 changed files with 28 additions and 12 deletions

View File

@ -131,6 +131,15 @@ public class PluginStarter implements Runnable {
// add themes in console/themes
// add summary bar link
File pluginConfig = new File(pluginDir, "plugin.config");
if (pluginConfig.exists()) {
Properties props = new Properties();
DataHelper.loadProps(props, pluginConfig);
String name = props.getProperty("consoleLinkName");
String url = props.getProperty("consoleLinkURL");
if (name != null && url != null && name.length() > 0 && url.length() > 0)
NavHelper.registerApp(name, url);
}
return true;
}