Enterprise Architect: Default settings for test artifact rendering possible? - modeling

for Use Cases and Test Classes/Suites, Sparx EA does support a rectangle notation instead of the default elliptic appearance.
(As described here: http://www.sparxsystems.com/enterprise_architect_user_guide/modeling_languages/usingrectanglenotation.html)
Is it possible to make the rectangular notation the [ EA-wide | project-wide | package-wide ] default for test classes/suites?

As no answer came in here, I posted the same question to the Sparx forum and a user answered it: You can use EA's API to achieve that, as there is no such setting.

Related

Sparx Enterprise Architect: Show programming language in component diagram

I am using Sparx Enterprise Architect and am somehow confused that I did not find any hint on the internet regarding the following question: How can I show the programming language of a component in the component diagram?
It is clear to me that I could use custom stereotypes but this is not a good idea as it prevents me from using "real" stereotypes later on.
The reason is simply that you can not show it using EA's GUI. You would need to stereotype the element and come up with a shape script to display the language with a
print("#language#");
somewhere.
To assign a shape script to a stereotype there are two ways, the quick and dirty and the difficult one. Here's the q&d one:
Under Configure/UML Types you can add a new 'wild' stereotype. That is one with no profile. EA will show that as <none> when applied. Think of a fitting name and choose Edit with the shape script:
Here can enter the new shape script (since this depends very much here's a simple one):
shape main {
Rectangle(0, 0, 100, 100);
println("#name#");
println("#language#");
}
Save the edit and close the dialog. Once you assign the stereotype to an element it will render like this:
I know this is not pretty and you need to dig into shape scripts to make it useful, but that can't be avoided.
So the difficult, but better and preferred, way is to create your own profile containing the stereotype along with the shape script. The above would just be a way of testing it but finally you would need to create your profile and put it in a MDG. Since this is a quite complex task it won't go here into this answer (no, I'm not Fermat, but you need quite some effort to get that far).
There is no standardized way to show the programming language of a component in UML. There are several ways you can do it, for example:
Stereotype. This will not prevent you from adding other stereotypes in the future. Multiple stereotypes are shown comma separated: «stereotype1, stereotype2»
Generalization. You can define a component called 'JavaComponent' and let all Java components inherit from this base component.
Note. You can attach a note to the component specifying the language.

Automatically generate graphical documentation for XSD like XmlSpy does

I would like to generate a graphical documentation of some XSD files (XML schema definition).
I know, there are a few projects that do a good job generating a textual documentation. But I use XmlSpy and I really love the tree that I get when I click on "print".
I would like to generate this automatically on a continuous integration server.
The question is: how can I get this scripted? I found a forum post that sais "it's possible", but I don't have a clue where to start.
EDIT: the focus here is doing it from the command line rather than having a graphical editor.
Some ideas:
You may like Xsdvi, which converts an input XSD into an SVG diagram like this one (which I think is a logical choice: it's an XML to XML conversion). It is simple to use and its output can be rendered to any scale, it is SVG after all.
This tool was mentioned in this off-topic and deleted post (requires 20k+ rep to view). And there's XSDiagram, check it out.
Apparently, JDeveloper can be used for this, as this post shows, which is free for registered users.
I have not tried any of these, I'm happy with what oXygen provides. Try them out. Be aware that asking for tools is typically off-topic on StackOverflow, though continuous-integration is not (hence I decided to answer anyway).
You can also use the stylesheets from the XS3P project. You can apply them using a standard XSLT transformation engine (Saxon...).
Thanks to #Abel for pointing me to XSD Diagram. Since version 1.0 this program can also write the annotations into the generated image.
I am using it in the following way now:
XSDDiagramConsole.exe -o picture.png -r rootnode -d -y -e 10 schema.xsd

Can angular-ui-grid be used with angular material design?

The title pretty much says it all: Can angular ui-grid be used with angular material design in a way that follows the material design principles?
It can, but only at a look and feel level. Basically most of the visual elements in ui-grid are over-rideable with templates (cellTemplate, rowTemplate etc). You can also override a lot of the css. So if you're prepared to work through it there's no reason why most of it cannot be tailored.
Be aware that the customize style option on the ui-grid site does not give you the ability to change most of the classes that you will eventually need to in order to make it conform to the material design spec. Additionally it lacks responsive features or the ability to create the kinds of animations/transitions that are a signature of material design.
I really like both projects, its just hard to try and build an app on two frameworks that are currently under active development. I am using ui-grid in my Angular-Material app, but I don't think I would if I had to do it over again

How do I add a decision branch label in Enterprise Architect 9.3?

How do I add a Decision branch label in Enterprise Architect 9.3?
It is a very basic thing I guess. But this help page explains everything except what you expect from a help page, i.e. describing how to use it.
The solution was simple, but the terminology is not obvious unless you are confident in using Enterprise Architect.
Double click the connector, select the 'Constraints' tab and the put your label text in the 'Guard' field.

difference between rad masked text input and radmasked text box?

well i tried their web site also,they are only providing details regarding there use i mean about controls.
what is the exact difference between both of the above mentioned?
This Telerik's forum post answers, I think: http://www.telerik.com/community/forums/silverlight/maskedtextbox/is-it-possible-to-use-a-radmaskedtextinput-as-a-multiline-text-area.aspx#1863327
The RadMaskedInput controls don't support a "no-mask" scenarios at
the moment...
This is why ... it would be best to take
advantage of the RadMaskedTextBox control. It has a property MaskType,
which you can set to None. Also in order to make it multi-line, you
need to apply a custom style to its ExtendedTextBox element and set
its AcceptsReturn property to True.

Resources