/*******************************************************************************
 * Copyright (c) 2015 University of York.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Antonio Garcia-Dominguez - initial API and implementation
 *******************************************************************************/
package uk.ac.york.mondo.integration.hawk.emf;

import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.impl.ResourceImpl;

public class HawkFileResourceImpl extends ResourceImpl implements IHawkResource {

	private final IHawkResource mainResource;

	/**
	 * Creates a resource as a subordinate of another. Used to indicate the
	 * repository URL and file of an {@link EObject}.
	 */
	public HawkFileResourceImpl(URI uri, IHawkResource mainResource) {
		super(uri);
		this.mainResource = mainResource;
	}

	@Override
	public boolean hasChildren(EObject o) {
		return mainResource.hasChildren(o);
	}
}

@@ -839,16 +839,167 @@
 ource;%0A%0A
+%09/** Only to be used from Exeed (from the createExecutableExtension Eclipse call). */%0A%09public HawkFileResourceImpl() %7B%0A%09%09this.mainResource = null;%0A%09%7D%0A%0A
 %09/**%0A%09 *
@@ -1298,16 +1298,47 @@
 ct o) %7B%0A
+%09%09if (mainResource != null) %7B%0A%09
 %09%09return
@@ -1367,13 +1367,66 @@
 ren(o);%0A
+%09%09%7D else %7B%0A%09%09%09return o.eAllContents().hasNext();%0A%09%09%7D%0A
 %09%7D%0A%7D%0A

Fix Exeed customizations for HawkFileResourceImpl