Changeset 1226


Ignore:
Timestamp:
Nov 20, 2008 3:04:58 PM (12 years ago)
Author:
dkearney
Message:

fixing bug where loader fails to show the correct label when using the zoo/loader example.
moving the xml copy from newobj to inside of a similar check to see if the path exists in newobj.
adding example of using the loader copy feature in tcl.

Location:
trunk
Files:
13 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/controlOwner.tcl

    r1225 r1226  
    275275
    276276        # copy new value to the XML tree
     277        # also copy to the widget associated with the tree
     278        #
    277279        # we only copy the values if they existed in newobj
    278280        # so we don't overwrite values that were set in previous loads.
     
    287289        # newobj and see if the path exists. if the path exists, then we copy
    288290        # it over to [tool] xml, otherwise we ignore it.
    289         if {"" != [$newobj element -as component $currentpath]} {
     291        if {"" != [$newobj element -as type $currentpath]} {
    290292            [tool] xml copy $currentpath from $newobj $currentpath
    291         }
    292 
    293         # also copy to the widget associated with the tree
    294         if {"" != [$newobj element -as type $path]} {
    295293            set val [$newobj get $currentpath]
    296294            if {[string length $val] > 0
Note: See TracChangeset for help on using the changeset viewer.