// Run the view sandbox command
Response r = api.runCommand( siViewSandbox );
// Check-in all changed files, drop all members with missing working files
for ( WorkItemIterator wit = r.getWorkItems(); wit.hasNext(); )
{
WorkItem wi = wit.next();
api.getLogger().debug( "Inspecting file: " + wi.getField( "name" ).getValueAsString() );
if ( wi.getModelType().equals( SIModelTypeName.MEMBER ) )
{
Item wfdeltaItem = (Item) wi.getField( "wfdelta" ).getValue();
// Proceed with this entry only if it is an actual working file delta
if ( isDelta( wfdeltaItem ) )
{
File memberFile = new File( wi.getField( "name" ).getValueAsString() );
if ( hasWorkingFile( wfdeltaItem ) )
{
// Only report on files that have actually changed...
if ( hasMemberChanged( memberFile, wi.getId() ) )
{
changedFiles.add( wi );
}
}
else