|
Re: Prevent user from closing view [message #88902 is a reply to message #88821] |
Tue, 20 May 2008 18:48 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Tiago,
apart from writing your own presentation, the only way I know of is
to use a standalone view.
For details please search for 'eclipse standalone view' or consult
that JavaDoc of org.eclipse.ui.IPageLayout#addStandaloneView.
Cheers,
Rüdiger
Tiago wrote:
> Hi,
>
> Is there any way for preventing a user to close a view?
>
> Thanks
>
> Tiago
|
|
|
Re: Prevent user from closing view [message #89363 is a reply to message #88902] |
Thu, 22 May 2008 10:03 |
Eclipse User |
|
|
|
Originally posted by: jkrause.innoopract.com
You can prevent views from being closable programmatically in your
Perspective implementation. This is an example code snippet:
private void makeNotCloseable( final IPageLayout layout,
final String[] viewIds ) {
for( int i = 0; i < viewIds.length; i++ ) {
layout.getViewLayout( viewIds[ i ] ).setCloseable( false );
}
}
Jochen
Rüdiger Herrmann wrote:
> Tiago,
>
> apart from writing your own presentation, the only way I know of is to
> use a standalone view.
> For details please search for 'eclipse standalone view' or consult that
> JavaDoc of org.eclipse.ui.IPageLayout#addStandaloneView.
>
> Cheers,
> Rüdiger
>
> Tiago wrote:
>> Hi,
>>
>> Is there any way for preventing a user to close a view?
>>
>> Thanks
>>
>> Tiago
|
|
|
|
Powered by
FUDForum. Page generated in 0.03362 seconds