Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Synchornize scrollbars of two graphical viewers
Synchornize scrollbars of two graphical viewers [message #220570] Wed, 02 August 2006 09:36 Go to next message
Eclipse UserFriend
Originally posted by: shruthi.cn.in.bosch.com

Hello everybody,

I have two graphical viewers of type
org.eclipse.gef.ui.parts.ScrollingGraphicalViewer. These two viewers are
placed in a sash form.

The contents of these graphical viewers may differ from each other.

I want the movement of horizontal scrollbars of both viewers to be
synchronized i.e when i move scrollbar of one viewer, the other
scrollbar of the other viewer should also move.

I have tried to use RangeModel, but i think i am not using it correctly.
I checked a lot for any code snippets in the net. But didnt find any.
If you could send any code snippets or any idea or link to solve the
problem, it would be great.
Please help.

Thanks
Best Regards
Shruthi
Re: Synchornize scrollbars of two graphical viewers [message #220608 is a reply to message #220570] Wed, 02 August 2006 17:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

The rulers in the logic example do this. When you scroll the main diagram,
the rulers (which are in a different gef viewer) scroll as well. Their
scrollbars are hidden of course, but the concept is the same. You can look
at that code as reference.

"shruthi" <shruthi.cn@in.bosch.com> wrote in message
news:a40ca7ce936ae15cd8e25c5ee0511e84$1@www.eclipse.org...
> Hello everybody,
>
> I have two graphical viewers of type
> org.eclipse.gef.ui.parts.ScrollingGraphicalViewer. These two viewers are
> placed in a sash form.
>
> The contents of these graphical viewers may differ from each other.
> I want the movement of horizontal scrollbars of both viewers to be
> synchronized i.e when i move scrollbar of one viewer, the other scrollbar
> of the other viewer should also move.
>
> I have tried to use RangeModel, but i think i am not using it correctly.
> I checked a lot for any code snippets in the net. But didnt find any.
> If you could send any code snippets or any idea or link to solve the
> problem, it would be great.
> Please help.
>
> Thanks
> Best Regards
> Shruthi
>
>
Re: Synchornize scrollbars of two graphical viewers [message #220681 is a reply to message #220570] Thu, 03 August 2006 12:10 Go to previous message
Eclipse UserFriend
Originally posted by: senthil.periasamy.flextronicssoftware.com

Hi
Are you from india. Please let me know if you have any contact
email id or contact number i am very novice to GMF EMF and GEF and i am
currently started to learn about the different framework

regards
senthil
Previous Topic:Print figure operation yields blank page
Next Topic:Snap to Grid
Goto Forum:
  


Current Time: Wed Jan 22 09:15:01 GMT 2025

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

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

Back to the top