[kepler-dev] kepler preference manager

Chad Berkley berkley at nceas.ucsb.edu
Mon Aug 8 12:47:49 PDT 2005


Cool.  It looks like your change works.  Is there a reason why you put 
the property in the 'actor library' entity?  This may cause problems for 
us later, since we are building the 'actor library' entity dynamically 
from KSW files.

thanks for looking into this.

chad

Edward A. Lee wrote:
> 
> I've just checked in a change that should fix the null pointer
> exception... You should now get a warning that there is no preferences
> in the configuration.  The VergilPreferences class currently looks
> for the preferences attribute at the following specific location
> in the configuration:
> 
> "actor library.Utilities.LocalPreferences"
> 
> So, unless Kepler uses a different name for the actor library,
> putting the following in the Kepler configuration should work:
> 
>   <entity name="actor library">
>     <entity name="Utilities">
>       <property name="LocalPreferences" 
> class="ptolemy.vergil.VergilPreferences"/>
>     </entity>
>   </entity>
> 
> If Kepler doesn't have "actor library" or "Utilities" in the configuration,
> then you could instantiate these by providing 
> class="ptolemy.kernel.CompositeEntity".
> 
> Let me know if this helps...
> 
> I'm open to suggestions for better ways to find the default preferences
> in the configuration...
> 
> Edward
> 
> 
> At 11:33 AM 8/8/2005 -0700, Chad Berkley wrote:
> 
>> Hey Edward,
>>
>> Since I know your checking your mail right now, I thought I'd throw a 
>> question at you.  I'm trying to get your new preferences changes to 
>> work in kepler.  After updating to your changes, kepler now refuses to 
>> load giving a NullPointerException at line 221 of VergilPreferences.  
>> I think the reason is that the preferences object is not being 
>> intialized properly.  I added a <property name="LocalPreferences" 
>> class="ptolemy.vergil.VergilPreferences"/> line to the kepler 
>> configuration.xml file but that doesn't seem to fix the problem.  Is 
>> there another file that I'm missing?
>>
>> thanks,
>> chad
>>
>> Edward A. Lee wrote:
>>
>>> We have a silly-looking hat labeled "I broke the build" that we
>>> make people wear at the group lunch if they break the build (I've
>>> worn it a few times).  Perhaps Kepler needs something like this? :-)
>>> Edward
>>> At 10:32 AM 8/8/2005 -0700, Chad Berkley wrote:
>>>
>>>> Hi Everyone,
>>>>
>>>> This is just a friendly reminder.  If you are checking code into 
>>>> kepler,
>>>> PLEASE, make sure it compiles.  Checking code into the repository that
>>>> does not compile is extremely inconvenient to other developers on the
>>>> project.  It been wasting a lot of time lately.  Before you check code
>>>> in, please run an 'ant clean run-dev'.  If you have added new files 
>>>> it's
>>>> also good to test your checkin in a 2nd module to make sure you didn't
>>>> forget any required classes.
>>>>
>>>> thanks,
>>>> chad
>>>> _______________________________________________
>>>> Kepler-dev mailing list
>>>> Kepler-dev at ecoinformatics.org
>>>> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-dev 
>>>>
>>>
>>>
>>> ------------
>>> Edward A. Lee
>>> Professor, Chair of the EE Division, Associate Chair of EECS
>>> 231 Cory Hall, UC Berkeley, Berkeley, CA 94720
>>> phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
>>> eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal
> 
> 
> ------------
> Edward A. Lee
> Professor, Chair of the EE Division, Associate Chair of EECS
> 231 Cory Hall, UC Berkeley, Berkeley, CA 94720
> phone: 510-642-0253 or 510-642-0455, fax: 510-642-2845
> eal at eecs.Berkeley.EDU, http://ptolemy.eecs.berkeley.edu/~eal 


More information about the Kepler-dev mailing list