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

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri Aug 15 11:45:47 PDT 2008


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.


More information about the Kepler-dev mailing list