Home » Modeling » GMF (Graphical Modeling Framework) » multiple diagrams, one editor + navigator
|
Re: multiple diagrams, one editor + navigator [message #221865 is a reply to message #221826] |
Thu, 19 March 2009 09:24 |
Christophe Bouhier Messages: 937 Registered: July 2009 |
Senior Member |
|
|
Inline comments.
Idelman Andro wrote:
> Hi,
> I'm working on project with multiple diagrams and I want to achieve the
> folowing:
>
> 1) only one diagram can be edit at a given moment, when a new diagram is
> open, its open in the same editor (same tab in the working space).
Are you familiar with multipage editors, it's the same top tab, but
below there will be multiple tabs, each could have a diagram. Is this
what you want?
If not, an alternative could be to close programmaticly the currently
open editor, and open a new one which will take the place of the
previous. (Giving the visual impression that it;s the same tab).
> 2) navigating between the diagrams can be done by the project explorer
> (Navigator).
>
This is simply triggering opening an editor (And closing the previous
one) based on a navigator selection.
> right now I have multiple diagrams (no shared model), when I open a new
> diagram it opened in a new editor. the generated project explorer shows
> only sub diagrams of 'Top Nodes' and they are represented in the project
> explorer as siblings of the main element (while they should be children).
>
> what is the recommended solution in this case? and is it necessary to to
> use shared model (I want to avoid it) ?
>
It's not if you do the "close" trick i think, haven't tried it the
screen could actually flicker.
Cheers Christophe
> Thanks,
> - Andro
>
|
|
|
Re: multiple diagrams, one editor + navigator [message #222076 is a reply to message #221865] |
Fri, 20 March 2009 07:47 |
Idelman Andro Messages: 8 Registered: July 2009 |
Junior Member |
|
|
Hi Christophe, Thanks for the quick replay.
What about the generated Project Explorer -
when a new sub diagram is opened, it is not represented in the right place
of the Project Explorer tree.
Actually, only sub diagrams that are 'Top Nodes' of the main diagram are
represented in the Project Explorer.
how can I fix this?
if I'll use one shared model for all the diagrams,will it affect the
project explorer?
-Andro
Christophe Bouhier wrote:
> Inline comments.
> Idelman Andro wrote:
>> Hi,
>> I'm working on project with multiple diagrams and I want to achieve the
>> folowing:
>>
>> 1) only one diagram can be edit at a given moment, when a new diagram is
>> open, its open in the same editor (same tab in the working space).
> Are you familiar with multipage editors, it's the same top tab, but
> below there will be multiple tabs, each could have a diagram. Is this
> what you want?
> If not, an alternative could be to close programmaticly the currently
> open editor, and open a new one which will take the place of the
> previous. (Giving the visual impression that it;s the same tab).
>> 2) navigating between the diagrams can be done by the project explorer
>> (Navigator).
>>
> This is simply triggering opening an editor (And closing the previous
> one) based on a navigator selection.
>> right now I have multiple diagrams (no shared model), when I open a new
>> diagram it opened in a new editor. the generated project explorer shows
>> only sub diagrams of 'Top Nodes' and they are represented in the project
>> explorer as siblings of the main element (while they should be children).
>>
>> what is the recommended solution in this case? and is it necessary to to
>> use shared model (I want to avoid it) ?
>>
> It's not if you do the "close" trick i think, haven't tried it the
> screen could actually flicker.
> Cheers Christophe
>> Thanks,
>> - Andro
>>
|
|
| | | | | |
Goto Forum:
Current Time: Fri Apr 26 04:35:32 GMT 2024
Powered by FUDForum. Page generated in 0.04259 seconds
|