[kepler-dev] vergil/tree/PTree.java code duplication

Christopher Brooks cxh at eecs.berkeley.edu
Fri Apr 2 16:05:24 PDT 2010


Hi Sean,
Cool!
Thanks, I patched PTree.java in both the ptII head and the 2.0 release branch.

_Christopher

On 4/2/10 2:59 PM, Sean Riddle wrote:
> Find attached a patch to PTree.java. Most of the modification is just a
> function I cribbed from RenameConfigurer.
>
>
>
>
> - Sean
>
>
> On Apr 1, 2010, at 5:21 PM, Christopher Brooks wrote:
>
>> Hi Sean,
>>
>> I noticed your recent checkin to
>> release-branches/ecogrid-2.0/src/ptolemy/vergil/tree/PTree.java
>>
>> It looks like that file is very similar to the original PTree.java:
>>
>> bash-3.2$ diff src/ptolemy/vergil/tree/PTree.java
>> ~/ptII/ptolemy/vergil/tree/PTree.java
>> 60,62d59
>> <
>> < // NOTE: This class is overridden to make reports not draggable from
>> the
>> < // search pane.
>> 137c134
>> < if (object instanceof NamedObj &&
>> !object.getClass().getName().endsWith("NondraggableTreeItem")) {
>> ---
>>> if (object instanceof NamedObj) {
>>
>>
>> If you send me a patch, I'll update the original PTree.java to better
>> suit your needs.
>>
>> _Christopher
>>
>> --
>> Christopher Brooks, PMP University of California
>> CHESS Executive Director US Mail: 337 Cory Hall
>> Programmer/Analyst CHESS/Ptolemy/Trust Berkeley, CA 94720-1774
>> ph: 510.643.9841 fax:510.642.2718 (Office: 545Q Cory)
>> home: (F-Tu) 707.665.0131 cell: 707.332.0670
>

-- 
Christopher Brooks, PMP                       University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670


More information about the Kepler-dev mailing list