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

Christopher Brooks cxh at eecs.berkeley.edu
Thu Apr 1 17:21:01 PDT 2010


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


More information about the Kepler-dev mailing list