Note also the metamodel.xml and metamodel2.xml have taken over from the older format panel.xml files (I thought I had deleted those old ones but it seems not).
Bob. On 4 June 2010 13:07, Bob Tarling <[email protected]> wrote: > "body" should be the UML property name that the control will be > listing for changes to > > The XML states for a panel (the target model element) what controls > are on that panel. For each control there is an attribute containing > the types the control can contain and the property name the control is > to listen for. > > The differences of type and property name can also be used for > differentiation of the different controls in SwingUIFactory > > It sound though that text fields are not having their type set > correctly when the XML is read. Probably no text fields have needed > that value to differentiate so far. > > I'm back one week on Monday if you continue to have problems. > > Bob > > > > On 4 June 2010 09:55, Thomas Neustupny <[email protected]> wrote: >> Hi Bob, >> >> thanks for your help, I changed it to prop.getType().equals(String.class). >> >> But that doesn't help, because prop.getType() returns null! >> >> So I reverted the change, debugged with MDR and found that this code is not >> used for method bodies. What is the "body" clause for? >> >> Thomas >> >> -------- Original-Nachricht -------- >>> Datum: Fri, 4 Jun 2010 08:26:41 -0400 >>> Von: Bob Tarling <[email protected]> >>> An: [email protected] >>> Betreff: Re: [argouml-dev] help on property panels >> >>> getType should now be returning a class not a string. You could try >>> >>> Try changing that to "else if ("body".equals(prop.getName()) && >>> prop.getType() instanceof String)" >>> >>> Bob >>> >>> On 4 June 2010 02:42, Thomas Neustupny <[email protected]> wrote: >>> > Hi Christian, >>> > >>> > thank you for your answer. In detail my problem is, that in >>> SwingUIFactory the clause >>> > "else if ("body".equals(prop.getName()) && >>> "String".equals(prop.getType()))" fails, because prop.getType() is not >>> "String". How can I achieve that? >>> > >>> > (Don't bother with the getBody/setBody methods in eUML, I'm on it.) >>> > >>> > Thomas >>> > >>> > -------- Original-Nachricht -------- >>> >> Datum: Fri, 4 Jun 2010 00:58:04 +0200 >>> >> Von: "Christian López Espínola" <[email protected]> >>> >> An: [email protected] >>> >> Betreff: Re: [argouml-dev] help on property panels >>> > >>> >> On Thu, Jun 3, 2010 at 2:45 PM, Thomas Neustupny <[email protected]> wrote: >>> >> >>> >> > Hi, >>> >> > >>> >> > for UML2, I wanted to create a prop panel for OpaqueBehavior. It gets >>> >> > displayed and shows an icon, but I failed showing the "body" >>> textfield. >>> >> The >>> >> > property "body" has no type, but I explicitely added <textarea >>> >> name="body" >>> >> > type="String" /> in metamodel2.xml. I wanted to take care about the >>> >> > getters/setters in the model subsystem later. Can someone help me >>> >> > (Christian, Bob)? >>> >> > >>> >> > I committed my work, it's all UML2 only so it doesn't get in the way. >>> >> Also, >>> >> > it's not very urgent and can wait until after your holidays, Bob. >>> >> > >>> >> > >>> >> Hi Thomas, >>> >> In >>> >> >>> argouml-core-umlpropertypanels\src\org\argouml\core\propertypanels\ui\SwingUIFactory.java, >>> >> L133, is where the GUI object representing the body is created. It uses >>> >> UMLCommentBodyDocument (maybe UMLCommentBodyDocument should be renamed >>> to >>> >> UMLBodyDocument btw), which uses >>> >> >>> >> Model.getCoreHelper().setBody(getTarget(), text); >>> >> >>> >> and >>> >> >>> >> Model.getFacade().getBody(getTarget()); >>> >> >>> >> So if the EUML model implementation implements getBody and setBody for >>> the >>> >> desired target (I suppose that this would be an instance of Behavior or >>> >> OpaqueBehavior) it should work as a charm. >>> >> >>> >> Let me know if you need more help. I have not fully understood your >>> >> problem >>> >> and I'm not familiar with UML2 metamodel nor EUML. >>> >> >>> >> >>> >> >>> >> > Thanks in advance, >>> >> > Thomas >>> >> > -- >>> >> > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! >>> >> > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 >>> >> > >>> >> > ------------------------------------------------------ >>> >> > >>> >> > >>> >> >>> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2616427 >>> >> > >>> >> > To unsubscribe from this discussion, e-mail: [ >>> >> > [email protected]]. >>> >> > To be allowed to post to the list contact the mailing list moderator, >>> >> > email: [[email protected]] >>> >> > >>> >> >>> >> >>> >> >>> >> -- >>> >> Cheers, >>> >> >>> >> Christian López Espínola <penyaskito AT computer DOT org> >>> >> http://twitter.com/penyaskito | http://penyaskitodice.wordpress.com >>> >> >>> >> ------------------------------------------------------ >>> >> >>> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2616599 >>> >> >>> >> To unsubscribe from this discussion, e-mail: >>> >> [[email protected]]. >>> >> To be allowed to post to the list contact the mailing list moderator, >>> >> email: [[email protected]] >>> > >>> > -- >>> > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! >>> > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 >>> > >>> > ------------------------------------------------------ >>> > >>> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2616735 >>> > >>> > To unsubscribe from this discussion, e-mail: >>> [[email protected]]. >>> > To be allowed to post to the list contact the mailing list moderator, >>> email: [[email protected]] >>> > >>> >>> ------------------------------------------------------ >>> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2616837 >>> >>> To unsubscribe from this discussion, e-mail: >>> [[email protected]]. >>> To be allowed to post to the list contact the mailing list moderator, >>> email: [[email protected]] >> >> -- >> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! >> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 >> >> ------------------------------------------------------ >> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2616854 >> >> To unsubscribe from this discussion, e-mail: >> [[email protected]]. >> To be allowed to post to the list contact the mailing list moderator, email: >> [[email protected]] >> > ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2616930 To unsubscribe from this discussion, e-mail: [[email protected]]. To be allowed to post to the list contact the mailing list moderator, email: [[email protected]]
