Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » RCP with "Save and Restore State"
RCP with "Save and Restore State" [message #436579] Wed, 19 May 2004 18:26 Go to next message
Mark Victory is currently offline Mark VictoryFriend
Messages: 133
Registered: July 2009
Senior Member
Does anyone know if the IWorkbenchConfigurer.setSaveAndRestore( ) method
should work within and RCP application.

I am seeing two issues:

1. It seems to have trouble saving/restoring my perspective.
2. Looking at the generated XML, it seems to be assuming a project exists
since all the open file names are saved as paths that are assumed to be
relative to some point, as opposed to a full path

Thanks,
Mark
Re: RCP with "Save and Restore State" [message #436633 is a reply to message #436579] Thu, 20 May 2004 20:29 Go to previous messageGo to next message
Ed Burnette is currently offline Ed BurnetteFriend
Messages: 279
Registered: July 2009
Senior Member
This question should go on eclipse.platform, but the function works for me.
I don't have any editors in my RCP programs though, and I'm not using the
resources plug-in (it wasn't clear if you were) so that might be a
difference.

--
Ed Burnette, co-author, Eclipse in Action
www.eclipsepowered.org

"Mark Victory" <MVictory@us.ibm.com> wrote in message
news:c8g802$6ir$1@eclipse.org...
> Does anyone know if the IWorkbenchConfigurer.setSaveAndRestore( ) method
> should work within and RCP application.
>
> I am seeing two issues:
>
> 1. It seems to have trouble saving/restoring my perspective.
> 2. Looking at the generated XML, it seems to be assuming a project
exists
> since all the open file names are saved as paths that are assumed to be
> relative to some point, as opposed to a full path
>
> Thanks,
> Mark
>
>
Re: RCP with "Save and Restore State" [message #436636 is a reply to message #436579] Thu, 20 May 2004 21:56 Go to previous message
Lorenz Maierhofer is currently offline Lorenz MaierhoferFriend
Messages: 88
Registered: July 2009
Member
Mark Victory wrote:

> Does anyone know if the IWorkbenchConfigurer.setSaveAndRestore( ) method
> should work within and RCP application.
>
> I am seeing two issues:
>
> 1. It seems to have trouble saving/restoring my perspective.
In my RCP-App I have no problems - works perfectly for me.

> 2. Looking at the generated XML, it seems to be assuming a project exists
> since all the open file names are saved as paths that are assumed to be
> relative to some point, as opposed to a full path
Sounds like you are using FileEditorInput as input for your editor -
that assumes that everything is in your workspace and can be accessed
with the IFile class.
If you look at FileEditorInputFactory, you see that only the relative
(to the workspace) path is stored.

Lorenz
Previous Topic:TextViewer and SWT.BORDER
Next Topic:Easy Question SWT Geting Controls names and types
Goto Forum:
  


Current Time: Sat Apr 27 00:13:01 GMT 2024

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

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

Back to the top