Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Krzysztof Swiatkowski on March 20, 2008, 12:48:55 pm
-
Hi, is it possible to extend standard element and relationship properties window? Either by adding a button to call my window or by adding a new tab to it (it would be the best solution :) ). I need to add properties to elements from my MDG technology and using Tagged values seems too awkward.
Regards
Kris
-
No, it's not possible.
Even the Sparx Systems addins use tagged values.
-
Then it is definitely something worth adding to make life of addin makers easier :^) and allow for even greater extensibility of EA
This is especially true for BPMN where using Tagged values is cumbersome and for many business users unacceptable.
Think about it.
Regards
Kris
-
While one might hope for a way to include tagged values in the primary dialog, other than that, you have an issue of not having schema underneath these new values. Only by having Sparx create N user-defined fields in each table that one might want to extend ... any you know they would end up being the wrong datatype ... would one have anywhere to put these value. Tagged values is what it is exactly because it is an open-ended way of doing this.
-
Yeah. Question: why did Sparx put some of these in fixed locations (e.g. complexity, status, etc.) whilst the rest is placed in this Tagged Values window. I'd expect all of them somewhere in the properties like most other UML tools do it. That would open the path to configuring your own view.
-
Thomas, I don't have a problem with storing the data in tagged values because thats the way UML does it. My problem is that I want a bit more customized way of entering them.
If there was a way to implement custom property pages I could create my own window and for example allow for entering them in different way and locking access to some of them based on the value of others.
Using tagged values I have to publish all fields always regardless of whether it makes sense or not.
"abcde" also has a point because having tagged values tab would make propoerty window single place for element property editing. Think about it Sparxians :) this shouldn't be complicated you have the tagged values code already.
-
In fact, they do this already with some of their "magic" stereotypes like «table» and «column». What is needed is for them to open up this interface so that we can use it ... and also to normalize those magic stereotypes so that we can override them and retain the magic behavior.
-
In fact, they do this already with some of their "magic" stereotypes like «table» and «column». What is needed is for them to open up this interface so that we can use it ... and also to normalize those magic stereotypes so that we can override them and retain the magic behavior.
I think you've nicely captured and crystallized the issue Thomas.
-
Maybe you can do something in an add-in by intercepting the EA_OnContextItemDoubleClicked broadcast?
-
Thanks,
You beat me to looking up and suggesting that.
-
Kris,
you also need to use the EA_OnPostNewElement event if you want to pop up the custom screen when the new element is dragged onto a diagram.
The EA_OnContextItemDoubleClicked is needed to allow you to edit the element afterwards.
We are using this functionality in Time Architect to pop up the TA risk dialog screen. (We then populate tags in the background). If you want to see it in action, why not download a free 30 day evaluation copy of TA. Open up the TA profile (or the TA example model)
If you want any further help on how we did it, then drop me a PM and I'll be happy to help.
Best regards,
Matt
-
All very nice, yet I have seen other tools including the general attributes\tagged values\whatever in the properties dialog. I see no reason why it wouldn't be added also in EA. Use the same tagged values form, just in a new tab in the properties dialog.
Is it that hard or revolutionary?
-
There used to be a Tagged Values tab in most (if not all) properties dialogs. This disappeared when the Tagged Values pane came into being.
Merely a history lesson here; I'm certainly not trying to explain or justify the change.
-
Eat it or die with another tool. You don't have a choice. Take it!
-
Yammi Yammi ;)