Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [papyrus-rt-dev] Fwd: [mdt-papyrus.dev] CSS Priorities

Hi Charles,

No, there should be no impact. This should be even good for Papyrus-RT, as it will let users define their own set of CSS to customize their models, as for example which sets of labels should be visible for the connectors. Currently, this kind of customization is always by-passed by the CSS defined in the viewpoint.

Cheers,
Rémi

2017-07-11 19:07 GMT+02:00 charles+zeligsoft.com <charles@xxxxxxxxxxxxx>:
Is this likely to be a problem with Papyrus-RT?


Regards,

Charles Rivet
Senior Product Manager, Papyrus-RT product leader

Begin forwarded message:

From: Camille Letavernier <cletavernier@eclipsesource.com>
Subject: [mdt-papyrus.dev] CSS Priorities
Date: July 11,2017 at 11:21:16 EDT
Reply-To: Papyrus Project list <mdt-papyrus.dev@xxxxxxxxxxx>

Hi all,

We've noticed an issue with the priorities of stylesheets declared in the Viewpoint/Architecture context (Which is actually an old issue, probably affecting at least Neon as well): as they are implemented in the same class as the Diagram stylesheets, they have the same priority (The viewpoint actually has a slightly higher priority in most cases). [1]

The idea for CSS was that "Tool stylesheets" have a lower priority, while "User" stylesheets have a higher one (i.e. more specific stylesheets have a higher priority).

The consequence of this bug is that, if a Viewpoint defines a rule (e.g. hides a Label), it may be impossible to override it, even via a rule defined in a CSS applied directly to the diagram (e.g. show the label hidden by the viewpoint).

A Gerrit patch [2] has been proposed to add a new priority level specifically for Viewpoints, rather than merging them with local diagram stylesheets. This priority is higher than user (Workspace) Theme, but lower than local (Diagram/Model/Project) stylesheets. This allows viewpoints to define "default preferences" but still lets the user to make local, diagram-specific adjustments.

This may however change some existing diagrams using local stylesheets. So, if you are concerned about this, please review the bug & patch, and speak up! :)

[1] 519412: Viewpoint Stylesheets have a very high priority


Cheers,
Camille
--
Camille Letavernier

Senior Software Engineer
EclipseSource Paris

Email: cletavernier@xxxxxxxxxxxxxxxxx
Web: http://eclipsesource.com/paris
Phone: +33 1 85 41 09 21
Fax: +49 89 21 555 30 - 19

Palaiseau-Entreprises
7 rue de la Croix Martre
91873 Palaiseau

General Manager: Rémi Schnekenburger
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev


_______________________________________________
papyrus-rt-dev mailing list
papyrus-rt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/papyrus-rt-dev




--
Remi Schnekenburger

Senior Software Architect / General Manager
EclipseSource Paris

Email: rschnekenburger@xxxxxxxxxxxxxxxxx
Web: http://eclipsesource.com/paris 
Phone: +33
1 85 41 08 65
Hangouts: rschnekenburger@xxxxxxxxxxxxxxxxx

EclipseSource France SAS
7 rue de la Croix Martre
91120 Palaiseau

General Manager: Remi Schnekenburger
Registered Office: 7 rue de la Croix Martre, 91120 Palaiseau, France
Commercial Register 824 977 516  R.C.S. EVRY

Back to the top