Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Change Document Root and Refresh
Change Document Root and Refresh [message #184587] Mon, 28 April 2008 12:10 Go to next message
Eclipse UserFriend
Hi there!

I've got a model that looks a little like this:

<model>
<element name="foo">
<stuff/>
</element>
<element name="bar">
<stuff/>
</element>
</model>

Presently, the document root for my diagram is set to the element with
name "foo". I would like to allow the user to change the document root to
"bar" via a listbox and have the diagram refresh completely. What methods
or classes should I investigate for this in the diagram code? Am I crazy
for even attempting it?

Thanks!

Maurice
Re: Change Document Root and Refresh [message #184596 is a reply to message #184587] Mon, 28 April 2008 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Hello Maurice O'Connor,

Well, you can try Diagram.setElement(), but i even think about creating separate
diagram for element "bar" and call "DiagramEditor.setInput()" using URIEditorInput
constructed around new diagram..

-----------------
Alex Shatalin
Re: Change Document Root and Refresh [message #184650 is a reply to message #184596] Tue, 29 April 2008 05:16 Go to previous message
Eclipse UserFriend
> Well, you can try Diagram.setElement(), but i even think about creating
separate
> diagram for element "bar" and call "DiagramEditor.setInput()" using
URIEditorInput
> constructed around new diagram..

Thanks Alex, I'll investigate your suggestions!

Maurice
Previous Topic:Hidden connections still displayed
Next Topic:SVG problem
Goto Forum:
  


Current Time: Wed Nov 05 10:00:02 EST 2025

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

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

Back to the top