Check repository synchronization [message #293627] |
Thu, 27 October 2005 06:10  |
Eclipse User |
|
|
|
When i do have a project shared in a cvs repository and edit some files,
the workspace is decorated with the char ">", to indicate that the
Resourse is not synchronized with the repository
How can i check this programmatically?
I try to look in the class CVSWorkspaceRoot or RepositoryProvider for some
method, but i've not found anything...
Any suggestion?
|
|
|
Re: Check repository synchronization [message #293638 is a reply to message #293627] |
Thu, 27 October 2005 09:35  |
Eclipse User |
|
|
|
Luis,
There is currently no API available to do what you ask. This may change
in 3.2 but this is still up in the air. In the meantime, here is a
non-API way of doing what you ask:
File myFile = ...
boolean dirty = CVSWorkspaceRoot
.getCVSFileFor(myFile)
.isModified(monitor)
Michael
Luis Toubes wrote:
> When i do have a project shared in a cvs repository and edit some files,
> the workspace is decorated with the char ">", to indicate that the
> Resourse is not synchronized with the repository
>
> How can i check this programmatically?
>
> I try to look in the class CVSWorkspaceRoot or RepositoryProvider for
> some method, but i've not found anything...
>
> Any suggestion?
>
|
|
|
Powered by
FUDForum. Page generated in 0.23598 seconds