final IResource resource= JavaModelProvider.getResource(parent); if (resource != null) { final IResource[] members= context.getDiffTree().members(resource); for (int index= 0; index < members.length; index++) { final int type= members[index].getType(); if (type == IResource.FOLDER && isInScope(context.getScope(), parent, members[index])) { final String name= members[index].getName(); if (name.equals(JavaProjectSettings.NAME_SETTINGS_FOLDER)) { list.remove(members[index]); list.addFirst(new JavaProjectSettings((IJavaProject) parent)); } else if (name.equals(NAME_REFACTORING_FOLDER)) { final RefactoringHistory history= getPendingRefactorings(context, (IProject) resource, null); if (!history.isEmpty()) { list.remove(members[index]); list.addFirst(history); } } } } }
	private Object[] getJavaProjectChildren(final ISynchronizationContext context, final Object parent, final Object[] children) {		final LinkedList list= new LinkedList();		for (int index= 0; index < children.length; index++)			list.add(children[index]);		final IResource resource= JavaModelProvider.getResource(parent);		if (resource != null) {			final IResource[] members= context.getDiffTree().members(resource);			for (int index= 0; index < members.length; index++) {				final int type= members[index].getType();				if (type == IResource.FOLDER && isInScope(context.getScope(), parent, members[index])) {					final String name= members[index].getName();					if (name.equals(JavaProjectSettings.NAME_SETTINGS_FOLDER)) {						list.remove(members[index]);						list.addFirst(new JavaProjectSettings((IJavaProject) parent));					} else if (name.equals(NAME_REFACTORING_FOLDER)) {						final RefactoringHistory history= getPendingRefactorings(context, (IProject) resource, null);						if (!history.isEmpty()) {							list.remove(members[index]);							list.addFirst(history);						}					}				}			}		}		return list.toArray(new Object[list.size()]);	}