try { pbProject.saveChanges(); } catch (IOException e) { WOLipsPlugin.log(e);
int lastResource = resources.length; int i = 0; while (i < lastResource) { IResource aResource = resources[i]; i++; proceedResource( aResource, aClassesList, aWOComponentsList, aWOAppResourcesList);
	public void syncFilestable(		NSDictionary changedResources,		int kindOfChange) {		List actualResources;		String currentKey;		for (int i = 0; i < changedResources.allKeys().count(); i++) {			currentKey = (String) changedResources.allKeys().objectAtIndex(i);			if (IWOLipsPluginConstants.RESOURCES_ID.equals(currentKey)) {				actualResources = pbProject.getWoAppResources();				switch (kindOfChange) {					case IResourceDelta.ADDED :						pbProject.setWoAppResources(							addResources(								(NSArray) changedResources.objectForKey(									currentKey),								actualResources));						break;					case IResourceDelta.REMOVED :						pbProject.setWoAppResources(							removeResources(								(NSArray) changedResources.objectForKey(									currentKey),								actualResources));						break;				}			} else if (IWOLipsPluginConstants.CLASSES_ID.equals(currentKey)) {				actualResources = pbProject.getClasses();				switch (kindOfChange) {					case IResourceDelta.ADDED :						pbProject.setClasses(							addResources(								(NSArray) changedResources.objectForKey(									currentKey),								actualResources));						break;					case IResourceDelta.REMOVED :						pbProject.setClasses(							removeResources(								(NSArray) changedResources.objectForKey(									currentKey),								actualResources));						break;				}			} else if (				IWOLipsPluginConstants.SUBPROJECTS_ID.equals(currentKey)) {				actualResources = pbProject.getSubprojects();				switch (kindOfChange) {					case IResourceDelta.ADDED :						pbProject.setSubprojects(							addResources(								(NSArray) changedResources.objectForKey(									currentKey),								actualResources));						break;					case IResourceDelta.REMOVED :						pbProject.setSubprojects(							removeResources(								(NSArray) changedResources.objectForKey(									currentKey),								actualResources));						break;				}			} else if (				IWOLipsPluginConstants.COMPONENTS_ID.equals(currentKey)) {				actualResources = pbProject.getWoComponents();				switch (kindOfChange) {					case IResourceDelta.ADDED :						pbProject.setWoComponents(							addResources(								(NSArray) changedResources.objectForKey(									currentKey),								actualResources));						break;					case IResourceDelta.REMOVED :						pbProject.setWoComponents(							removeResources(								(NSArray) changedResources.objectForKey(									currentKey),								actualResources));						break;				}			}		}		try {			pbProject.saveChanges();		} catch (IOException e) {			WOLipsPlugin.log(e);		}	}