server_.stat(item.getPath(), new ServerRequestCallback<FileSystemItem>()
{
@Override
public void onResponseReceived(FileSystemItem response)
{
operation.execute(response, new NullProgressIndicator());
}
@Override
public void onError(ServerError error)
{
globalDisplay_.showErrorMessage("Error",
error.getUserMessage());
operation.execute(null, new NullProgressIndicator());
}
});
}
else
{
operation.execute(item, new NullProgressIndicator());
}
}
});
}