<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>RE: Java BON SetAttribute problems</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<P><FONT SIZE=2>Hi Alex,<BR>
<BR>
It helped and I am able to change attributes within my diagram, thanks.<BR>
<BR>
Now that I am able to change attribute values, is it possible for example change the color of a object in the diagram if lets say a modelīs boolean attribute is true or false?<BR>
<BR>
Like:<BR>
<BR>
"if self.Enable then let self.color = 0x0000FF else true endif" as a constraint attached to the model or should I place a if then else in the general preference field.<BR>
<BR>
I know the above will not work ;-)<BR>
<BR>
I have seen the feature in the GReAT tool, where the color changes when a new object should be created or deleted upon pattern matching.<BR>
<BR>
Regards,<BR>
Jesper<BR>
<BR>
-----Original Message-----<BR>
From: Alex Goos [<A HREF="mailto:alexander.goos@epfl.ch">mailto:alexander.goos@epfl.ch</A>]<BR>
Sent: Fri 2/3/2006 8:40 PM<BR>
To: gme-users@list.isis.vanderbilt.edu<BR>
Cc: Jesper Berthing<BR>
Subject: Re: Java BON SetAttribute problems<BR>
<BR>
Hi Jasper<BR>
<BR>
This is one of the half a dozen errors in the JavaBON that make you <BR>
doubt its usefulness for updating.<BR>
-> Open gme.jar and replace the following, commented line in <BR>
org.isis.jaut.Dispatch:<BR>
<BR>
<BR>
public void put(String dispName, Object arg0, Object value)<BR>
{<BR>
//invokeSub(dispName, DISPATCH_PROPERTYPUT, new Object[] <BR>
{ value, arg0 }, DISPID_PROPERTYPUT_ARG);<BR>
invokeSub(dispName, DISPATCH_PROPERTYPUT, new Object[] <BR>
{ arg0, value }, DISPID_PROPERTYPUT_ARG);<BR>
}<BR>
<BR>
and rebuild gme.jar<BR>
<BR>
I'm going to post the other bugfixes as soon as I've got them <BR>
compiled nicely.<BR>
<BR>
Alex<BR>
<BR>
<BR>
><BR>
> I am having problems with the setAttribute method in the JAVA BON <BR>
> interface, I am not able to change the value of Bool, Integer, <BR>
> Float or String.<BR>
><BR>
> I am able to get all attributes with the getAttribute(), no problem.<BR>
> When I use the getStatus() method it returns -1, do not know if <BR>
> that is important.<BR>
><BR>
> I found a post from mar. 2005 having the same problem but using <BR>
> this apporach:<BR>
><BR>
> "atom.getIAtom().getAttributes().getItem(3).setBoolValue(false);"<BR>
><BR>
> Is it possible to change the attributes? and what could I be doing <BR>
> wrong.<BR>
><BR>
> Thanks,<BR>
> Jesper<BR>
><BR>
> Data:<BR>
> GME5.9.21 and I use the Java BON source code that is supplied in <BR>
> the source distribution of GME5.9.21<BR>
><BR>
><BR>
><BR>
><BR>
> -------------- next part --------------<BR>
> An HTML attachment was scrubbed...<BR>
> URL: <A HREF="http://list.isis.vanderbilt.edu/pipermail/gme-users/">http://list.isis.vanderbilt.edu/pipermail/gme-users/</A><BR>
> attachments/20060203/c448d18f/attachment-0001.htm<BR>
><BR>
> ------------------------------<BR>
><BR>
> _______________________________________________<BR>
> gme-users mailing list<BR>
> gme-users@list.isis.vanderbilt.edu<BR>
> <A HREF="http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users">http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users</A><BR>
><BR>
><BR>
> End of gme-users Digest, Vol 26, Issue 3<BR>
> ****************************************<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>