Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gmf-dev] Re: Need to relocate my figures

I need to show a diagram based on soem xml inputs , ie, when I right click on a particular xml file a "Generate Diagram" will come in the menu which when clicked will create and open a diagram based on the xml inputs.
I am almost able to show the figure but the problem is with alignment.

private static EObject createInitialRoot(ShapesDiagram model) {

Event event = ModelFactory.eINSTANCE.createEvent();
model.getShapes().add(event);
return model;

}

The figure is coming on the top left corner of the editor vertically. But I want it to set the co ordinates of the figure at run time so that I can get the figure anywhere within the editor. Please help.

If anyone can help send a reply to aditya_cal@xxxxxxxxxxxxxx as well.



select view apply

Back to the top