| 
| Integrating my plugin with Clearcase team support [message #317593] | Mon, 09 July 2007 15:27  |  | 
| Eclipse User  |  |  |  |  | Hi,  I'm looking for information on how to properly integrate my plugin with eclipse team support such that modifications to files will
 automatically cause the Clearcase team plugin to intercept the request,
 prompt to checkout the file, create an activity when needed, etc, just as
 it does when working with files in a clearcase integrated project. I find
 that when I run my plugin and edit files that are under source control
 that the clearcase plugin (CCRC) is not prompting to create activities and
 add new files to source control and not always prompting to checkout files
 even when an activity is available. Is there any documentation on the
 correct way to manipulate files so that the team interfaces are called?
 I'm wrapping my filesystem interaction in IWorkspaceRunnable objects as is
 suggested in the brief documentation on integration with the workbench and
 am using the IFile, IFolder, etc objects to create or modify the files and
 folders.  I would appreciate any pointers to documentation or examples
 that can help.
 
 Thanks,
 Warwick
 |  |  |  | 
| 
| Re: Integrating my plugin with Clearcase team support [message #317629 is a reply to message #317593] | Tue, 10 July 2007 13:13  |  | 
| Eclipse User  |  |  |  |  | Warwick, 
 You need to call the IWorkspace#validateEdit method to request that any
 read-only files be made writable by the repository provider before
 allowing the user to make any changes in an editor.
 
 Michael
 
 Warwick wrote:
 > Hi,  I'm looking for information on how to properly integrate my plugin
 > with eclipse team support such that modifications to files will
 > automatically cause the Clearcase team plugin to intercept the request,
 > prompt to checkout the file, create an activity when needed, etc, just
 > as it does when working with files in a clearcase integrated project. I
 > find that when I run my plugin and edit files that are under source
 > control that the clearcase plugin (CCRC) is not prompting to create
 > activities and add new files to source control and not always prompting
 > to checkout files even when an activity is available. Is there any
 > documentation on the correct way to manipulate files so that the team
 > interfaces are called?  I'm wrapping my filesystem interaction in
 > IWorkspaceRunnable objects as is suggested in the brief documentation on
 > integration with the workbench and am using the IFile, IFolder, etc
 > objects to create or modify the files and folders.  I would appreciate
 > any pointers to documentation or examples that can help.
 >
 > Thanks,
 > Warwick
 >
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.13759 seconds