classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: BasicTreeUI.updateCurrentVisiblePath() only when treeM


From: Mark Wielaard
Subject: [cp-patches] FYI: BasicTreeUI.updateCurrentVisiblePath() only when treeModel != null
Date: Mon, 31 Oct 2005 00:16:13 +0100

Hi,

We didn't check whether or not we actually had a tree model set when we
updated the current visible path.

2005-10-30  Mark Wielaard  <address@hidden>

        * javax/swing/plaf/basic/BasicTreeUI.java
        (updateCurrentVisiblePath): Check whether treeModel is null.

This makes the Class Browser in the beanshell swing gui show up.
Unfortunately it doesn't seem to work yet. (Click on the Desktop, and up
pops a little menu where you can select "New Class Browser".)

Committed,

Mark

diff -u -r1.104 BasicTreeUI.java
--- javax/swing/plaf/basic/BasicTreeUI.java     19 Oct 2005 11:52:58 -0000     
1.104
+++ javax/swing/plaf/basic/BasicTreeUI.java     30 Oct 2005 23:12:19 -0000
@@ -3797,6 +3797,9 @@
    */
   void updateCurrentVisiblePath()
   {
+    if (treeModel == null)
+      return;
+
     Object next = treeModel.getRoot();
     Rectangle bounds = getCellBounds(0, 0, next);


Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]