Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » empty editor area after reloading
empty editor area after reloading [message #462184] Wed, 24 January 2007 11:00 Go to next message
Eclipse UserFriend
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 #462193 is a reply to message #462184] Wed, 24 January 2007 12:04 Go to previous messageGo to next message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 22
Registered: July 2009
Junior Member
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
--
www.rcp-training.com
www.weiglewilczek.com


Henry Grippa wrote:
> 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
Re: empty editor area after reloading [message #462199 is a reply to message #462193] Wed, 24 January 2007 12:29 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Changing Osgi log file location
Next Topic:A question about DSOFramer.ocx
Goto Forum:
  


Current Time: Fri Sep 13 12:57:21 GMT 2024

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

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

Back to the top