Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Import element to diagram individually
Import element to diagram individually [message #1858166] Sat, 18 March 2023 14:30
Leonardo  Jones is currently offline Leonardo JonesFriend
Messages: 21
Registered: November 2021
Junior Member
Hi, everyone,
I wanted a feature where the user could import one or more elements defined elsewhere into the diagram as many times as needed. I don't think using layers or filters will accomplish this, because they are imported all at once rather than individually.
One way I can think of is to import all of the predefined elements when user create a diagram, and then hide them all by a Begin operation. The user can then use the Show/Hide menu to select elements that display parts of them.
I followed the suggestions in this link https://www.eclipse.org/forums/index.php/m/1804184/?srch=programatically+hide#msg_1804184, but I ran into a problem, what is the available variable in Begin operation that represents the created diagram? Because this is the way to get the predefined elements in the diagram then hide them. By the way, the variable 'diagram' didn't work.
Is there anyone who can help me? Thank you.

[Updated on: Sat, 18 March 2023 14:34]

Report message to a moderator

Previous Topic:Eclipse Sirius - Overriding/Customisation of Native Features
Next Topic:Inhibit shape highlight when creating an edge
Goto Forum:
  


Current Time: Mon Oct 14 21:50:07 GMT 2024

Powered by FUDForum. Page generated in 0.03305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top