Skip to main content



      Home
Home » Modeling » Papyrus » Headers of Sysml Diagram
icon13.gif  Headers of Sysml Diagram [message #1714847] Tue, 17 November 2015 04:32 Go to next message
Eclipse UserFriend
Headers in Sysml are important part of a diagram.
i'ts possible to show headers in papyrus?
At the moment i can't find a way to do this
Re: Headers of Sysml Diagram [message #1714877 is a reply to message #1714847] Tue, 17 November 2015 07:31 Go to previous messageGo to next message
Eclipse UserFriend
https://bugs.eclipse.org/bugs/show_bug.cgi?id=354296
Re: Headers of Sysml Diagram [message #1714905 is a reply to message #1714877] Tue, 17 November 2015 11:01 Go to previous messageGo to next message
Eclipse UserFriend
I've tried to load Mars profile... but seems to be the same for me.. ho headers unless i've to enable it somewhere
Re: Headers of Sysml Diagram [message #1714922 is a reply to message #1714905] Tue, 17 November 2015 11:54 Go to previous messageGo to next message
Eclipse UserFriend
Go and vote for the bug.
I'm not sure it makes any difference but it can't hurt.
Re: Headers of Sysml Diagram [message #1714943 is a reply to message #1714922] Tue, 17 November 2015 14:27 Go to previous messageGo to next message
Eclipse UserFriend
Done...
many thanks
Re: Headers of Sysml Diagram [message #1714983 is a reply to message #1714943] Wed, 18 November 2015 04:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

If you only need the header notation, you can use a CSS rule:

CompositeStructureDiagram > Class {
	displayHeader: true;
	textAlignment: left;
}

CompositeStructureDiagram > Class > Compartment{
	displayBorder: false;
}


However, if you need specific extra-information in this header, then this currently can't be done in Papyrus (Although native GMF may provide enough flexibility to achieve that - I'm not sure)

Regards,
Camille
Re: Headers of Sysml Diagram [message #1714992 is a reply to message #1714983] Wed, 18 November 2015 06:15 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for your help
but i've added this code as explained in This guide, but nothing is changed in my diagram...
Have I make some mistakes?
index.php/fa/23994/0/
  • Attachment: Cattura3.JPG
    (Size: 116.55KB, Downloaded 2347 times)
Re: Headers of Sysml Diagram [message #1714996 is a reply to message #1714992] Wed, 18 November 2015 06:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Papyrus Diagrams do not rely on Eclipse's CSS configuration; they use their own

See https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS

Regards,
Camille
Re: Headers of Sysml Diagram [message #1715021 is a reply to message #1714996] Wed, 18 November 2015 09:34 Go to previous messageGo to next message
Eclipse UserFriend
In theory one can edit Papyrus Sysml css Stylesheet rename them and use it as a personal theme...
it can't be so difficult...
but i can't find where these themes are stored:index.php/fa/23996/0/
  • Attachment: Cattura4.JPG
    (Size: 15.32KB, Downloaded 2195 times)

[Updated on: Wed, 18 November 2015 10:24] by Moderator

Re: Headers of Sysml Diagram [message #1715025 is a reply to message #1714983] Wed, 18 November 2015 10:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi Camille,

Camille Letavernier wrote on Wed, 18 November 2015 04:47
Hi,

If you only need the header notation, you can use a CSS rule:

CompositeStructureDiagram > Class {
	displayHeader: true;
	textAlignment: left;
}

CompositeStructureDiagram > Class > Compartment{
	displayBorder: false;
}


However, if you need specific extra-information in this header, then this currently can't be done in Papyrus (Although native GMF may provide enough flexibility to achieve that - I'm not sure)

Regards,
Camille


It's even a lot complexer than that. For instance, have a look at page 225 (Figure D.15 and D.16) of the SysML 1.4 specification.
In figure D.16, the frame of the diagram represents a block (AutomotiveDomain), but the contents of the BDD don't "match" with any compartment of a Block, so it's currently impossible to mimic this kind of behaviour using css in Papyrus.

So the example you gave above only works well in the specific case that the diagram content of a specific diagram is currently captured by a specific compartment in Papyrus (composite structure, activity diagram, package diagram, block diagram owned by a Package, ...), but definitly not for all cases (BDD owned by a block, requirement diagram owned by a requirement, ...).
Re: Headers of Sysml Diagram [message #1715027 is a reply to message #1715025] Wed, 18 November 2015 10:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

In this case, I guess it's the responsibility of the Viewpoint & Expansion customizations, but I know they are still limited today. Hopefully, since the SysML 1.4 implementation is used to highlight the limitations of these frameworks (And improve them), we should get the required capabilities in Neon.

I think that what we lack today to get this complete support is the ability to customize text/labels in Diagrams (And maybe partial styling as well to get parts of this label in bold)

The Viewpoint mechanism should be able to allow defining BDDiagrams inside Blocks, just like it already allows drawing a ClassDiagram inside a Class (Although with limitations/bugs)

Camille
Re: Headers of Sysml Diagram [message #1716655 is a reply to message #1715027] Mon, 07 December 2015 04:51 Go to previous messageGo to next message
Eclipse UserFriend
Camille Letavernier wrote on Wed, 18 November 2015 10:33
Hi,

In this case, I guess it's the responsibility of the Viewpoint & Expansion customizations, but I know they are still limited today. Hopefully, since the SysML 1.4 implementation is used to highlight the limitations of these frameworks (And improve them), we should get the required capabilities in Neon.

I think that what we lack today to get this complete support is the ability to customize text/labels in Diagrams (And maybe partial styling as well to get parts of this label in bold)

The Viewpoint mechanism should be able to allow defining BDDiagrams inside Blocks, just like it already allows drawing a ClassDiagram inside a Class (Although with limitations/bugs)

Camille


For those interested: see
[SysML 1.4] https://bugs.eclipse.org/bugs/show_bug.cgi?id=354296
[UML/Papyrus Core] https://bugs.eclipse.org/bugs/show_bug.cgi?id=483761
Re: Headers of Sysml Diagram [message #1724178 is a reply to message #1716655] Mon, 22 February 2016 02:30 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

I've recently downloaded Papyrus 1.1.3 and started modeling a few diagrams.

I've got also an issue dealing with the SysML diagram frame.
I know it can be done as I can see one of a Sequence Diagram, attached, (and did nothing special for getting it), but no way on a BDD, UC or requirements...
index.php/fa/25064/0/<br />
As a workaround I couldn't copy/paste the frame so it's frustrating a lot...

Does anybody succeeded to get frames, even running a script, importing or whatever means ??
Having a SysML compliant tool without this feature is just disappointing

Olivier
Re: Headers of Sysml Diagram [message #1724283 is a reply to message #1724178] Mon, 22 February 2016 14:06 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure what's not clear from the discussion above?

[Updated on: Mon, 22 February 2016 14:08] by Moderator

Re: Headers of Sysml Diagram [message #1727345 is a reply to message #1724283] Tue, 22 March 2016 06:56 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
as I understand it, it's still not possible to include headers in diagrams especially for use case and stakeholde diagrams in Papyrus?

Right?

Greetings
Paul

[Updated on: Tue, 22 March 2016 06:57] by Moderator

Re: Headers of Sysml Diagram [message #1736143 is a reply to message #1724283] Mon, 27 June 2016 02:39 Go to previous messageGo to next message
Eclipse UserFriend
Klaas Gadeyne wrote on Mon, 22 February 2016 19:06
I'm not sure what's not clear from the discussion above?


still not clear probably when this bug will be fixed?

Olivier
Re: Headers of Sysml Diagram [message #1749067 is a reply to message #1714847] Thu, 01 December 2016 09:32 Go to previous message
Eclipse UserFriend
Hello,
Any news on how to add the diagram header ?
Regards,
J.T
Previous Topic:[SOLVED - Noob] need help emailing a papyrus model
Next Topic:[EGit] Comparison problem with profiled model
Goto Forum:
  


Current Time: Sun Jun 15 05:54:35 EDT 2025

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

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

Back to the top