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);
UMLModeler.getUMLDiagramHelper().openDiagramEditor(diagram);
}
return sourcePack;
}


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

Any idea what might be wrong?
Thanks

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

Report message to a moderator

Previous Topic:Problem with Dandelion - Lisp development plugin for eclipse
Next Topic:Plugin-transformation diagram layout problem
Goto Forum:
  


Current Time: Sat Nov 29 01:41:46 GMT 2014

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

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