Bug 532915 - DSL/DSML customization
Summary: DSL/DSML customization
Status: UNCONFIRMED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-26 17:19 EDT by Toni Siljamäki CLA
Modified: 2018-03-29 14:38 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toni Siljamäki CLA 2018-03-26 17:19:28 EDT
Hello.

I don't know which Papyrus Component to bug-report here.
It could be core, toolsmith, diagram, CSS, whatever...

I'm developing a new DSL/DSML for a new client that takes what we all learned during our long Ericsson NWADSL customization efforts some DSML-steps further...

It took a long time before I managed to find and install the least buggy DSL/DSML customization version that still works: Neon.2

My worries here:

The UML Interface metaclass visualization has the "nested classifiers" compartment visible/selectable in Papyrus class diagrams, but not in component diagrams, or any other diagrams.

...so in a class diagram you can show nested UML Signals in an interface, which you cannot show in modelled UML Interfaces in any other diagram.

I have even tried different ways to "enforce" the display of this compartment in Interfaces using CSS, but with no success, like:

Interface[appliedStereotypes~="myNewDSMLStereotype"] > Compartment[kind="nested classifiers or whatever not documented..."] {
	visible: true;
}

The nested signals are shown in the Model Explorer, but I like to vizualize and customize the signals also in Component Diagrams and other diagrams.

How do I do that in Neon.2 ?

NOTE:
I must use Neon.2 here since Palette Customization does not work after Neon.2

Regards/Toni
Comment 1 Toni Siljamäki CLA 2018-03-27 19:30:06 EDT
Hello again.
Anyone who knows anything about how to solve this, please respond. :)

We like to define UML Signals, visualized in the nested classifiers compartment of UML Interfaces in Papyrus Neon.2, but can only make the nested classifiers compartment for UML Interfaces visible in Class Diagrams.

The following CSS customizaton rule:

ClassDiagram Interface[appliedStereotypes~="myStereotype"] > Compartment[kind="nestedclassifiers"] {
	visible: true;
}

...makes the nested classifier compartment visible in a ClassDiagram.
The following CSS customizaton rule:

Interface > Compartment[kind="nestedclassifiers"] {
	visible: true;
}

...does not make the nested classifiers compartment visible for the Interface element in any other diagram.

Does anyone out there have any tips on what is wrong with the "Show/Hide Compartments" menu and the CSS (DSML) customization capabilities for displaying the nested classifiers compartment for UML Interfaces other than in class diagrams in Papyrus?

Regards/Toni
Comment 2 Toni Siljamäki CLA 2018-03-29 14:38:36 EDT
Hello all DSL/DSML advocates and lovers, using Papyrus for DSL/DSML development.

Just quoting PINK FLOYD: Is there anybody out there?

...interested an a solution to this particular and similar DSL/DSML issues?

...in this particular case: How can we enable the nested classifiers compartment via CSS rules and/or the "Show/Hide Compartments" menu for it, for visualizing nested classifiers for the UML Interface metaclass in your selected DSL/DSML diagram of your choise. :)

Regards/Toni