Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Change Document Root and Refresh
Change Document Root and Refresh [message #184587] Mon, 28 April 2008 16:10 Go to next message
Maurice O'Connor is currently offline Maurice O'ConnorFriend
Messages: 86
Registered: July 2009
Member
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 17:00 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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 09:16 Go to previous message
Maurice O'Connor is currently offline Maurice O'ConnorFriend
Messages: 86
Registered: July 2009
Member
> 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: Fri Apr 26 05:12:35 GMT 2024

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

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

Back to the top