Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: tekbe on May 19, 2010, 07:43:53 pm

Title: Problem with imagesOnly attribute in toolbox page
Post by: tekbe on May 19, 2010, 07:43:53 pm
Hi. I've got another beginner question: Following the instructions from the documentation http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/toolbox_page_attributes.htm I tried to create a toolbox page without textual labels (just the icons) by using the imagesOnly attribute, but after deploying the technology the labels are still displayed. Can someone please point me to the error?

Thanks!

This is the resulting toolbox profile (I removed the icons here):
Code: [Select]
<?xml version="1.0" encoding="windows-1252"?>
<UMLProfile profiletype="uml2">
      <Documentation id="69E6179E-9" name="SoaToolbox" version="1.0" notes="SoaToolbox"/>
      <Content>
            <Stereotypes>
                  <Stereotype name="SoaElements" alias="Soa Elements" notes="Elements for Soa Diagrams" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
                        <AppliesTo>
                              <Apply type="ToolboxPage"/>
                        </AppliesTo>
                        <TaggedValues>
                              <Tag name="SOA::Domain(UML::Package)" type="string" description="" unit="" values="" default="Domain"/>
                              <Tag name="SOA::Service(UML::Package)" type="string" description="" unit="" values="" default="Service"/>
                              <Tag name="SOA::Interface(UML::Class)" type="string" description="" unit="" values="" default="Interface"/>
                              <Tag name="SOA::DataType(UML::Class)" type="string" description="" unit="" values="" default="DataType"/>
                              <Tag name="SOA::Exception(UML::Class)" type="string" description="" unit="" values="" default="Exception"/>
                              <Tag name="SOA::Provider(UML::Class)" type="string" description="" unit="" values="" default="Provider"/>
                              <Tag name="SOA::Consumer(UML::Class)" type="string" description="" unit="" values="" default="Consumer"/>
                        </TaggedValues>
                  </Stereotype>
                  <Stereotype name="SoaRelationships" alias="Soa Relationships" notes="Relationships for Soa Diagrams" cx="90" cy="70" bgcolor="-1" fontcolor="-1" bordercolor="-1" borderwidth="-1" hideicon="0">
                        <AppliesTo>
                              <Apply type="ToolboxPage"/>
                        </AppliesTo>
                        <TaggedValues>
                              <Tag name="imagesOnly" type="boolean" description="" unit="" values="true,false" default="true"/>
                              <Tag name="SOA::Consume(UML::Association)" type="string" description="" unit="" values="" default="Consume"/>
                              <Tag name="SOA::Define(UML::Association)" type="string" description="" unit="" values="" default="Define"/>
                              <Tag name="SOA::Realise(UML::Association)" type="string" description="" unit="" values="" default="Realise"/>
                        </TaggedValues>
                  </Stereotype>
            </Stereotypes>
            <TaggedValueTypes/>
      </Content>
</UMLProfile>
Title: Re: Problem with imagesOnly attribute in toolbox p
Post by: Paolo F Cantoni on May 19, 2010, 09:37:43 pm
Hi tekbe,

The only thing I can see that's different from mine is that the tag on mine is "ImagesOnly" (uppercase "I").  Mine works...

HTH,
Paolo
Title: Re: Problem with imagesOnly attribute in toolbox p
Post by: «Midnight» on May 19, 2010, 09:49:47 pm
My experience is that you have to use exactly the right case for all keywords. Not only that, but you must make sure that all the various files, entries and whatever throughout the chain precisely match up. Otherwise things will fail. These failures are usually major, leaving no usable result. Sometimes you will get results but things will not be quite what you want. In most cases the failures will be silent, producing nothing in the way of an error message.

Unfortunately the documentation is not comprehensive. But at least it is mostly correct. Back a major version or so ago some of the documentation was misleading, and some of the keywords weren't clearly presented. Lots of custom experimentation might be needed to get things working.

Try Paolo's suggestion, changing "i" to "I" and reloading the profile. Then work your way through each file and manually typed entry in the chain, making sure things are perfect before moving to the next step.

David
Title: Re: Problem with imagesOnly attribute in toolbox p
Post by: tekbe on May 19, 2010, 10:14:12 pm
Thanks Paolo, thanks David! Unfortunately the uppercase "I" doesn't make a difference. So I'm looking for further errors...

I'm missing a DSL with model validation here. ;)