|
Re: Is there a way to know files to be commited? [message #509769 is a reply to message #509591] |
Mon, 25 January 2010 10:47 |
Igor Burilo Messages: 435 Registered: July 2009 |
Senior Member |
|
|
Hello Fabio,
There's no Team API for doing it, but here's how you can do it by using
Subversive API:
see org.eclipse.team.svn.core.utility.FileUtility
public static IResource []getResourcesRecursive(IResource []roots,
IStateFilter filter, int depth);
where you can use following filter:
IStateFilter filter = new IStateFilter.OrStateFilter(new IStateFilter[]
{IStateFilter.SF_COMMITABLE, IStateFilter.SF_CONFLICTING,
IStateFilter.SF_TREE_CONFLICTING, IStateFilter.SF_NEW});
In Subversive we perform needed for you operation during commit, so you can
reference Subversive code as an example of how to do it:
see org.eclipse.team.svn.ui.action.local.CommitAction, especially
org.eclipse.team.svn.ui.utility.CommitActionUtility class which performs
manipulations with resources.
> Hi,
>
> I'd like to include in my plugin a search that'll only search the outgoing
> files. Is there some API I can use to find which files are those?
>
> Thanks,
>
> Fabio
|
|
|
Powered by
FUDForum. Page generated in 0.03286 seconds