* @param includingFileStatus if any activated file does not have this CVS status, an empty array is returned
* @param includingFolderStatus if any activated folder does not have this CVS status, an empty array is returned
* @return File [] array of activated files, or an empty array if any of examined files/folders does not have given status
*/
public static VCSContext getCurrentContext(Node[] nodes, int includingFileStatus, int includingFolderStatus) {
VCSContext context = getCurrentContext(nodes);
StatusCache cache = Git.getInstance().getStatusCache();
for (File file : context.getRootFiles()) {
StatusInfo fi = cache.getStatus(file);
if (file.isDirectory()) {
if ((fi.getStatus() & includingFolderStatus) == 0) {
return VCSContext.EMPTY;
}