Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:31 Go to next message
Moritz Kiehl is currently offline Moritz KiehlFriend
Messages: 8
Registered: November 2015
Junior Member
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 15:32 Go to previous messageGo to next message
Mickael ADAM is currently offline Mickael ADAMFriend
Messages: 31
Registered: February 2014
Member
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 16:02 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 935
Registered: February 2011
Senior Member
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


Camille Letavernier

[Updated on: Fri, 13 November 2015 16:05]

Report message to a moderator

Re: How to Adress Single Elements with an Css File [message #1715214 is a reply to message #1714572] Fri, 20 November 2015 09:57 Go to previous message
Moritz Kiehl is currently offline Moritz KiehlFriend
Messages: 8
Registered: November 2015
Junior Member
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: Sat Feb 27 00:50:20 GMT 2021

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

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

Back to the top