Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » workspaces
workspaces [message #463526] Tue, 13 February 2007 06:17 Go to next message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

Hello everybody!
Is there a possibility to create a workspace from my RCP-application,
"attached" to a certain directory on the disk, so that once my
application is run, the files in that directory are locked and could be
accessed only from within my application?
Sorry if it is a stupid question. :-[
Thanks very much in advance.
Re: workspaces [message #463537 is a reply to message #463526] Tue, 13 February 2007 07:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krzysztofHMMMMdaniel.gmail.com

Hi Peter

I am afraid that the thing you would like to do is beyond RCP possibilities.
Could you explain what does it mean "accessed"? Read-Write protection?
Write protection?

Regards,
Chris
Re: workspaces [message #463539 is a reply to message #463537] Tue, 13 February 2007 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

Daniel, thanks very much for your answer.
Well, I have a directory that contains some xml files(in
user.home/some_dir location) that are use to store some
user-related(like connections info) information between session. I would
like to only allow read those files from without the program and
read-write from within. So, that nobody would go to that directory and
start spoiling the files whilst the application is being run.
Besides, as far as I am aware you can avoid conflicts when accessing the
same files when working in terms of resources which is quite useful as
well.

Krzysztof Daniel wrote:
> Hi Peter
>
> I am afraid that the thing you would like to do is beyond RCP
> possibilities.
> Could you explain what does it mean "accessed"? Read-Write protection?
> Write protection?
>
> Regards,
> Chris
Re: workspaces [message #463542 is a reply to message #463539] Tue, 13 February 2007 08:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: krzysztofHMMMMdaniel.gmail.com

My name is Chris ;P

Yes, thats true you can avoid conflicts, but the mechanism works between
plugins within the application.

The problem you are trying to solve is as old as the role of user ;).
And an evil user can modify files while application is not running and
you can't do anything about that (even checksums can be broken ;) ).

Anyway, I have a few thoughts:
1. you may be cruel to the user: try cache resources and write them
without taking care about manually made changes.
2. Like 1, but after reading you may set them as read-only.

Actually I do not see clean cross-platform solution for your issue.

Regards,
Chris
Re: workspaces [message #463543 is a reply to message #463542] Tue, 13 February 2007 08:18 Go to previous message
Eclipse UserFriend
Originally posted by: peter_ossipov.mail.ru

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry Chris.<br>
It is just that my e-mail client says that you are a <u><b>Krzysztof
Daniel</b></u>, as you can see below.<br>
Anyway, I do understand that the evil user can do those things, but at
least I can control it for some time.<br>
Thanks for the suggestions!<br>
<br>
<u><b>Krzysztof Daniel wrote:</b></u>
<blockquote cite="mideqsddt$qoh$2@utils.eclipse.org" type="cite">My
name is Chris ;P
<br>
<br>
Yes, thats true you can avoid conflicts, but the mechanism works
between plugins within the application.
<br>
<br>
The problem you are trying to solve is as old as the role of user ;).
And an evil user can modify files while application is not running and
you can't do anything about that (even checksums can be broken ;) ).
<br>
<br>
Anyway, I have a few thoughts:
<br>
1. you may be cruel to the user: try cache resources and write them
without taking care about manually made changes.
<br>
2. Like 1, but after reading you may set them as read-only.
<br>
<br>
Actually I do not see clean cross-platform solution for your issue.
<br>
<br>
Regards,
<br>
Chris
<br>
</blockquote>
<br>
</body>
</html>
Previous Topic:ViewPart setAccelerator method
Next Topic:[Contributions] New Menu API in 3.3M5
Goto Forum:
  


Current Time: Thu Mar 27 03:53:11 EDT 2025

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

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

Back to the top