How I can hide or remove (from ~) tags when I copy/paste Diagram Elements in Enterprise Architect? - enterprise-architect

In Enterprise Architect, when I copy and paste elements from A diagram to B diagram,
(from A diagram) <- I want to remove(or hide) this tag which is placed below elements.
How I can do this?
I tried to find this option in menu Start > Preferences but I couldn't find it.

You can control that setting through the diagram properties: Diagram | Appearance | Show Namespace

Related

What's this red "A" on my property?

This is a property in an ibd diagram using sysml1.3.
I don't know what this red letter A is in the low right corner. It's the only item that has it. I guess I have done something to get it but I don't know what and googling it has not given any answer. Can someone explain it?
It contains an attachment (Linked Document). Use Ctrl-Alt-D to view it. Use the context menu to delete (or edit) it.
I would just add that in some cases by default EA (v 14) can open document like diagrams - in full view, especially for CTRL+ALT+D shortcut (or right click on element with Linked Document and after selecting from context menu option Linked Document).
For below flows EA can open Dynamic Document tab by default, as preview next to the i.e. Element Properties, instead of Linked Document:
Start > Explore > Properties > Linked Document or
Show > Portals > Window > Document > Linked Document
Default Document tab by default instead of Linked Document
On Dynamic Document you won't find option to delete Linked Document:
Delete is not available for Dynamic Document
Just switch to the Linked Document, from hamburger select delete and that's it:
Delete is available for Linked Document

How to Create or edit existing PCB template (Title block) in Altium Designer v17

I would like to create a personalize PCB template (Title block) for my company which include company information and logo. So I wanted to know how can I use or edit existing PCB sheet templates according to my needs?
Pariksit.
THIS ISN'T A QUESTION ABOUT PROGRAMMING. I'll answer but don't worry if someone delete the question.
I like to create my own title blocks. You can do that creating a schematic component and introducing the parameters you want.
In your schematic library, add a new component called Title_Block. Use lines and strings to create the fields.
I put these strings in red to show that are special strings starting with '=' sign.
These special strings will be replaced automatically by Altium when you create a parameters with the same name. I put some Altium default parameters (SheetNumber, SheetTotal, CurrentDate and Title) and two that we'll create (VersionRevision and Project). You can see other default special strings here: Schematic Text Strings.
In your schematic sheet, disable the Title Block to introduce yours. Right click on the schematic, Options > Sheet..., and uncheck the Title Block box.
Create your own parameters on Project > Project Options tab Parameters like this:
Now, when you add the component called _Title_Block it seems like this:
In Schematic Page,
Design->Project Template ->Choose a File
Now, following location will be open.
C:\Users\Public\Documents\Altium\AD16\Templates
Here, you can find like A3,A4 different template for Schematic and PCB also.
You can Edit that as per requirement.
To Edit or Change the logo in Template sheet:
Place->Drawing tool->Graphic.

Using Regular Expressions in Diagram Filters

I want to track changes with different Projects in Enterprise Architect.
The Project re-uses a multitude of architectural components in multiple instances. To track these dependencies we use a Tag in the Notes-Section of the component.
I would like to use the diagram filter to highlight components belonging to a certain sub-project with a tag in its "Notes" section.
Example:
Component 1 has "Proj_0805" in its Notes-Section
Component 2 has "Proj_0905, Proj_0805" in its Notes-Section
Component 3 has "" in its Notes-Section
Using the diagram filter i can highlight components with "Proj_0805".
I would like to be able to combine Highlighting-Conditions. For example highlight "Proj_.*"
Is there a way to do this with Enterprise Architect?
Cheers,
No, I don't think you can do that.
But of course you can send a feature request to Sparx to ask for it.

GMF display diagram example

How can I display a GMF diagram, with the file format "*.ecorediag" in Eclipse in a View?
The diagram should not be editable.
Is there a simple sample view that loads a diagram from say "/home/diagrams/test.ecorediag"
The GMF diagrams (including ecorediag) are rendered on the editor with the help of "org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer".
So the bare minimum code to make this work
DiagramGraphicalViewer viewer = new DiagramGraphicalViewer();
viewer.createControl(composite);
RootEditPart root = EditPartService.getInstance().createRootEditPart(
diagram);
viewer.setRootEditPart(root);
viewer.setEditPartFactory(new EcoreEditPartProvider());
viewer.getControl().setBackground(ColorConstants.listBackground);
viewer.setContents(diagram);

Eclipse plugin development: how to add functionality to editor

I have been trying there last days to extend the default editor (java, xml, all of them) functionality,
what I want to do is add a big ruler with text on the side of every editor.
example:
a default editor page looks like this:
|-----------|
|source |
|code |
| |
|-----------|
but i want it to be like this
|------|----|
|source| |
|code |line|
| |text|
|------|----|
also i can't use a view because the text in my ruler corresponds to a certain line and has to scroll along with the source code.
I have tried to do this by implementing IEditorActionDelegate
since I don't want a new editor, but to add functionality, but I could not find any solutions.
Wanted to mention that for putting my solution in practice i extended AbstractContributedRulerColumn
public class MyRuler extends AbstractContributedRulerColumn {
....
}
Arne's answer gave some good suggestions, but it still took me a while to figure out how to write a plugin that adds a column of text next to the editor.
I published a sample that just displays line numbers with an "x" after each line. Some useful resources I found along the way were:
Introduction to plugin development
Eclipse extensions and extension points
LineNumberColumn example that is really just a small amount of code that delegates to LineNumberRulerColumn buried in a bunch of compatibility stuff.
I think you are after the extension point org.eclipse.ui.workbench.texteditor.rulerColumns. The component that displays the line numbers in text editors is added using this point, so it should be possible to add other information, too.
Example from the API doc:
<extension
point="org.eclipse.ui.workbench.texteditor.rulerColumns">
<column
id="org.eclipse.ui.editors.columns.linenumbers"
name="Line Numbers"
class="org.eclipse.ui.internal.texteditor.LineNumberColumn"
enabled="false"
global="true"
includeInMenu="false">
<placement
gravity="0.9">
<after id="org.eclipse.ui.editors.columns.annotations"/>
</placement>
<targetClass
class="org.eclipse.ui.texteditor.AbstractDecoratedTextEditor">
</targetClass>
</column>
</extension>
After working with the ruler columns extension point for a while, I learned about the org.python.pydev.pydev_pyedit_listener extension point that lets you intercept the PyEdit creation event and wrap other controls around it. Some digging in the SWT widget reference let me add another pane on the right with a splitter, and I published a sample project. The main advantages are that you can choose where the new display appears, you can use any controls you like, and the user can scroll if there's too much text to fit in the display.