
package org.eclipse.birt.report.tests.engine.api;

import java.net.MalformedURLException;
import java.net.URL;

import org.eclipse.birt.report.model.api.IResourceLocator;
import org.eclipse.birt.report.model.api.ModuleHandle;

public class EngineResourceLocator implements IResourceLocator
{

	private String path;

	public EngineResourceLocator( String path )
	{
		this.path = path;
	}

	public URL findResource( ModuleHandle moduleHandle, String filename,
			int type )
	{
		if ( path == null || path.equals( "" ) )
			return null;

		try
		{
			URL url = new URL( path + filename );
			return url;
		}
		catch ( MalformedURLException mue )
		{
			mue.printStackTrace( );
		}

		return null;
	}

}

@@ -104,16 +104,38 @@
 net.URL;
+%0Aimport java.util.Map;
 %0A%0Aimport
@@ -714,10 +714,169 @@
 ll;%0A%09%7D%0A%0A
+%09public URL findResource( ModuleHandle moduleHandle, String fileName,%0A%09%09%09int type, Map appContext )%0A%09%7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A
 %7D%0A

Fix the compile error