Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Synchronize views separator
Synchronize views separator [message #463060] Mon, 05 February 2007 18:30 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I guess I already know the answer but I thought I'd double check. I have
2 different perspectives who both show on the left side the same View.
What I now want is that if I change in one perspective the space the
view occupies that this change is automatically propagated the other
perspective (or recalculated when the other perspective opens).

So my question is: Is there a possibility to track when the users drags
the seperator between views and update the seperator in an other
perspective. I guess the answer is no but I thought I could ask. Any
other ideas welcome of course.

Tom
Re: Synchronize views separator [message #463064 is a reply to message #463060] Mon, 05 February 2007 20:48 Go to previous message
Jacek Pospychala is currently offline Jacek PospychalaFriend
Messages: 159
Registered: July 2009
Senior Member
Tom,

provided that you have access to the view control passed in
createPartControl(), you could listen on that view size change, and
update your perspectives. There is no other way to track resize changes.

Anyway, what happens if user moves the view in one perspective to other
part of the window? Should the second perspective follow?

Jacek

Tom Schindl napisał(a):
> Hi,
>
> I guess I already know the answer but I thought I'd double check. I have
> 2 different perspectives who both show on the left side the same View.
> What I now want is that if I change in one perspective the space the
> view occupies that this change is automatically propagated the other
> perspective (or recalculated when the other perspective opens).
>
> So my question is: Is there a possibility to track when the users drags
> the seperator between views and update the seperator in an other
> perspective. I guess the answer is no but I thought I could ask. Any
> other ideas welcome of course.
>
> Tom
Previous Topic:Focus lost between Editor and Shell
Next Topic:Registering my own custom IProgressMonitor
Goto Forum:
  


Current Time: Thu Oct 03 11:54:37 GMT 2024

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

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

Back to the top