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 06:28 Go to next message
Sinisa is currently offline Sinisa
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 08:17 Go to previous message
Alexander Shatalin is currently offline Alexander Shatalin
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: Tue Jul 22 21:45:25 EDT 2014

Powered by FUDForum. Page generated in 0.10848 seconds