Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Remove/Disable Close button on views
Remove/Disable Close button on views [message #396454] Fri, 26 November 2004 09:02 Go to next message
Eclipse UserFriend
Im working on a RCP application that shows both ViewParts and EditorParts.
Im trying to find a way to prevent "All" Editor parts from closing and
some "ViewParts" from closing. Is there a way to either remove or disable
the "X" close button shown on a View/Editor part?

Also how do you customise the contents of the "Save Resources" dialog? and
even control when/if this is shown?

cheers,
Dave.
Re: Remove/Disable Close button on views [message #396458 is a reply to message #396454] Fri, 26 November 2004 13:12 Go to previous message
Eclipse UserFriend
In your IPerspectiveFactory you can call getViewLayout() for the views
you wish to have non-closable and call IViewLayout.setClosable(). There
is no similar support for editors, however.

Dave wrote:

> Im working on a RCP application that shows both ViewParts and
> EditorParts. Im trying to find a way to prevent "All" Editor parts from
> closing and some "ViewParts" from closing. Is there a way to either
> remove or disable the "X" close button shown on a View/Editor part?
>
> Also how do you customise the contents of the "Save Resources" dialog?
> and even control when/if this is shown?
>
> cheers,
> Dave.
>
Previous Topic:Persisting views to a database
Next Topic:White line in the title area when using TitleAreaDialog?
Goto Forum:
  


Current Time: Fri Nov 07 17:44:01 EST 2025

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

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

Back to the top