Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to manage workspace(s) in an RCP application
How to manage workspace(s) in an RCP application [message #628670] Thu, 23 September 2010 15:40 Go to next message
Vincent MAHE is currently offline Vincent MAHEFriend
Messages: 129
Registered: July 2009
Senior Member
Hello

We currently design an application which use workspaces (and Project
Explorer as well). The application plug-ins can be used in Eclipse
workbench and then take benefits of underlying Eclipse IDE.

But we also need to package this application standalone as an RCP
product. We meet some difficulties to insert Eclipse IDE elements:
- the Project Explorer displayed empty workspace: solved
- users need to switch workspace: we added the dialog to a menu, but
their choice is not saved and restart open once again default workspace

It is really hard to find useable information about such problems which
imply both extensions, actions/commands, menus AND INTERNALS!

Is their a place or a deep documentation for such reuses of Eclipse IDE?
--
Cordialement

Vincent MAHÉ

Ingénieur Expert - Projet IDM++ - Équipe AtlanMod
École des Mines de Nantes
La Chantrerie - 4, rue Alfred Kastler
B.P. 20722 - F-44307 NANTES Cedex 3
Tel: (33)2 51 85 81 00
Re: How to manage workspace(s) in an RCP application [message #628728 is a reply to message #628670] Thu, 23 September 2010 19:48 Go to previous messageGo to next message
Federico Gaule is currently offline Federico GauleFriend
Messages: 21
Registered: September 2010
Location: Buenos Aires, Argentina
Junior Member
Hi.
I have something similar in my project. To achieve what you want, i used preferences to save the "workspace" the user has selected to switch. After i call
PlatformUI.getWorkbench().restart();

And when my application is starting i read the preference value to set the workspace.

Hope it helps.
Re: How to manage workspace(s) in an RCP application [message #628777 is a reply to message #628728] Fri, 24 September 2010 05:53 Go to previous message
Vincent MAHE is currently offline Vincent MAHEFriend
Messages: 129
Registered: July 2009
Senior Member
Le 23/09/2010 21:48, Federico Gaule a écrit :
> Hi. I have something similar in my project. To achieve what you want, i
> used preferences to save the "workspace" the user has selected to
> switch. After i call PlatformUI.getWorkbench().restart();
>
> And when my application is starting i read the preference value to set
> the workspace.
>
> Hope it helps.
>

Thank you for the tip :-)
May be the Eclipse application does the same way ...
--
Cordialement

Vincent MAHÉ

Ingénieur Expert - Projet IDM++ - Équipe AtlanMod
École des Mines de Nantes
La Chantrerie - 4, rue Alfred Kastler
B.P. 20722 - F-44307 NANTES Cedex 3
Tel: (33)2 51 85 81 00
Previous Topic:FormEditor with TableViewer shows two scrollbars
Next Topic:Links to files in the About dialog AboutText variable
Goto Forum:
  


Current Time: Thu Apr 18 06:54:11 GMT 2024

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

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

Back to the top