#102260 Fixing selecting of the additional fragments in the page, features_49618_root
authorpzavadsky@netbeans.org
Tue, 01 May 2007 09:59:13 +0000
changeset 710d1e7591bde2f
parent 709 2eb05f924b1d
child 711 44f2cbef4edb
#102260 Fixing selecting of the additional fragments in the page,
caused by getBeanEquivalentTo impl.
visualweb.insync/src/org/netbeans/modules/visualweb/insync/live/LiveUnit.java
     1.1 --- a/visualweb.insync/src/org/netbeans/modules/visualweb/insync/live/LiveUnit.java	Tue May 01 01:04:46 2007 +0000
     1.2 +++ b/visualweb.insync/src/org/netbeans/modules/visualweb/insync/live/LiveUnit.java	Tue May 01 09:59:13 2007 +0000
     1.3 @@ -193,6 +193,13 @@
     1.4          if (lookFor == null) {
     1.5              return null;
     1.6          }
     1.7 +        
     1.8 +        // #102260 The bean is still alive, return it immediately.
     1.9 +        if (liveBeanList.contains(lookFor)) {
    1.10 +            return lookFor;
    1.11 +        }
    1.12 +
    1.13 +        // XXX This is not fully working solution.
    1.14          // I-m using name here, but that may not be good enough.  What
    1.15          // if the bean is in a sub page ?  May need to do some hierarchy
    1.16          // based lookup, but for now this will do