Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to sync a view with the editor?
How to sync a view with the editor? [message #216020] Fri, 12 May 2006 09:36 Go to next message
Eclipse User
Originally posted by: rajakididi.hotmail.com

Hi everyone

I am trying to create a view similar to the Outline View available with
Eclipse. This view will list down all the models available in the Editor
build on gef.
What I need is whenever the user will select any model from the view the
model should get highlighted and must get visible in the sense that area
of the editor should come in view where that model is drawn.

Can anyone please suggest how can I create something like this?

Thanks in advance
Melanie
Re: How to sync a view with the editor? [message #216207 is a reply to message #216020] Tue, 16 May 2006 07:34 Go to previous messageGo to next message
Eclipse User
Originally posted by: rajakididi.hotmail.com

Hey all

No response from anyone :(

seems like no one has any idea regarding this...anyways i am trying on my
own still...
any suggestions and ideas are needed

Thanks..!!!
Melanie
Re: How to sync a view with the editor? [message #216336 is a reply to message #216207] Wed, 17 May 2006 08:57 Go to previous messageGo to next message
Sebu Thomas is currently offline Sebu Thomas
Messages: 12
Registered: July 2009
Junior Member
Melanie wrote:
> Hey all
>
> No response from anyone :(
>
> seems like no one has any idea regarding this...anyways i am trying on
> my own still...
> any suggestions and ideas are needed
>
> Thanks..!!!
> Melanie
>

Get the SelectionSynchronizer for your GraphicalEditor and do
addViewer() passing in your viewer as parameter. Note that
getSelectionSynchronizer() in GraphicalEditor is protected method.
Re: How to sync a view with the editor? [message #216344 is a reply to message #216336] Wed, 17 May 2006 10:07 Go to previous messageGo to next message
Eclipse User
Originally posted by: rajakididi.hotmail.com

Thanks for the reply.

I am now working on similar lines as the Outline View.
This class also gets the Selection Synchronizer of the Editor and then
pass the viewer as you have explained.

I am working on it and will get back to you if need some more help.

Thanks
Melanie
Re: How to sync a view with the editor? [message #218866 is a reply to message #216336] Tue, 04 July 2006 06:50 Go to previous message
Eclipse User
Originally posted by: reinalt.gmail.com

I hv a Sample View where i want to reflect the changes made in the
currently opened Editor.... I hv set the selectionProvider ... how do i
know in SampleView whther there has been sm changes in the editor?????

thnx
reinalt
Previous Topic:Bad Georgia State Download
Next Topic:GEF within an applet
Goto Forum:
  


Current Time: Thu Oct 23 21:17:42 GMT 2014

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

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