Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to disable closing a view?
How to disable closing a view? [message #102321] Wed, 13 August 2008 20:32 Go to next message
Eclipse UserFriend
Originally posted by: tavoaqp.gmail.com

Hi
I need to disable the close icon in my views. I know the
org.eclipse.rap.maildemo implements this but I was unable to find that
project in the CVS, there is only the org.eclipse.rap.maildemo.ext.
Would anybody please tell me how can I implement this feature in RAP?

Thanks.
Gustavo
Re: How to disable closing a view? [message #102348 is a reply to message #102321] Wed, 13 August 2008 21:40 Go to previous message
Eclipse UserFriend
Originally posted by: evolanakis.innoopract.com

Hi Gustavo,

here are two ways:

(1) you can make the whole perspective "fixed". This way no view in the
perspective can be closed. The tab of the view is still shown but
without the "x":

<extension point="org.eclipse.ui.perspectives">
<perspective
class="org.foo.FooPerspective"
fixed="true" <----------------------------
// [...]

(2) In you perspective factory (class FooPerspective above) you can add
a "standalone" view. The tab of standalone views is hidden.

public class FooPerspective implements IPerspectiveFactory {

public void createInitialLayout( IPageLayout layout ) {
// [...]
layout.addStandaloneView( // <----------------------
"MyView", false, IPageLayout.LEFT, 0.5f, layout.getEditorArea() );
}
}

Regards,
Elias.

Gustavo wrote:
> Hi
> I need to disable the close icon in my views. I know the
> org.eclipse.rap.maildemo implements this but I was unable to find that
> project in the CVS, there is only the org.eclipse.rap.maildemo.ext.
> Would anybody please tell me how can I implement this feature in RAP?
>
> Thanks.
> Gustavo

--
---
Elias Volanakis
Innoopract, Inc.
http://www.innoopract.com
Previous Topic:UICallback
Next Topic:custom controls and http requests: Combobox isn't updating when a request is sent imperatively
Goto Forum:
  


Current Time: Sat Apr 27 03:48:38 GMT 2024

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

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

Back to the top