Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to activate the filter programatically in eclipse sirius(How to activate the filter programatically in eclipse sirius)
How to activate the filter programatically in eclipse sirius [message #1808893] Thu, 04 July 2019 05:13 Go to next message
Sharmila D is currently offline Sharmila DFriend
Messages: 81
Registered: June 2018
Member
Hii

In menu I need to add some option where on clicking on that menu option my filter in diagram need to activate programatically.

Iam getting the available filters in diagram.How to activate the filter programatically on clicking of menu option.

DiagramDescription description = global_diagram.getDescription();

EList<FilterDescription> filters = description .getFilters();

can anyone help me on this
Re: How to activate the filter programatically in eclipse sirius [message #1808976 is a reply to message #1808893] Fri, 05 July 2019 12:30 Go to previous messageGo to next message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 250
Registered: June 2017
Senior Member
Hi,

You have to add your filter in the DDiagram.getActivatedFilters() list.

Regards,


Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to activate the filter programatically in eclipse sirius [message #1809071 is a reply to message #1808893] Mon, 08 July 2019 09:43 Go to previous messageGo to next message
Sharmila D is currently offline Sharmila DFriend
Messages: 81
Registered: June 2018
Member
Hi Pierre Guilet

Thank you for the reply.Is there any API to add to DDiagram.getActivatedFilters() list
Re: How to activate the filter programatically in eclipse sirius [message #1809076 is a reply to message #1809071] Mon, 08 July 2019 12:29 Go to previous message
Pierre Guilet is currently offline Pierre GuiletFriend
Messages: 250
Registered: June 2017
Senior Member
Hi,

global_diagram is a DDiagram so you have it. Cast it as such if you had type DRepresentation.

Regards,


Pierre Guilet - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Why does Sirius display an image with an exception?
Next Topic:How to create more than one instance in sirius through design
Goto Forum:
  


Current Time: Fri Apr 19 09:11:41 GMT 2024

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

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

Back to the top