if (!System.getProperty("os.name").startsWith("Windows")){
//ToolBuilderActivator.log(IStatus.WARNING, "The repository interface can only run on Windows using a valid Forte/UDS installation");
return Status.CANCEL_STATUS;
}
IProject[] projects = this.workspace.getRoot().getProjects();
ISynchronizer syncronizer = this.workspace.getSynchronizer();
IStatus status = Status.OK_STATUS;
monitor.beginTask("Synchronize repository state", projects.length);
String projectName = "";
try {
for (IProject project : projects){
projectName = project.getName();
monitor.subTask("Checking " + projectName);
if (project.hasNature(ToolNature.NATURE_ID)){
// setRule(FScript.getFScript(project).getRule());
final Map<String, RepositoryComponent> list = FScript.getFScript(project).ListWorkspaceChanges();
QualifiedName partner = RepositoryPropertiesManager.getSyncQualifiedName(project);
syncronizer.add(partner);
syncronizer.flushSyncInfo(partner, project, IResource.DEPTH_INFINITE);
final List<IFile> components = new ArrayList<IFile>();
project.accept(new IResourceProxyVisitor() {
public boolean visit(IResourceProxy proxy) throws CoreException {
if (proxy.getType() == IResource.FILE) {
IFile file = (IFile) proxy.requestResource();