Pop-up menu in Sparx Enterprise Architect - enterprise-architect

I use Sparx Enterprise Architect 13.5 and I made MDG technology for own requirements.
When I drag element from toolbox onto diagram with overlapping existing diagram element there is pop-up menu (see screen).
If I use default Class object from Class toolbox everything is fine, no menu.
How to supress menu ?

This is the default menu when you add a stereotype onto an element with the base meta-class.
In this case I suppose you extended your custom requirement stereotypes from UML Class?
If you extend them from another base metaclass such as Requirement you won't get this menu.
Or you can drop the requirement on an empty space in the diagram instead of on the class.

Related

How to hide stereotypes labels from my profile

I have created a new profile for activity diagram in EA(Enterprise Architect).
The stereotype I created is named dummy. The profile is created with some activity diagram elements, but I use elements from my newly created profile, on top of each element, something like is seen with element name «dummy» followed by the element name.
I would like to know if there is a way to hide the stereotype label. I have learned about shape script but couldn't figure it out well.
I am using EA version 13.
The only way (I know) is to turn off stereotype display for the whole diagram:
I first thought that DrawNativeShape in the shape script would work, but it also draws the stereotype. And it's near to impossible to show all compartments manually except for the stereotype. Just showing the class name (and individual drawings/texts) is simple. But showing attributes/operations and respecting the feature/diagram settings is near to impossible.

creating multiple edit parts in one drag from palette in GEF eclipse

I am currently using GEF framework for one of my requirement.
wish to create multiple figures with independent figures when dragging an item from the palette.
i am not sure the best approach to take for this. an edit part can only
create a single figure with child's inside. But i need independent figures.
Please let me know is there any way in GEF.
Have your implementation of EditPartFactory. When you drag an object from your Palette or viewer which contains the templates, create your model objects in class which implements CreationFactory.

How to focus on an object in a diagram in Enterprise Architect?

Developing an Extension in Enterprise Architect, it's possible to call Repository.OpenDiagram() function and open a specific diagram. Using the Diagram.SelectedObjects, objects on that diagram can be selected and the list of the selected ones is accessible. However, there I need to focus on a selected object, but cannot find the corresponding EA API/function.
How could I focus on an object so that it be displayed in the center of diagram window (without changing the real position of the object)?
Thanks in advance for any hint!
You can't, except if you use a windows library to simulate clicks on the scrollbar or something like that.
But I'm not recommending that approach as you'll never be sure it will actually put the element in the center.

Enterprise Architect class fill color

I have a very stupid question! I have created class diagram and right now I am trying to change class background fill color. I have not found any info in the help how to do that. Any suggestions?
Not a stupid question at all. There are a couple of different ways of doing this, depending on the scope you want.
To change the colour of one class in a single diagram, right-click it in the diagram. This opens up the context menu, but also opens a mini-toolbar. In this toolbar, the third icon from the left is the class fill colour. This toolbar can also be opened by selecting the class, and then clicking the middle of the three icons EA displays to the right of the class (the paintbrush).
Using this toolbar you can change the class colour locally. It does not affect how the class is displayed in other current or future diagrams, it is specific to the diagram you're in.
If you want to change the appearance of a class in all diagrams, right-click it and select Appearance -- Default Appearance. If you change the colour here, it will affect all future diagrams and all current diagrams except the ones where you've specified a local colour for the class as above.
Finally, you can change the EA-wide colour scheme in Tools -- Options -- Standard Colors. This affects all elements in all diagrams, unless you've specified something else for an element using either of the above methods.
In addition to these, if you create a profile you can specify a different appearance for a particular stereotype using shape scripts. But that's a different question.

Sitecore - how to persist a Layout change

I developed a Sitecore control I'd like to put into a layout on one page.
In this case it's a registration page, and my control is defined as a sublayout.
What I did is went into the Page Editor interface, and plonked the control into one of the placeholders.
What I want to do now is to create a package only containing the information that this control is on this particular page, without affecting e.g. the content or subitems of this node.
Can you please advise on the best way to create such packag, what exactly to select in the Package Designer?
Thanks
I don't believe the Package Designer gives you granular control to include just specific fields of an item. You need to add the item as whole.
You should configure layouts and renderings in the presentation details of an item OR even better in the __Standard Values of the template.
You can call the presentation details dialog through the content editor. Just select an item in the content tree, click on the Presentation tab in the top ribbon and select Details. You can configure all layouts/renderings for the selected item here.
But ff you want to prevent content changes you really SHOULD configure the presentation in the __Standard Values of the template. This is also the way, which is recommended by Sitecore. If you do this, the layouts are all you have to put into a package.