Eclipse plugin: How to catch the load event of a repository workspace
One answer
When you say "the load event", do you mean the event that causes a files to be downloaded from RTC to local disk? If so, note that this is just one of the many ways that a user can access the content of a file. For example, they can directly browse RTC repository files in Eclipse without loading them, they can use the Visual Studio IDE, they can use the scm command line, they can use the MS-SCCI integration, they can use the WebUI, or they can use the Microsoft Windows Explorer. What were you hoping to achieve by catching that event?
Comments
Hi Geoff, our intent is to prevent loading in certain situations.
- Restrict loading to certain machines
- Cannot load to a remote location
These would be based on a specific component. The group involved would not be using Visual Studio or the MS-SCCI integration. They do all of their work either in Eclipse or the command line. The client machines involved are running Linux. Our thought is that if we could intercept the event that initiates a Repository Workspace load then we could create a precondition plug-in to prevent loading based on the criteria above.
To my knowledge, only operations that modify server data are currently enabled for process. So since a "load" does not modify server data, it is not a process-enabled operation, so unfortunately, you cannot add a process precondition to it.