Skip to main content



      Home
Home » Eclipse Projects » Sirius » Support for user settings or flags
Support for user settings or flags [message #1850462] Thu, 03 March 2022 11:28 Go to next message
Eclipse UserFriend
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 13:37 Go to previous messageGo to next message
Eclipse UserFriend
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 05:50 Go to previous message
Eclipse UserFriend
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 Mar 20 04:52:50 EDT 2025

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

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

Back to the top