Skip to main content



      Home
Home » Modeling » Papyrus » How to Adress Single Elements with an Css File(CSS)
How to Adress Single Elements with an Css File [message #1714512] Fri, 13 November 2015 05:31 Go to next message
Eclipse UserFriend
Hi there

i am quiet new here

I´m working on a Project and want to Style different nodes/edges of the same type in different ways with an CSS file. Is there an posibillity to do this ? I already know how to do this with the Appearance Tab or how to Style all Nodes/edges of the same type with a css file.

Best regards
Moritz
Re: How to Adress Single Elements with an Css File [message #1714566 is a reply to message #1714512] Fri, 13 November 2015 10:32 Go to previous messageGo to next message
Eclipse UserFriend
hi,

I don't understand what exactly you want to do but you can find many information on the official wiki.

HTH,

Mickaël

Re: How to Adress Single Elements with an Css File [message #1714572 is a reply to message #1714566] Fri, 13 November 2015 11:02 Go to previous messageGo to next message
Eclipse UserFriend
You can match single elements by name (or qualified name):

Class[qualifiedName="MyPackage::MyClass"]{
     fillColor: blue;
}


Or using named styles (CSS Classes), which need to be applied manually from the "Style" tab of the properties view ('Applied Styles'):

.myClass1 {
    fillColor: blue;
}

.myClass2 {
    fillColor: red;
}


Edit: In theory, you could also use CSS Ids (#myClass1), which are unique (Unlike CSS Classes), but since this seemed seldom useful, it isn't exposed in the properties view anymore. However, the property exists and is supported, so you could customize the properties view to expose it again.

HTH,
Camille

[Updated on: Fri, 13 November 2015 11:05] by Moderator

Re: How to Adress Single Elements with an Css File [message #1715214 is a reply to message #1714572] Fri, 20 November 2015 04:57 Go to previous message
Eclipse UserFriend
Thank you. Both options are doing well in my Project.

Best regards,

Moritz Kiehl
Previous Topic:Association behaviour in reaction to graphical Drag and Drop
Next Topic:Deadlock using TransactionalEditingDomain in Papyrus\CDO
Goto Forum:
  


Current Time: Mon Jul 07 19:11:14 EDT 2025

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

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

Back to the top