Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » how to disable views
how to disable views [message #255651] Wed, 07 May 2008 09:56 Go to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hi,


I am developing an RCP application with search functionality.
In this, when the search dialog is open, the user should not be able to
select any other view.
This behavior is similar to the existing search functionality of
eclipse. However I am not able to find out how this is done.

I tried searching on net for ways to disable view. However I have only
found ways to find/hide views.

It would be of great help is someone could give me pointers on how views
can be disabled when a dialog box is open.

Thanks,
Sneha
Re: how to disable views [message #255759 is a reply to message #255651] Thu, 08 May 2008 05:32 Go to previous messageGo to next message
Ken is currently offline KenFriend
Messages: 10
Registered: July 2009
Junior Member
user@domain.invalid wrote:
> Hi,
>
>
> I am developing an RCP application with search functionality.
> In this, when the search dialog is open, the user should not be able to
> select any other view.
> This behavior is similar to the existing search functionality of
> eclipse. However I am not able to find out how this is done.
>
> I tried searching on net for ways to disable view. However I have only
> found ways to find/hide views.
>
> It would be of great help is someone could give me pointers on how views
> can be disabled when a dialog box is open.
>
> Thanks,
> Sneha
try to use modal dialog in swt,
like:
new Dialog(shell,SWT.APPLICATION_MODAL)
you can't do anything without closed this dialog.

Ken
Kenbeinside@gmail.com
Re: how to disable views [message #255903 is a reply to message #255759] Fri, 09 May 2008 06:24 Go to previous message
Eclipse UserFriend
Originally posted by: sneha29.gmail.com

Hi,
Thanks for the suggestion Ken,
It worked!

Thanks,
Sneha

Ken wrote:
> user@domain.invalid wrote:
>> Hi,
>>
>>
>> I am developing an RCP application with search functionality.
>> In this, when the search dialog is open, the user should not be able
>> to select any other view.
>> This behavior is similar to the existing search functionality of
>> eclipse. However I am not able to find out how this is done.
>>
>> I tried searching on net for ways to disable view. However I have only
>> found ways to find/hide views.
>>
>> It would be of great help is someone could give me pointers on how
>> views can be disabled when a dialog box is open.
>>
>> Thanks,
>> Sneha
> try to use modal dialog in swt,
> like:
> new Dialog(shell,SWT.APPLICATION_MODAL)
> you can't do anything without closed this dialog.
>
> Ken
> Kenbeinside@gmail.com
Previous Topic:[Fwd: Zoom in time too long]
Next Topic:Eclipse 3.3 and Solaris 8
Goto Forum:
  


Current Time: Tue Nov 12 19:54:11 GMT 2024

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

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

Back to the top