Fergal Fitz
Fergal Fitz

Reputation: 226

Im working on an application using eclipse RCP. I have a graphical editor and I would like to draw a figure on it programmatically?

I do not want to use an editPart or have any connection with the model. An other solution that would work for me is to draw a figure that is out of bounds of its parent

Upvotes: 0

Views: 58

Answers (1)

vainolo
vainolo

Reputation: 6987

I haven't tried this, but you could get the GraphicalViewer of the editor, pull out the LightweightSystem and draw directly over it.

Since GraphicalViewer does not expose this directly (check GraphicalViewerImpl where it is protected) you would need to create your own implementation that does expose it.

Upvotes: 1

Related Questions