Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Plugin-transformation diagram layout problem
Plugin-transformation diagram layout problem [message #508752] Wed, 20 January 2010 08:22
Marco  is currently offline Marco Friend
Messages: 4
Registered: January 2010
Junior Member
When trying to layout a diagram using the following code in a plugin-transformation project I get an error. I used the following code:

public Object createTarget(ITransformContext ruleContext) {
Package sourcePack = (Package) ruleContext.getSource();
List<Diagram> diagrams = UMLModeler.getUMLDiagramHelper().getDiagrams(sourcePack);
for(Diagram diagram : diagrams){
UMLModeler.getUMLDiagramHelper().layoutNodes(diagram.getChil dren(), LayoutType.RADIAL);
return sourcePack;

The error message I get is: org.eclipse.swt.SWTException: Invalid thread access

Any idea what might be wrong?

[Updated on: Wed, 20 January 2010 09:25]

Report message to a moderator

Previous Topic:Eclipse can't see new version at my update site
Next Topic:Resources to build new Plugin
Goto Forum:

Current Time: Sun Apr 22 22:33:10 GMT 2018

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

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