# HG changeset patch # User Eugene Ostroukhov # Date 1275416512 25200 # Node ID 945945f2458d1f2fa87f63ebd37cc060d09bdc4c # Parent f62d2a36bc4350cb3080a2a5632b7157d21cedff Bug 2480 - Excluded resources are still available in preview and debugger diff -r f62d2a36bc43 -r 945945f2458d org.symbian.tools.wrttools.previewer/src/org/symbian/tools/wrttools/previewer/http/handlers/WorkspaceResourceProvider.java --- a/org.symbian.tools.wrttools.previewer/src/org/symbian/tools/wrttools/previewer/http/handlers/WorkspaceResourceProvider.java Tue Jun 01 11:09:05 2010 -0700 +++ b/org.symbian.tools.wrttools.previewer/src/org/symbian/tools/wrttools/previewer/http/handlers/WorkspaceResourceProvider.java Tue Jun 01 11:21:52 2010 -0700 @@ -27,6 +27,7 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; import org.json.simple.JSONObject; +import org.symbian.tools.wrttools.util.ProjectUtils; public class WorkspaceResourceProvider implements IResourceProvider { public String[] getPaths() { @@ -36,7 +37,7 @@ public InputStream getResourceStream(IProject project, IPath resource, Map parameters) throws IOException, CoreException { IFile file = project.getFile(resource); - if (file.isAccessible()) { + if (file.isAccessible() && !ProjectUtils.isExcluded(file)) { return file.getContents(); } else { return null;