Book a Demo

Author Topic: Toolbox Profiles  (Read 9375 times)

richi

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Toolbox Profiles
« on: February 04, 2008, 08:18:05 am »
Hy @ll,

I try to define a Toolbox Profile (http://www.sparxsystems.com.au/EAUserGuide/index.html?toolbox_profiles.htm), but can’t seem it to work. The problem is that the Toolbox came up but don’t show the elements.
Is it possible to import only the Toolbox Profile without the MDG stuff?


thx

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Toolbox Profiles
« Reply #1 on: February 04, 2008, 01:56:03 pm »
Quote
I try to define a Toolbox Profile (http://www.sparxsystems.com.au/EAUserGuide/index.html?toolbox_profiles.htm), but can’t seem it to work. The problem is that the Toolbox came up but don’t show the elements. Is it possible to import only the Toolbox Profile without the MDG stuff?

No, the Toolbox Profile must be wrapped in an MDG Technology. If you'd like to send your technology file to Sparx Support then I'll have a go at figuring out why it isn't working.

Neil
The Sparx Team
[email protected]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Toolbox Profiles
« Reply #2 on: February 04, 2008, 02:15:41 pm »
Richi,

First make sure you're loading it the 'new' way. Check that you are doing so by placing the XML file in the Technologies directory, or adding your directory via the Tools | MDG Technologies dialog.

If you have the help file for a build before 825 the entry at the very bottom of the MDG page points you to the 'old' way. This will load your technology, but you won't see the toolbox stuff.

HTH, David

PS: Thanks for the hints on this Neil; I figure it's time to pass them on to the rest of the community.
No, you can't have it!

richi

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Toolbox Profiles
« Reply #3 on: February 05, 2008, 12:14:44 am »
Hy,

After adding the XML – File to the MDG Technologies directory it works.
Thanks a lot!

Richi

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Toolbox Profiles
« Reply #4 on: February 05, 2008, 02:29:57 am »
While I have got toolboxes to work OK, the one aspect I haven't managed to crack is overriding the default toolbox for a diagram.  I believe I've followed the help as required,  but no luck - has anyone got this working ?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Toolbox Profiles
« Reply #5 on: February 05, 2008, 03:37:43 am »
Hi Graham,

They have been working in this area for a while. Try it under build 825. Please let me know if the problem persists there.

David
No, you can't have it!

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Toolbox Profiles
« Reply #6 on: March 07, 2008, 02:36:17 am »
David - I've tried this in 7.1 beta 2 now and still can't get it to work.  
As the help says I've included the override as follows in the notes to the profile "diagram",

Quote
RedefinedToolbox=Extended::Requirements;Alias=xxxxx;Notes=yyyyy;

The toolbox profile loads OK, but that's it.  If I look at the XML file for the technology which is what gets loaded,  I can't see any reference to this override string which may have something to do with it

Graham

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Toolbox Profiles
« Reply #7 on: March 07, 2008, 04:53:29 am »
Here's an idea to try Graham. If it does not work please get a support request in to Sparx immediately so they can see it before they AUS weekend.

Make sure your technology is active when you create your diagram. Normally this would be automatic, but I've managed to not make my technologies active more times than I care to remember.

The easiest way is to use the drop-down on the Default Tools toolbar, which us usually visible. Just select your technology, and make sure it remains displayed. Then create your diagram.

One other thing. Make sure you have the exact string everywhere you mention anything by name. All of them are case sensitive. And try switching name, alias, and initial value where there are multiple strings to choose from.

If that fails fire in the support request.

This is likely a question of how you are referencing something.

Please let me know what happens.

David
No, you can't have it!

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Toolbox Profiles
« Reply #8 on: March 07, 2008, 09:56:25 pm »
I changed the way the technology is loaded - I was importing into "resources" which is deprecated apparently, so I just put the XML file into the EA install directory as suggested by the help.  This works fine to load the technology,  but there's still no toolbox override, although this doesn't surprise me as the override didn't seem to get into the xml file anyway when generating the technology.  

I believe the technology is "active", although can you define that for me ?  It's definitely "enabled",  is the default technology shown, and is available under "more tools" to select the toolboxes.  I can change the visibility to get them pinned and available,   however that's not the same as dynamic availability based on diagram.   I raised a support call yesterday but haven't heard anything back.    Still not sure though if I'm doing something silly, but I believe I've put the string where I was told in the help (profile diagram notes only) and have respected the case sensitivity.

Graham.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Toolbox Profiles
« Reply #9 on: March 08, 2008, 12:37:22 am »
It sounds like you have the technology active, so that's done. And you are loading the technology correctly.

As to Sparx, remember that they are down under, so the weekend has begun.

David
No, you can't have it!

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Toolbox Profiles
« Reply #10 on: March 11, 2008, 09:15:58 am »
"... so the weekend has begun."

And it ended late too - we had a public holiday here, Labour Day, on Monday. This seems to be a common holiday the world over. Somewhat of a puzzle that we call this day Labour Day and celebrate it by ceasing to labour...
Best Regards, Roy

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Toolbox Profiles
« Reply #11 on: March 11, 2008, 09:34:38 am »
Quote
"... so the weekend has begun."

And it ended late too - we had a public holiday here, Labour Day, on Monday. This seems to be a common holiday the world over. Somewhat of a puzzle that we call this day Labour Day and celebrate it by ceasing to labour...
But of course, being in the Land of AUS, you think it occurs in March instead of September. I suppose that's forgivable, given that you don't even know it's winter...    ;D

We've been having a long weekend too, up here in the Frozen North. Not a holiday though, just 56 cm of snow, on top of the 355 cm we had so far. Everything is moving a bit slower than most Mondays.
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Toolbox Profiles
« Reply #12 on: March 11, 2008, 10:06:40 am »
Quote
We've been having a long weekend too, up here in the Frozen North. Not a holiday though, just 56 cm of snow, on top of the 355 cm we had so far. Everything is moving a bit slower than most Mondays.
How I would've loved some snow this weekend. The temperature got up to 37C (98F) and I had to shovel 2 cubic metres of gravel onto our flower beds (4 utes-full). Mad dogs and Englishmen...  :-/

Anyway, back to the problem at hand. Graham, you say that the RedefinedToolbox setting isn't getting written to the profile XML. My guess is that you are saving the profile by right-clicking the <<profile>> package and using the "Save Package as UML Profile" command. This will only work if the RedefinedToolbox setting is in the package's notes. With the setting in the diagram's notes, you will need to right-click the diagram and use the "Save as Profile" command from there.

HTH,

Neil
The Sparx Team
[email protected]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Toolbox Profiles
« Reply #13 on: March 11, 2008, 10:24:14 am »
Quote
...
My guess is that you are saving the profile by right-clicking the <<profile>> package and using the "Save Package as UML Profile" command. This will only work if the RedefinedToolbox setting is in the package's notes.
...
Neil,

Are you referring to the stereotype profile package, or the diagram profile? I was under the (strong) impression that the latter case required saving the diagram (below the package) as a profile, not the package. [Boy, the terminology is confusing here.]

David
No, you can't have it!

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Toolbox Profiles
« Reply #14 on: March 11, 2008, 09:58:05 pm »
This was certainly part of the problem.  Using the diagram "save as profile",  and with the diagram notes set to

RedefinedToolbox=Extended::Requirements;Alias=nnnnnn;Notes=yyyyyy;

I now get the following in the XML file

<Options>
   <Option name="RedefinedToolbox" value="Extended::Requirements"/>
</Options>

which looks promising.  However,  this doesn't seem to have any effect - the technology gets loaded fine automatically at EA start up and is the active technology.  I can use the profiles/toolboxes, and pin them to the main toolbox but still don't seem to get this toolbox displayed automatically if I open a requirements diagram.   So what else am I doing wrong ?

I did get a reply from Sparx Support along the same lines and have replied with this info and the XML file.

Graham