Skip to main content


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: Fri Apr 19 22:54:34 GMT 2024

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

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

Back to the top