| Summary: | [CSS] Cannot select and apply "registered" stylesheet from DSL plugin | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Papyrus | Reporter: | Toni Siljamäki <toni.siljamaki> | ||||
| Component: | Diagram | Assignee: | Project Inbox <mdt-papyrus-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | cletavernier, papyrus-bugs | ||||
| Version: | 1.0.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
This one was fixed thanx to the new info on including stylesheets in the default theme via extension point, which also is a better solution, since DSL users do not have to bother with applying stylesheets. I close this one. |
Created attachment 241451 [details] Screenshot of stylesheet selection + example We have discussed the problem below a few weeks ago, and during our hands-on workshop today this problem was commented by some of our network architects. Currently its only possible to select a stylesheet by browsing the workspace. To allow a project to be self-contained it means that the project should contain the stylesheets it has applied to its diagrams, each and every project. This means, for instance, that when a profile on which a DSL is based is modified, which in turn would require an update of stylesheets, then each project must be manually updated, causing lots of maintenance problems when scaling up the usage of Papyrus for a certain DSL. (= lots of possible errors) To solve this problem we need the stylesheets to be stored in the plugin right next to its profile, forming the base for the DSL and display of diagrams, from which we can select and apply both he profile and its related stylesheets. Then both profiles and stylesheets can be updated automatically when modified, and throughout the entire modelled system. In the attachment we see that the only way to define a stylesheet e.g. for the very first diagram in a model is to select "Browse workspace". There is also a button called "Browse", currently greyed out, unknown what to use it for. (there is no documentation on it) I did a simple test by embedding all stylesheets in the DSL plugin. Then I created a simple model and applied a project-local stylesheet to the diagram. Then I edited the path to instead point out the stylesheet in the plugin. This worked just fine, but is a quite strange workaround. What is needed here is the possibility to also "Browse plugins" or "Browse registered" when selecting a stylesheet to apply to a diagram. Papyrus should then allow e.g. selecting from candidate stylesheets by searching through the plugins containing the profiles applied to the model. That would be quite similar to searching through projects in the workspace.