Synchornize scrollbars of two graphical viewers [message #220570] |
Wed, 02 August 2006 09:36 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04091 seconds