Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] FW: [platform-cvs-dev] How to write files that are Clearcase ele ments within Eclipse ?

  This message is likely an important thing to keep in mind, especially with respect to the .cdtproject
editing and configuration.  I haven't looked at the code yet, but it is next on my list of things to do =;-)
 -----Original Message-----
From: platform-cvs-dev-admin@xxxxxxxxxxx [mailto:platform-cvs-dev-admin@xxxxxxxxxxx]On Behalf Of Michael Valenta
Sent: Thursday, March 04, 2004 4:41 PM
To: platform-cvs-dev@xxxxxxxxxxx
Subject: Re: [platform-cvs-dev] How to write files that are Clearcase elements within Eclipse ?

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 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 once the files are checked out.


"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] How to  write files that are Clearcase elements within Eclipse ?


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.

Back to the top