Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Headers of Sysml Diagram
icon13.gif  Headers of Sysml Diagram [message #1714847] Tue, 17 November 2015 09:32 Go to next message
Alessandro Pani is currently offline Alessandro PaniFriend
Messages: 6
Registered: November 2015
Junior Member
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 12:31 Go to previous messageGo to next message
Klaas Gadeyne is currently offline Klaas GadeyneFriend
Messages: 165
Registered: July 2009
Senior Member
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 16:01 Go to previous messageGo to next message
Alessandro Pani is currently offline Alessandro PaniFriend
Messages: 6
Registered: November 2015
Junior Member
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 16:54 Go to previous messageGo to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
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 19:27 Go to previous messageGo to next message
Alessandro Pani is currently offline Alessandro PaniFriend
Messages: 6
Registered: November 2015
Junior Member
Done...
many thanks
Re: Headers of Sysml Diagram [message #1714983 is a reply to message #1714943] Wed, 18 November 2015 09:47 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: Headers of Sysml Diagram [message #1714992 is a reply to message #1714983] Wed, 18 November 2015 11:15 Go to previous messageGo to next message
Alessandro Pani is currently offline Alessandro PaniFriend
Messages: 6
Registered: November 2015
Junior Member
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 2265 times)
Re: Headers of Sysml Diagram [message #1714996 is a reply to message #1714992] Wed, 18 November 2015 11:40 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: Headers of Sysml Diagram [message #1715021 is a reply to message #1714996] Wed, 18 November 2015 14:34 Go to previous messageGo to next message
Alessandro Pani is currently offline Alessandro PaniFriend
Messages: 6
Registered: November 2015
Junior Member
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 2116 times)

[Updated on: Wed, 18 November 2015 15:24]

Report message to a moderator

Re: Headers of Sysml Diagram [message #1715025 is a reply to message #1714983] Wed, 18 November 2015 15:17 Go to previous messageGo to next message
Klaas Gadeyne is currently offline Klaas GadeyneFriend
Messages: 165
Registered: July 2009
Senior Member
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 15:33 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
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


Camille Letavernier
Re: Headers of Sysml Diagram [message #1716655 is a reply to message #1715027] Mon, 07 December 2015 09:51 Go to previous messageGo to next message
Klaas Gadeyne is currently offline Klaas GadeyneFriend
Messages: 165
Registered: July 2009
Senior Member
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 07:30 Go to previous messageGo to next message
Olivier CASSE is currently offline Olivier CASSEFriend
Messages: 4
Registered: February 2016
Location: Rambouillet
Junior Member
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 19:06 Go to previous messageGo to next message
Klaas Gadeyne is currently offline Klaas GadeyneFriend
Messages: 165
Registered: July 2009
Senior Member
I'm not sure what's not clear from the discussion above?

[Updated on: Mon, 22 February 2016 19:08]

Report message to a moderator

Re: Headers of Sysml Diagram [message #1727345 is a reply to message #1724283] Tue, 22 March 2016 10:56 Go to previous messageGo to next message
Paul Rude is currently offline Paul RudeFriend
Messages: 4
Registered: February 2016
Junior Member
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 10:57]

Report message to a moderator

Re: Headers of Sysml Diagram [message #1736143 is a reply to message #1724283] Mon, 27 June 2016 06:39 Go to previous messageGo to next message
Olivier CASSE is currently offline Olivier CASSEFriend
Messages: 4
Registered: February 2016
Location: Rambouillet
Junior Member
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 14:32 Go to previous message
jonas thiaucourt is currently offline jonas thiaucourtFriend
Messages: 1
Registered: December 2016
Junior Member
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: Fri Oct 11 05:46:56 GMT 2024

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

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

Back to the top