This is not
really the right list but it's close enough (platform-team-dev would be more
appropriate). Technically, you could use either the java.io.File or
IResource/IFile APIs to access the contents of the files. However, if the
files are under source control, there is always the possibility that they are
not checked-out (i.e. are read only). In this case, you will want to use the
validateEdit mechanism to give the source control system (in this case,
CleareCase), a chance to check out the files before you edit them. Have a look
at the IWorkspace#validateEdit method for a description of how to do this.
This API is IFile based so you would need to use the IResource API at least
for this call but could then access the contents using java.io.File once the
files are checked out.
Michael
"Sidle, Philomena Lee"
<philomena.sidle@xxxxxxxxxx> Sent by: platform-cvs-dev-admin@xxxxxxxxxxx
04/03/2004 03:11 PM
Please respond
to platform-cvs-dev |
|
To
| <platform-cvs-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| [platform-cvs-dev] How
to write files that are Clearcase elements within Eclipse
? |
|
Hi,
I am trying to read/update/delete/add some files
within Eclipse platform. These files are Clearcase elements that are under
Clearcase source control. I have installed the Clearcase plug-in. Does anyone
know if I can use the JAVA FIle/FileWiter/FileReader for file access or must I
use the Eclipse API (such as IFile) ? I am new to this mail list so
please let me know if this is not the correct list.
Thanks for any information.
Philomena Sidle
UGSPLM Solutions.