Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Support for user settings or flags
Support for user settings or flags [message #1850462] Thu, 03 March 2022 16:28 Go to next message
Jad El-khoury is currently offline Jad El-khouryFriend
Messages: 61
Registered: August 2015
Member
For a given Sirius diagram, is it possible to somehow provide the user with some global settings or flags, which will then be used in the model to display information in one way or the other?

For example, I would like to provide the user with a single global flag (true or false) which will result in the label of certain element types to be shown in different ways.

I tried to use Layers, but it does not seem to be the right approach. All I want to change is the value of the label, depending on some global user setting.
Re: Support for user settings or flags [message #1850497 is a reply to message #1850462] Sat, 05 March 2022 18:37 Go to previous messageGo to next message
Simon Tulia is currently offline Simon TuliaFriend
Messages: 14
Registered: January 2022
Junior Member
Hello Jad,

I think the simplest way is to define a static attribute in a service class in Java for your need. I hope it works for you.

Best.
Re: Support for user settings or flags [message #1850550 is a reply to message #1850497] Tue, 08 March 2022 10:50 Go to previous message
Jad El-khoury is currently offline Jad El-khouryFriend
Messages: 61
Registered: August 2015
Member
Hi

Thanks, but I am not exactly sure how to make use of such as service class.
It seems that the settings would then disappear once the session ends.

I was thinking of user preferences that can be maintained even when user restarts Eclipse. Something very similar to what Eclipse provides through Windows-->Preferences.

Previous Topic:Children containers not showing
Next Topic:Context tool for edge creation
Goto Forum:
  


Current Time: Thu Feb 06 17:27:53 GMT 2025

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

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

Back to the top