chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1236687 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
Date Fri, 27 Jan 2012 14:04:12 GMT
Author: fmui
Date: Fri Jan 27 14:04:12 2012
New Revision: 1236687

URL: http://svn.apache.org/viewvc?rev=1236687&view=rev
Log:
removed Sun classes dependancy from Workbench

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java?rev=1236687&r1=1236686&r2=1236687&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/TckDialog.java
Fri Jan 27 14:04:12 2012
@@ -56,6 +56,7 @@ import javax.swing.JTextField;
 import javax.swing.JTree;
 import javax.swing.SwingWorker;
 import javax.swing.ToolTipManager;
+import javax.swing.UIManager;
 import javax.swing.border.EmptyBorder;
 import javax.swing.tree.DefaultMutableTreeNode;
 import javax.swing.tree.DefaultTreeModel;
@@ -76,8 +77,6 @@ import org.apache.chemistry.opencmis.tck
 import org.apache.chemistry.opencmis.workbench.checks.SwingReport;
 import org.apache.chemistry.opencmis.workbench.model.ClientModel;
 
-import sun.swing.DefaultLookup;
-
 /**
  * TCK dialog and runner.
  */
@@ -390,12 +389,12 @@ public class TckDialog {
         private final Color backgroundNonSelectionColor;
 
         public TestTreeNodeRender() {
-            textSelectionColor = DefaultLookup.getColor(this, ui, "Tree.selectionForeground");
-            textNonSelectionColor = DefaultLookup.getColor(this, ui, "Tree.textForeground");
-            backgroundSelectionColor = DefaultLookup.getColor(this, ui, "Tree.selectionBackground");
-            backgroundNonSelectionColor = DefaultLookup.getColor(this, ui, "Tree.textBackground");
+            textSelectionColor = UIManager.getDefaults().getColor("Tree.selectionForeground");
+            textNonSelectionColor = UIManager.getDefaults().getColor("Tree.textForeground");
+            backgroundSelectionColor = UIManager.getDefaults().getColor("Tree.selectionBackground");
+            backgroundNonSelectionColor = UIManager.getDefaults().getColor("Tree.textBackground");
 
-            Insets margins = DefaultLookup.getInsets(this, ui, "Tree.rendererMargins");
+            Insets margins = UIManager.getDefaults().getInsets("Tree.rendererMargins");
             if (margins != null) {
                 setBorder(new EmptyBorder(margins.top, margins.left, margins.bottom, margins.right));
             }



Mime
View raw message