Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » User workspace
User workspace [message #523979] Tue, 30 March 2010 02:22 Go to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi all,

I have learnt a lot about RAP recently and it seems that it is missing an important feature for our use-case: a user-specific workspace. Indeed, since workspace is a singleton in Eclipse, there is currently a single workspace for the whole application, so that it is not possible to manage one workspace per user.
However, I am confident that there is a way to implement user-specific workspace... But I don't really have any idea yet ;)

Has anyone worked on this topic? Are there already some ideas or pieces of code that could be used for that feature?

Regards,
--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: User workspace [message #523988 is a reply to message #523979] Tue, 30 March 2010 08:07 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Mickael,

Every user has his own workspace in RAP. You can try it out here:
http://rap.eclipsesource.com/rapdemo/business

RAP provides a replacement bundle for the workbench
(org.eclipse.rap.ui.workbench) that is multi-user capable. You will use
this bundle for RAP applications anyway.

Best regards,
Ralf


Mickael Istria wrote:
> Hi all,
>
> I have learnt a lot about RAP recently and it seems that it is missing
> an important feature for our use-case: a user-specific workspace.
> Indeed, since workspace is a singleton in Eclipse, there is currently a
> single workspace for the whole application, so that it is not possible
> to manage one workspace per user.
> However, I am confident that there is a way to implement user-specific
> workspace... But I don't really have any idea yet ;)
>
> Has anyone worked on this topic? Are there already some ideas or pieces
> of code that could be used for that feature?
>
> Regards,
> --
> Mickael Istria - BonitaSoft S.A.
> http://www.bonitasoft.com/products/downloads.php
Re: User workspace [message #523994 is a reply to message #523988] Tue, 30 March 2010 08:31 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Ooops, I'm sorry, I mixed up workbench and workspace here.

Of course, you're right, there is only one workspace per application.
There are currently no plans to change this.

Depending on your use case, it could help to create a single directory
within the workspace for every user. You could then adapt the resources
bundle to point to this directory as the workspace root. But this will
only help for resources, the workspace itself is still shared.

Ralf

Ralf Sternberg wrote:
> Hi Mickael,
>
> Every user has his own workspace in RAP. You can try it out here:
> http://rap.eclipsesource.com/rapdemo/business
>
> RAP provides a replacement bundle for the workbench
> (org.eclipse.rap.ui.workbench) that is multi-user capable. You will use
> this bundle for RAP applications anyway.
>
> Best regards,
> Ralf
>
>
> Mickael Istria wrote:
>> Hi all,
>>
>> I have learnt a lot about RAP recently and it seems that it is missing
>> an important feature for our use-case: a user-specific workspace.
>> Indeed, since workspace is a singleton in Eclipse, there is currently a
>> single workspace for the whole application, so that it is not possible
>> to manage one workspace per user.
>> However, I am confident that there is a way to implement user-specific
>> workspace... But I don't really have any idea yet ;)
>>
>> Has anyone worked on this topic? Are there already some ideas or pieces
>> of code that could be used for that feature?
>>
>> Regards,
>> --
>> Mickael Istria - BonitaSoft S.A.
>> http://www.bonitasoft.com/products/downloads.php
Re: User workspace [message #524032 is a reply to message #523994] Tue, 30 March 2010 12:14 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Ralf Sternberg a écrit :
> Ooops, I'm sorry, I mixed up workbench and workspace here.
No problem.

The use case is that we have an application that uses workspace and JDT. Is there a way to isolate some parts of the workspace so that each user could only see and manipulate his own resources?

--
Mickael Istria - BonitaSoft S.A.
http://www.bonitasoft.com/products/downloads.php
Re: User workspace [message #524107 is a reply to message #524032] Tue, 30 March 2010 17:53 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Mickael Istria wrote:
> Ralf Sternberg a écrit :
>> Ooops, I'm sorry, I mixed up workbench and workspace here.
> No problem.
>
> The use case is that we have an application that uses workspace and JDT.
> Is there a way to isolate some parts of the workspace so that each user
> could only see and manipulate his own resources?

To my knowledge, there is no ready-to-use solution. You will have to
adapt the org.eclipse.core.resources bundle to work with RAP and provide
per-session workspaces in ResourcePlugin#getWorkspace(). This can be
done by using a SessionSingleton to keep workspace instances internally,
but probably there are a lot of more details to take care of.

You will also need to put some mechanism in place that creates and
cleans up those user workspaces, maps sessions to workspaces etc.
It's hard to tell how much effort this is.

Best regards, Ralf
Re: User workspace [message #818918 is a reply to message #524107] Mon, 12 March 2012 09:27 Go to previous messageGo to next message
Niels Abert is currently offline Niels AbertFriend
Messages: 4
Registered: March 2012
Junior Member
Hi Ralf,

is it possible in RAP 1.4 to create an user workspace? I'm looking for a demo.

Best regards,
Niels
Re: User workspace [message #818921 is a reply to message #524107] Mon, 12 March 2012 09:27 Go to previous messageGo to next message
Niels Abert is currently offline Niels AbertFriend
Messages: 4
Registered: March 2012
Junior Member
Hi Ralf,

is it possible in RAP 1.4 to create an user workspace? I'm looking for a demo.

Best regards,
Niels
Re: User workspace [message #818960 is a reply to message #818918] Mon, 12 March 2012 10:11 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Niels,

I'm sorry, but there's no update on this. As I said before, this
feature would require significant effort. If someone likes to work on
this, the RAP Incubator would be a suitable place for it. We'd support
this work, but can't start it on our own.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Problem with Design Examples and IE8
Next Topic:Notification that click custom widget( run the J.S. file )to show information for a view
Goto Forum:
  


Current Time: Wed Apr 24 17:48:38 GMT 2024

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

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

Back to the top