Author: jflesch
Date: 2007-05-22 18:17:58 +0000 (Tue, 22 May 2007)
New Revision: 13307
Modified:
trunk/apps/Thaw/src/thaw/plugins/index/Index.java
trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java
Log:
Display in red the indexes using pre-1010 keys
Modified: trunk/apps/Thaw/src/thaw/plugins/index/Index.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/Index.java 2007-05-22 18:03:53 UTC
(rev 13306)
+++ trunk/apps/Thaw/src/thaw/plugins/index/Index.java 2007-05-22 18:17:58 UTC
(rev 13307)
@@ -393,6 +393,11 @@
return publicKey;
}
+
+ public boolean isObsolete() {
+ return (getPublicKey().indexOf("AQABAAE") > 0);
+ }
+
public int getRevision() {
if (rev < 0) {
Logger.debug(this, "getRevision() => loadData()");
Modified: trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java 2007-05-22
18:03:53 UTC (rev 13306)
+++ trunk/apps/Thaw/src/thaw/plugins/index/IndexTree.java 2007-05-22
18:17:58 UTC (rev 13307)
@@ -702,6 +702,8 @@
final
boolean hasFocus) {
setBackgroundNonSelectionColor(tree.getBackground());
setBackgroundSelectionColor(IndexTree.SELECTION_COLOR);
+ setTextNonSelectionColor(Color.BLACK);
+ setTextSelectionColor(Color.BLACK);
if(value instanceof DefaultMutableTreeNode || value
instanceof IndexTreeNode) {
Object o;
@@ -725,6 +727,11 @@
setLeafIcon(IconBox.minIndexReadOnly);
}
+ if (index.isObsolete()) {
+
setTextNonSelectionColor(Color.RED);
+
setTextSelectionColor(Color.RED);
+ }
+
}
if (o instanceof IndexTreeNode) {