User workspace [message #523979] |
Tue, 30 March 2010 02:22 |
|
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 |
|
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 |
|
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 #524107 is a reply to message #524032] |
Tue, 30 March 2010 17:53 |
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04438 seconds