chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1428867 - /chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/InfoPanel.java
Date Fri, 04 Jan 2013 14:04:13 GMT
Author: fmui
Date: Fri Jan  4 14:04:13 2013
New Revision: 1428867

URL: http://svn.apache.org/viewvc?rev=1428867&view=rev
Log:
Workbench: some links didn't repaint after an update

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

Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/InfoPanel.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/InfoPanel.java?rev=1428867&r1=1428866&r2=1428867&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/InfoPanel.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/InfoPanel.java
Fri Jan  4 14:04:13 2013
@@ -207,6 +207,7 @@ public abstract class InfoPanel extends 
         private static final long serialVersionUID = 1L;
 
         private String link;
+        private boolean updated = false;
         private final JPopupMenu popup;
 
         public ClickableTextField() {
@@ -283,6 +284,8 @@ public abstract class InfoPanel extends 
                 link = text;
             }
 
+            updated = true;
+
             super.setText(text);
         }
 
@@ -296,6 +299,10 @@ public abstract class InfoPanel extends 
 
         @Override
         public void repaint(long tm, int x, int y, int width, int height) {
+            if (updated) {
+                super.repaint(tm, x, y, width, height);
+                updated = false;
+            }
         }
 
         @Override



Mime
View raw message