Bug 300012 [CommonNavigator] CNF test improvements
Various improvements and corrections.
tests/org.eclipse.ui.tests.navigator/src/org/eclipse/ui/tests/navigator/m12/model/ResourceWrapper.java
_resource = resource;
	}
	public IResource getResource() {
		return _resource;
	}
	public M1Resource[] getChildren() throws CoreException {
		return NO_CHILDREN;
	}
	public boolean hasChildren() throws CoreException {
		M1Resource[] children = getChildren();
		return children.length > 0;
	}
	public boolean equals(Object obj) {
		if (obj instanceof M1Resource) {
			return _resource.equals(((M1Resource) obj).getResource());
		}
		return false;
	}
	public int hashCode() {
		return _resource.hashCode();
	}
	public Object getParent() {
		IResource parent = _resource.getParent();
		ResourceWrapper modelParent = getModelObject(parent);
		return (modelParent == null) ? (Object) parent : modelParent;
	}
	protected abstract ResourceWrapper getModelObject(IResource resource);
	public abstract String getModelId();
}