Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How to wrap long class name
How to wrap long class name [message #1769008] Tue, 25 July 2017 15:19 Go to next message
Jonny Littlepunch is currently offline Jonny LittlepunchFriend
Messages: 2
Registered: July 2017
Junior Member
Hi. I am using Neon edition. If class name is long it cannot be wrapped in multiple lines on class shape. This bihaviour is not convenient. Do exitst way to get multiline title for class shape?
Re: How to wrap long class name [message #1769070 is a reply to message #1769008] Wed, 26 July 2017 09:15 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 167
Registered: July 2009
Location: Palaiseau, France
Senior Member
Hi Jonny,

There is a CSS property to apply a wrapping behavior for long name labels. You can see it here [1].

Here is the content of a small CSS that you can easily apply on your model for a quick try : create a new file 'demo.css' in your project, fill it with following content and drop it onto the diagram you want to customize.
Class {
	isNameWrap : true
}


I let you read all the documentation on wiki to get the full support for CSS.

Cheers,
Rémi

[1] https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: How to wrap long class name [message #1769267 is a reply to message #1769070] Fri, 28 July 2017 12:44 Go to previous messageGo to next message
Chriss Matt is currently offline Chriss MattFriend
Messages: 38
Registered: December 2012
Member
thank you so much Rémi
your answer helps me solve my problem
Re: How to wrap long class name [message #1769268 is a reply to message #1769267] Fri, 28 July 2017 12:46 Go to previous messageGo to next message
Remi Schnekenburger is currently offline Remi SchnekenburgerFriend
Messages: 167
Registered: July 2009
Location: Palaiseau, France
Senior Member
Thanks for feedback ;)

Cheers,
Rémi


Remi Schnekenburger

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: How to wrap long class name [message #1771490 is a reply to message #1769070] Fri, 25 August 2017 14:46 Go to previous message
Jonny Littlepunch is currently offline Jonny LittlepunchFriend
Messages: 2
Registered: July 2017
Junior Member
Rémi, thank you very much for clear and effective answer, interesting materials.

Previous Topic:SysML behaviour modeling in Papyrus
Next Topic:Installing Reverse Engineering
Goto Forum:
  


Current Time: Wed Sep 19 10:54:53 GMT 2018

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

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

Back to the top