[kepler-dev] [Fwd: [Bug 3471] - custom input boxes in actor configuration dialog]

Christopher Brooks cxh at eecs.berkeley.edu
Fri Aug 15 11:50:31 PDT 2008


Hi Peter,
I folded in your changes, but there is a small issue if I
try to use your example code in packages outside of ptolemy.gui.

Any suggestions short of making ptolemy.gui.Query expose
the inner classes?

_Christopher

-------- Original Message --------
Subject: [kepler-dev] [Bug 3471] - custom input boxes in actor 
configuration	dialog
Date: Fri, 15 Aug 2008 11:45:47 -0700 (PDT)
From: bugzilla-daemon at ecoinformatics.org
To: kepler-dev at ecoinformatics.org

http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3471


cxh at eecs.berkeley.edu changed:

            What    |Removed                     |Added
----------------------------------------------------------------------------
            Priority|P1                          |P3




------- Comment #1 from cxh at eecs.berkeley.edu  2008-08-15 11:45 -------
I folded the Ptolemy changes in to the Ptolemy Tree.
One issue is that one of the files in the example code from
http://www.scms.waikato.ac.nz/~fracpete/downloads/ptolemy/custom_query_boxes/examples-classes.zip
need to be in ptolemy.actor.gui

I tried to put QueryInputDialogChooser into ptolemy/actor/gui/test,
but compilation fails because that class uses some package protected inner
classes in ptolemy.actor.gui.

CLASSPATH="../../../.." "/usr/bin/javac" -g -O InputDialogParameter.java
../../../../ptolemy/actor/gui/test/QueryInputDialogChooser.java:116:
ptolemy.gui.Query.QueryActionListener is not public in ptolemy.gui.Query;
cannot be accessed from outside package
     _entryBox.addActionListener(_owner.new QueryActionListener(name));
                                            ^
../../../../ptolemy/actor/gui/test/QueryInputDialogChooser.java:129:
ptolemy.gui.Query.QueryFocusListener is not public in ptolemy.gui.Query; 
cannot
be accessed from outside package
     _entryBox.addFocusListener(_owner.new QueryFocusListener(name));
                                           ^
../../../../ptolemy/actor/gui/test/QueryInputDialogChooser.java:139:
_notifyListeners(java.lang.String) is not public in ptolemy.gui.Query; 
cannot
be accessed from outside package
       _owner._notifyListeners(_name);

The obvious thing is to make the package protected code non-package 
protected.
There are probably other, more elegant solutions though.
_______________________________________________
Kepler-dev mailing list
Kepler-dev at ecoinformatics.org
http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev

-- 
Christopher Brooks (cxh at eecs berkeley edu) 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: 400A Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480



More information about the Kepler-dev mailing list