Can I display the nodes of a diagram in another diagram? [message #73448] |
Thu, 02 November 2006 10:17  |
Eclipse User |
|
|
|
Ahoy folks,
I've got a GMF-generated graphical Editor. A special Node of my Model,
which can be added to a diagram, has a reference to the root of another
diagram. (like having a Sequence(Diagram A) that has a reference/call of
a subsequence(Diagram B) somewhere in its flow).
Does anyone know if it is possible to exchange the node of Diagram A
that has this reference by a read-only part which contains all the nodes
of Diagram B triggered by an Action? Read-only at first is optional, but
should be possible later on.
______ _________
| | | |
| Node | |DiagramB |
| in | ---> | (read- |
|Diag A| | only) |
|______| |_________|
Thanks in advance for any hints or help
Greets Alex Haag
|
|
|
|
Re: Can I display the nodes of a diagram in another diagram? [message #74568 is a reply to message #74448] |
Mon, 06 November 2006 08:36   |
Eclipse User |
|
|
|
Hi Christian,
I'm sorry to tell you that I haven't managed this yet, because I had
more urgent work to do. Maybe I'll get to this tomorrow; if I'll get
something useful, I'll tell you for sure.
For now I don't really have an idea how to achieve this. Maybe we could
exchange knowledge.
I'll start right here:
I was thinking of two ways to achieve displaying sub-diagrams in a diagram.
1. As I only need to display read-only-sub-diagrams, I was thinking of
just changing the figure of the sub-diagram-call-Node by a figure that
contains an image of the sub-diagram. Therefor images of diagrams should
be held as files or generated when needed with the build-in
print-diagram-method (most convenience method if diagrams change very
often).
2. As I have the reference to the sub-diagram the nodes of the diagram
could be taken from the modelfile and pasted into the currentDiagram
(!those nodes would have change-access, so that the user could change
the sub-diagram too. This is what I don't want!!)
If you have other ideas about this theme, please let me know.
Greets Alex Haag
Christian Dänekas wrote:
> Hi there,
>
> I´m also very interested in the possibility to display sub-diagrams. Did
> you already manage to do this? Any help is welcome.
>
> Greetings,
> Christian
>
> Alex Haag schrieb:
>> Ahoy folks,
>>
>> I've got a GMF-generated graphical Editor. A special Node of my Model,
>> which can be added to a diagram, has a reference to the root of
>> another diagram. (like having a Sequence(Diagram A) that has a
>> reference/call of a subsequence(Diagram B) somewhere in its flow).
>>
>> Does anyone know if it is possible to exchange the node of Diagram A
>> that has this reference by a read-only part which contains all the
>> nodes of Diagram B triggered by an Action? Read-only at first is
>> optional, but should be possible later on.
>>
>> ______ _________
>> | | | |
>> | Node | |DiagramB |
>> | in | ---> | (read- |
>> |Diag A| | only) |
>> |______| |_________|
>>
>> Thanks in advance for any hints or help
>>
>> Greets Alex Haag
|
|
|
Re: Can I display the nodes of a diagram in another diagram? [message #87143 is a reply to message #74568] |
Thu, 21 December 2006 13:09  |
Eclipse User |
|
|
|
Originally posted by: rbbnjmn.yahoo.com
All,
I'll be looking into this soon as well.
My idea is to use a Compartment, when expanded you view the sub-diagram.
I'd still want to be able to perform limited diagram editing at this point,
properties
and geometry, but no access to the sub-diagram's palette commands.
Cheers,
Roy
"Alex Haag" <Alexander.Haag@esg.de> wrote in message
news:eindpk$7a7$1@utils.eclipse.org...
> Hi Christian,
>
> I'm sorry to tell you that I haven't managed this yet, because I had more
> urgent work to do. Maybe I'll get to this tomorrow; if I'll get something
> useful, I'll tell you for sure.
>
> For now I don't really have an idea how to achieve this. Maybe we could
> exchange knowledge.
>
> I'll start right here:
> I was thinking of two ways to achieve displaying sub-diagrams in a
> diagram.
> 1. As I only need to display read-only-sub-diagrams, I was thinking of
> just changing the figure of the sub-diagram-call-Node by a figure that
> contains an image of the sub-diagram. Therefor images of diagrams should
> be held as files or generated when needed with the build-in
> print-diagram-method (most convenience method if diagrams change very
> often).
>
> 2. As I have the reference to the sub-diagram the nodes of the diagram
> could be taken from the modelfile and pasted into the currentDiagram
> (!those nodes would have change-access, so that the user could change the
> sub-diagram too. This is what I don't want!!)
>
> If you have other ideas about this theme, please let me know.
>
> Greets Alex Haag
>
>
> Christian D
|
|
|
Powered by
FUDForum. Page generated in 0.07547 seconds