Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problem with super and sub-diagram
Problem with super and sub-diagram [message #236188] Wed, 15 July 2009 10:28 Go to next message
Sinisa is currently offline SinisaFriend
Messages: 10
Registered: July 2009
Junior Member
Hi all,
I have the next problem and don’t know how to solve it.
In Project Explorer is presented my domain model.
Its look like this (this model has been simplified for easier
explanations).

myDomain.ext
|
-Document Root
|
--School (my root element)
|
-- Section
|
--Classrooms
|
-- Classroom1
|
-- Classroom2
|
-- Classroom3
.
.
.

Double-click on Classroom (1 or 2 or 3...) should open its own diagram.
It means that every Classroom has own diagram (better to say sub-diagram
with Classrooms as ROOT element).
Off course, I first need to create the super-diagram (School as ROOT
element), but I want to hide that super-diagram.
Only what I need is tree view in the Project Explorer where I can use
context menu (right click) to create Section, Classrooms...
and when it's created the new Classroom should be created and a new
diagram in a new tab.

I hope that I was clear. Any advice is more than welcome.

Thanks & regards,
Sinisa
Re: Problem with super and sub-diagram [message #236493 is a reply to message #236188] Mon, 20 July 2009 12:17 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Sinisa,

AFAIU, you have to create GMF-generated diagram editing Classrooms element
and then you create enw Classrooms (from the same UI action) you have to
create empty diagram associated with it. See generated ???NewDiagramFileWizard
as an example of new diagram initialization code.

-----------------
Alex Shatalin
Previous Topic:Formatable diagram elements (or not?)
Next Topic:Programmatically generate diagram contents
Goto Forum:
  


Current Time: Wed Apr 24 23:55:17 GMT 2024

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

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

Back to the top