Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » how to change the color of a DNodeSpec using the tool section
how to change the color of a DNodeSpec using the tool section [message #1834981] Sun, 22 November 2020 22:14
Fagner Dias is currently offline Fagner DiasFriend
Messages: 1
Registered: November 2020
Junior Member
Hi,

I'm would like to change the background color of some structures on my diagram using the tool section with an external java action, but I can't find where to change the color.

I tried the way below but it is not working.

@Override
public void execute(Collection<? extends EObject> arg0, Map<String, Object> arg1) {
// TODO Auto-generated method stub
DNodeListSpec d = (DNodeListSpec) arg1.get("componnet");
d.getOwnedStyle().setBorderColor(RGBValues.create(225, 0, 0));

}

Previous Topic:help on petri net creation, can't seem to create the edge
Next Topic:Sirius Web installation on Windows 10
Goto Forum:
  


Current Time: Sat Apr 10 22:57:47 GMT 2021

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

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

Back to the top