public void syncFilestable(Map changedResources, int kindOfChange) { List actualResources; String currentKey; Object[] allKeys = changedResources.keySet().toArray(); for (int i = 0; i < allKeys.length; i++) { currentKey = (String) allKeys[i]; if (IWOLipsModel.RESOURCES_ID.equals(currentKey)) { actualResources = pbProject.getWoAppResources(); switch (kindOfChange) { case IResourceDelta.ADDED : pbProject.setWoAppResources( addResources( (List) changedResources.get(currentKey), actualResources)); break; case IResourceDelta.REMOVED : pbProject.setWoAppResources( removeResources( (List) changedResources.get(currentKey), actualResources)); break; } } else if (IWOLipsModel.CLASSES_ID.equals(currentKey)) { actualResources = pbProject.getClasses(); switch (kindOfChange) { case IResourceDelta.ADDED : pbProject.setClasses( addResources( (List) changedResources.get(currentKey), actualResources)); break; case IResourceDelta.REMOVED : pbProject.setClasses( removeResources( (List) changedResources.get(currentKey), actualResources)); break; } } else if ( IWOLipsModel.SUBPROJECTS_ID.equals(currentKey)) { actualResources = pbProject.getSubprojects(); switch (kindOfChange) { case IResourceDelta.ADDED : pbProject.setSubprojects( addResources( (List) changedResources.get(currentKey), actualResources)); break; case IResourceDelta.REMOVED : pbProject.setSubprojects( removeResources( (List) changedResources.get(currentKey), actualResources)); break; } } else if ( IWOLipsModel.COMPONENTS_ID.equals(currentKey)) { actualResources = pbProject.getWoComponents(); switch (kindOfChange) { case IResourceDelta.ADDED : pbProject.setWoComponents( addResources( (List) changedResources.get(currentKey), actualResources)); break; case IResourceDelta.REMOVED : pbProject.setWoComponents( removeResources( (List) changedResources.get(currentKey), actualResources)); break; } }
private void syncFilestable() { ArrayList aClassesList = new ArrayList(); ArrayList aWOComponentsList = new ArrayList(); ArrayList aWOAppResourcesList = new ArrayList(); IResource[] resources; try { resources = projectContainer.members(); } catch (Exception anException) { this.handleException(anException); aClassesList = null; aWOComponentsList = null; aWOAppResourcesList = null; resources = null; return;
	public void syncFilestable(Map changedResources, int kindOfChange) {		List actualResources;		String currentKey;		Object[] allKeys = changedResources.keySet().toArray();		for (int i = 0; i < allKeys.length; i++) {			currentKey = (String) allKeys[i];			if (IWOLipsModel.RESOURCES_ID.equals(currentKey)) {				actualResources = pbProject.getWoAppResources();				switch (kindOfChange) {					case IResourceDelta.ADDED :						pbProject.setWoAppResources(							addResources(								(List) changedResources.get(currentKey),								actualResources));						break;					case IResourceDelta.REMOVED :						pbProject.setWoAppResources(							removeResources(								(List) changedResources.get(currentKey),								actualResources));						break;				}			} else if (IWOLipsModel.CLASSES_ID.equals(currentKey)) {				actualResources = pbProject.getClasses();				switch (kindOfChange) {					case IResourceDelta.ADDED :						pbProject.setClasses(							addResources(								(List) changedResources.get(currentKey),								actualResources));						break;					case IResourceDelta.REMOVED :						pbProject.setClasses(							removeResources(								(List) changedResources.get(currentKey),								actualResources));						break;				}			} else if (				IWOLipsModel.SUBPROJECTS_ID.equals(currentKey)) {				actualResources = pbProject.getSubprojects();				switch (kindOfChange) {					case IResourceDelta.ADDED :						pbProject.setSubprojects(							addResources(								(List) changedResources.get(currentKey),								actualResources));						break;					case IResourceDelta.REMOVED :						pbProject.setSubprojects(							removeResources(								(List) changedResources.get(currentKey),								actualResources));						break;				}			} else if (				IWOLipsModel.COMPONENTS_ID.equals(currentKey)) {				actualResources = pbProject.getWoComponents();				switch (kindOfChange) {					case IResourceDelta.ADDED :						pbProject.setWoComponents(							addResources(								(List) changedResources.get(currentKey),								actualResources));						break;					case IResourceDelta.REMOVED :						pbProject.setWoComponents(							removeResources(								(List) changedResources.get(currentKey),								actualResources));						break;				}			}		}		try {			_saveChanges();		} catch (IOException e) {			this.handleException(e);		}	}