[kepler-dev] Hiding port names

Edward A Lee eal at eecs.berkeley.edu
Sat Jul 24 07:43:57 PDT 2004


At 04:02 PM 7/21/2004 -0700, Efrat Jaeger wrote:
>Hi,
>
>I'm using the _showName attribute to reveal port names in the 
>constructors. These definitions cannot be disabled as they are part of the 
>class definition. Is there a way to set the _showName attribute as a 
>default value but still be able to disable it?
>
>Thanks,
>Efrat

(Note: I've changed the cc from ptolemy-hackers to ptresearch,
since this isn't relevant to any current release).

I'm checking into the cvs tree a fix that changes the way
several marker attributes have been used.  These are:

   _showName
   _hideName
   _hide
   _centerName

Previously, these attributes have their effect by either being
present or absent.  Unfortunately, this mechanism is no longer
very useful now that we have actor-oriented classes.

I've changed the mechanism so that these are now boolean-valued
parameters so that they can be set or unset irrespective of
whether they are defined in a class.

We really need to set things up so that kepler folks are routinely
building against a cvs snapshot of Ptolemy II, so that changes
like this can be taken advantage of without waiting for a release...

I tried putting kepler and our Ptolemy II cvs tree side by side
and setting KEPLER and PTII appropriately, and using ant to build,
but "ant run" doesn't work for me... I get:

java.lang.Exception: Failed to read configuration 
'jar:file:/C:/ptII/lib/kepler-configs.jar!/ptolemy/configs/kepler/configuration.xml'

         at 
ptolemy.vergil.VergilApplication._createDefaultConfiguration(VergilApplication.java:278)

         ....
   java.lang.NoClassDefFoundError: ptolemy/data/type/BaseType (wrong name: 
src/exp/ptolemy/data/type/BaseType) in 
jar:file:/C:/ptII/lib/kepler-configs.jar!/ptolemy/configs/kepler/configuration.xml 
at line 9 and column 62
Caused by:
  java.lang.NoClassDefFoundError: ptolemy/data/type/BaseType (wrong name: 
src/exp/ptolemy/data/type/BaseType)

         at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2778)

         at com.microstar.xml.XmlParser.parseElement(XmlParser.java:952)

...


Any ideas?


Edward



------------
Edward A. Lee, Professor
518 Cory Hall, UC Berkeley, Berkeley, CA 94720
phone: 510-642-0455, fax: 510-642-2739
eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal




More information about the Kepler-dev mailing list