Skip to main content



      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 14:26 Go to next message
Eclipse UserFriend
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 16:29 Go to previous messageGo to next message
Eclipse UserFriend
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 17:56 Go to previous message
Eclipse UserFriend
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: Tue Jul 08 06:05:41 EDT 2025

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

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

Back to the top