empty editor area after reloading [message #462184] |
Wed, 24 January 2007 11:00 |
Eclipse User |
|
|
|
Originally posted by: Henry.Grippa.googlemail.com
This is a multi-part message in MIME format.
--------------010605060507000009020005
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: 7bit
By default editor area in my RCP application is hidden and user could
open it with some editors.
But after restart the editor area is shown and empty in spite of the
fact that it was closed with some editors within it.
Could anyone tell me how to hide this area after restart *OR* how to
restore editors inside the area (*the first solution will be more
preferable*)?
Thanks in advance.
Regards,
Henry
--------------010605060507000009020005
Content-Type: text/html; charset=windows-1251
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1251"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
By default editor area in my RCP application is hidden and user could
open it with some editors.<br>
But after restart the editor area is shown and empty in spite of the
fact that it was closed with some editors within it.<br>
<br>
Could anyone tell me how to hide this area after restart <b>OR</b> how
to restore editors inside the area (<b>the first solution will be more
preferable</b>)?<br>
<br>
Thanks in advance.<br>
<br>
Regards,<br>
Henry<br>
</body>
</html>
--------------010605060507000009020005--
|
|
|
|
Re: empty editor area after reloading [message #462199 is a reply to message #462193] |
Wed, 24 January 2007 12:29 |
Eclipse User |
|
|
|
Originally posted by: Henry.Grippa.googlemail.com
But I extremely want to restore configuration except editor area.
I mean that everything is Ok. But empty editor area is look like a mess.
I want to restore editor area configuration as well or (and it will be
better) to hide it.
Regards,
Henry
Ilya Shinkarenko wrote:
> Hi,
>
> 1st solution:
>
> To disable persisting of the workbench state override the following
> method of your WorkbechAdvisor:
> public void initialize(IWorkbenchConfigurer configurer) {
> configurer.setSaveAndRestore(false);
> }
>
> 2nd solution:
> have a look at
> public IPersistableElement getPersistable();
> method of IEditorInput
>
>
> Ilya Shinkarenko
>
|
|
|
Powered by
FUDForum. Page generated in 0.03234 seconds