Author: jflesch
Date: 2008-02-17 20:54:14 +0000 (Sun, 17 Feb 2008)
New Revision: 18025
Modified:
trunk/apps/Thaw/src/thaw/core/PluginManager.java
trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties
trunk/apps/Thaw/src/thaw/i18n/thaw.properties
trunk/apps/Thaw/src/thaw/plugins/MiniFrost.java
trunk/apps/Thaw/src/thaw/plugins/WebOfTrust.java
Log:
Web of trust : put the wot viewer in its own plugin
Modified: trunk/apps/Thaw/src/thaw/core/PluginManager.java
===================================================================
--- trunk/apps/Thaw/src/thaw/core/PluginManager.java 2008-02-17 20:39:29 UTC
(rev 18024)
+++ trunk/apps/Thaw/src/thaw/core/PluginManager.java 2008-02-17 20:54:14 UTC
(rev 18025)
@@ -32,6 +32,7 @@
"thaw.plugins.Hsqldb",
"thaw.plugins.Signatures",
"thaw.plugins.WebOfTrust",
+ "thaw.plugins.WebOfTrustViewer",
"thaw.plugins.IndexBrowser",
"thaw.plugins.IndexExporter",
"thaw.plugins.IndexTreeRebuilder",
Modified: trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties 2008-02-17
20:39:29 UTC (rev 18024)
+++ trunk/apps/Thaw/src/thaw/i18n/source.thaw_fr.properties 2008-02-17
20:54:14 UTC (rev 18025)
@@ -722,6 +722,7 @@
## Web of Trust
thaw.plugin.wot=Toile de confiance
+thaw.plugin.wot.viewer=Visionneur de toile de confiance
thaw.plugin.wot.activated=Activer la toile de confiance
thaw.plugin.wot.usedIdentity=Identit? utilis?e pour publier la liste de
confiances
thaw.plugin.wot.usedIdentity.none=[Ne pas publier la liste de confiance]
Modified: trunk/apps/Thaw/src/thaw/i18n/thaw.properties
===================================================================
--- trunk/apps/Thaw/src/thaw/i18n/thaw.properties 2008-02-17 20:39:29 UTC
(rev 18024)
+++ trunk/apps/Thaw/src/thaw/i18n/thaw.properties 2008-02-17 20:54:14 UTC
(rev 18025)
@@ -729,6 +729,7 @@
## Web of trust
thaw.plugin.wot=Web of Trust
+thaw.plugin.wot.viewer=Web of Trust viewer
thaw.plugin.wot.activated=Activate the web of trust
thaw.plugin.wot.usedIdentity=Identity used to publish your trust list
thaw.plugin.wot.usedIdentity.none=[Don't publish the trust list]
Modified: trunk/apps/Thaw/src/thaw/plugins/MiniFrost.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/MiniFrost.java 2008-02-17 20:39:29 UTC
(rev 18024)
+++ trunk/apps/Thaw/src/thaw/plugins/MiniFrost.java 2008-02-17 20:54:14 UTC
(rev 18025)
@@ -78,6 +78,8 @@
protected boolean loadDeps() {
+ /* hsqldb */
+
if(core.getPluginManager().getPlugin("thaw.plugins.Hsqldb") ==
null) {
Logger.info(this, "Loading Hsqldb plugin");
@@ -91,6 +93,8 @@
hsqldb =
(Hsqldb)core.getPluginManager().getPlugin("thaw.plugins.Hsqldb");
hsqldb.registerChild(this);
+ /* wot */
+
if(core.getPluginManager().getPlugin("thaw.plugins.WebOfTrust")
== null) {
Logger.info(this, "Loading WoT plugin");
Modified: trunk/apps/Thaw/src/thaw/plugins/WebOfTrust.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/WebOfTrust.java 2008-02-17 20:39:29 UTC
(rev 18024)
+++ trunk/apps/Thaw/src/thaw/plugins/WebOfTrust.java 2008-02-17 20:54:14 UTC
(rev 18025)
@@ -20,7 +20,6 @@
private Signatures sigs;
private WebOfTrustConfigTab configTab = null;
- private WebOfTrustTab wotTab = null;
private int used = 0;
@@ -178,16 +177,6 @@
if (core.getConfig().getValue("wotActivated") == null
||
Boolean.valueOf(core.getConfig().getValue("wotActivated")).booleanValue()) {
initThread();
-
- wotTab = new WebOfTrustTab(db,
core.getConfig());
-
-
core.getMainWindow().addTab(I18n.getMessage("thaw.plugin.wot"),
-
thaw.gui.IconBox.trust,
- wotTab.getPanel());
-
- core.getMainWindow().getMainFrame().validate();
-
- wotTab.loadState();
}
return true;
@@ -277,12 +266,7 @@
if (used == 0) {
unloadDeps(core);
}
-
- if (wotTab != null) {
- core.getMainWindow().removeTab(wotTab.getPanel());
- wotTab = null;
- }
-
+
stopThread();
}