Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to hide/disable a views contents while resizing the view
How to hide/disable a views contents while resizing the view [message #458933] Tue, 26 July 2005 18:15 Go to next message
Alexander Karnstedt is currently offline Alexander KarnstedtFriend
Messages: 68
Registered: July 2009
Member
One of my views contains a swing based JavaBean for displaying mapping data
and so is very slow to repaint. Thus I'm trying to intermit repaint (set the
JavaBean invisible) while resizing of the view is done.

I can only listen for resize events (continuously), but cannot figure out
when resize is started and stopped.

Does someone knows a solution or example for this problem?

Thanks.

Alexander Karnstedt
Re: How to hide/disable a views contents while resizing the view [message #459100 is a reply to message #458933] Mon, 01 August 2005 22:17 Go to previous messageGo to next message
Alexander Karnstedt is currently offline Alexander KarnstedtFriend
Messages: 68
Registered: July 2009
Member
I've seen, that there is a flag SWT.SMOOTH for sash wich seems to cause the
client areas either resize continuously or after the sash has been freed.

That's exactly the way the viewparts on my workbench should work.

But how can I disable the SWT.SMOOTH flag for the views within my RCP?

Regards
Alexander Karnstedt

"Alexander Karnstedt" <alexander_berlin@gmx.de> schrieb im Newsbeitrag
news:dc5uij$qs1$1@news.eclipse.org...
> One of my views contains a swing based JavaBean for displaying mapping
data
> and so is very slow to repaint. Thus I'm trying to intermit repaint (set
the
> JavaBean invisible) while resizing of the view is done.
>
> I can only listen for resize events (continuously), but cannot figure out
> when resize is started and stopped.
>
> Does someone knows a solution or example for this problem?
>
> Thanks.
>
> Alexander Karnstedt
>
>
Re: How to hide/disable a views contents while resizing the view [message #459101 is a reply to message #459100] Tue, 02 August 2005 00:00 Go to previous message
Alexander Karnstedt is currently offline Alexander KarnstedtFriend
Messages: 68
Registered: July 2009
Member
Eureka! Found the solution in org.eclipse.ui.internal.LayoutPartSash

Inside the method doCreateControl remove the flag SWT.SMOOTH and rebuild the
workbench plugin (sigh!).

Wouldn't it be nice to have a global preference or workbench property to
manage this? I think a lot of people have heavy slow refreshing view parts
in there RCP applications and so got problems with smooth sash resizing.

Regards
Alexander Karnstedt





"Alexander Karnstedt" <alexander_berlin@gmx.de> schrieb im Newsbeitrag
news:dcm6vi$uv6$1@news.eclipse.org...
> I've seen, that there is a flag SWT.SMOOTH for sash wich seems to cause
the
> client areas either resize continuously or after the sash has been freed.
>
> That's exactly the way the viewparts on my workbench should work.
>
> But how can I disable the SWT.SMOOTH flag for the views within my RCP?
>
> Regards
> Alexander Karnstedt
>
> "Alexander Karnstedt" <alexander_berlin@gmx.de> schrieb im Newsbeitrag
> news:dc5uij$qs1$1@news.eclipse.org...
> > One of my views contains a swing based JavaBean for displaying mapping
> data
> > and so is very slow to repaint. Thus I'm trying to intermit repaint (set
> the
> > JavaBean invisible) while resizing of the view is done.
> >
> > I can only listen for resize events (continuously), but cannot figure
out
> > when resize is started and stopped.
> >
> > Does someone knows a solution or example for this problem?
> >
> > Thanks.
> >
> > Alexander Karnstedt
> >
> >
>
>
Previous Topic:FormText <span> tag not supported?
Next Topic:Modal dialog with Swing content
Goto Forum:
  


Current Time: Fri Apr 26 03:12:06 GMT 2024

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

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

Back to the top