Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Custom view problem, into the GMF-RCP application
Custom view problem, into the GMF-RCP application [message #181943] Wed, 09 April 2008 14:37 Go to next message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

Hello,

I have this situation: I have created a view which shows inside of it some
"part" of the model shown by the active editor. In other words, my GMF-RCP
application has an editor and a view. The editor opens a model and the view
shows some "part" of the model.

Everything works fine (the view is "synchronized" with the editor) except
for one situation:

- I have a model open in the editor -> the view shows correctly the "part"
of the model
- I close the application
- I open the application and the editor remembers and shows correctly the
model which was previously open
- also the PropertiesView shows correctly the model's properties
- BUT, the view does NOT show the "part" of the model (actually, it shows
nothing)
- if I open another model into the editor, the view works, again, correctly

So, my question is: what am I missing? What do I have to "tell" the view in
order to make it work correctly also in the last situation (considering the
PropertiesView, for instance, works fine)

Thanks for your help,



Floppy
Re: Custom view problem, into the GMF-RCP application [message #181952 is a reply to message #181943] Wed, 09 April 2008 15:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

P.S. It seems that the "selectionChanged" method does not get called when
the application starts with the previous model open in the editor...

So, how can I tell to my view (like the application tells to the
PropertiesView or OutlineView) that there is a model open in the editor and
it (the view) should show the appropriate content?



"Florin Banica" <fbanica@soluta.net> wrote in message
news:ftikbr$v0$1@build.eclipse.org...
> Hello,
>
> I have this situation: I have created a view which shows inside of it some
> "part" of the model shown by the active editor. In other words, my GMF-RCP
> application has an editor and a view. The editor opens a model and the
> view shows some "part" of the model.
>
> Everything works fine (the view is "synchronized" with the editor) except
> for one situation:
>
> - I have a model open in the editor -> the view shows correctly the "part"
> of the model
> - I close the application
> - I open the application and the editor remembers and shows correctly the
> model which was previously open
> - also the PropertiesView shows correctly the model's properties
> - BUT, the view does NOT show the "part" of the model (actually, it shows
> nothing)
> - if I open another model into the editor, the view works, again,
> correctly
>
> So, my question is: what am I missing? What do I have to "tell" the view
> in order to make it work correctly also in the last situation (considering
> the PropertiesView, for instance, works fine)
>
> Thanks for your help,
>
>
>
> Floppy
>
Re: Custom view problem, into the GMF-RCP application [message #182602 is a reply to message #181952] Fri, 11 April 2008 13:06 Go to previous message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

Anyone? Help, please!


"Florin Banica" <fbanica@soluta.net> wrote in message
news:ftim3g$m7o$1@build.eclipse.org...
> P.S. It seems that the "selectionChanged" method does not get called when
> the application starts with the previous model open in the editor...
>
> So, how can I tell to my view (like the application tells to the
> PropertiesView or OutlineView) that there is a model open in the editor
> and it (the view) should show the appropriate content?
>
>
>
> "Florin Banica" <fbanica@soluta.net> wrote in message
> news:ftikbr$v0$1@build.eclipse.org...
>> Hello,
>>
>> I have this situation: I have created a view which shows inside of it
>> some "part" of the model shown by the active editor. In other words, my
>> GMF-RCP application has an editor and a view. The editor opens a model
>> and the view shows some "part" of the model.
>>
>> Everything works fine (the view is "synchronized" with the editor) except
>> for one situation:
>>
>> - I have a model open in the editor -> the view shows correctly the
>> "part" of the model
>> - I close the application
>> - I open the application and the editor remembers and shows correctly the
>> model which was previously open
>> - also the PropertiesView shows correctly the model's properties
>> - BUT, the view does NOT show the "part" of the model (actually, it shows
>> nothing)
>> - if I open another model into the editor, the view works, again,
>> correctly
>>
>> So, my question is: what am I missing? What do I have to "tell" the view
>> in order to make it work correctly also in the last situation
>> (considering the PropertiesView, for instance, works fine)
>>
>> Thanks for your help,
>>
>>
>>
>> Floppy
>>
>
>
Previous Topic:Migration to GMF 2.0.2
Next Topic:GMF's Diagram menu
Goto Forum:
  


Current Time: Tue Apr 23 09:14:11 GMT 2024

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

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

Back to the top