Skip to main content



      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 17:14
Eclipse UserFriend
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: Mon Jun 23 09:27:03 EDT 2025

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

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

Back to the top