plugins/org.symbian.tools.tmw.core/src/org/symbian/tools/tmw/core/runtimes/IApplicationLayoutProvider.java
changeset 484 f5df819c1852
parent 479 518afa7c6d2f
equal deleted inserted replaced
483:109da596fa9d 484:f5df819c1852
    24 import org.eclipse.core.resources.IProject;
    24 import org.eclipse.core.resources.IProject;
    25 import org.eclipse.core.runtime.CoreException;
    25 import org.eclipse.core.runtime.CoreException;
    26 import org.eclipse.core.runtime.IPath;
    26 import org.eclipse.core.runtime.IPath;
    27 
    27 
    28 /**
    28 /**
    29  * This interface provides application structure as it will be used in web 
    29  * This interface provides application structure as it will be used in web
    30  * runtime. Note that project layout may not directly correspond to application
    30  * runtime. Note that project layout may not directly correspond to application
    31  * layout.
    31  * layout.
    32  * 
    32  *
    33  * @author Eugene Ostroukhov (eugeneo@symbian.org)
    33  * @author Eugene Ostroukhov (eugeneo@symbian.org)
    34  */
    34  */
    35 public interface IApplicationLayoutProvider {
    35 public interface IApplicationLayoutProvider {
    36     /**
    36     /**
    37      * @param file workspace resource
    37      * @param file workspace resource
    40     IPath getResourcePath(IFile file);
    40     IPath getResourcePath(IFile file);
    41 
    41 
    42     /**
    42     /**
    43      * @param path path relative to application root
    43      * @param path path relative to application root
    44      * @return workspace resource
    44      * @return workspace resource
    45      * @throws CoreException if cannot access resource contents 
    45      * @throws CoreException if cannot access resource contents
    46      */
    46      */
    47     InputStream getResourceFromPath(IProject project, IPath path) throws CoreException;
    47     InputStream getResourceFromPath(IProject project, IPath path) throws CoreException;
    48 
    48 
    49     /**
    49     /**
    50      * @return workspace file that corresponds to applicationPath or 
    50      * @return workspace file that corresponds to applicationPath or
    51      * <code>null</code> if none
    51      * <code>null</code> if none
    52      */
    52      */
    53     IFile getWorkspaceFile(IProject project, IPath applicationPath) throws CoreException;
    53     IFile getWorkspaceFile(IProject project, IPath applicationPath) throws CoreException;
    54 
    54 
    55     /**
    55     /**