org.symbian.tools.mtw.core/src/org/symbian/tools/tmw/core/projects/ITMWProject.java
changeset 468 a05c6e5cc7d9
equal deleted inserted replaced
467:5a2901872fcf 468:a05c6e5cc7d9
       
     1 /**
       
     2  * Copyright (c) 2010 Symbian Foundation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of the License "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Symbian Foundation - initial contribution.
       
    11  * Contributors:
       
    12  * Description:
       
    13  * Overview:
       
    14  * Details:
       
    15  * Platforms/Drives/Compatibility:
       
    16  * Assumptions/Requirement/Pre-requisites:
       
    17  * Failures and causes:
       
    18  */
       
    19 package org.symbian.tools.tmw.core.projects;
       
    20 
       
    21 import org.eclipse.core.resources.IProject;
       
    22 import org.eclipse.core.runtime.IProgressMonitor;
       
    23 import org.symbian.tools.tmw.core.runtimes.IMobileWebRuntime;
       
    24 
       
    25 public interface ITMWProject {
       
    26     /**
       
    27      * @return primary target runtime of this project.
       
    28      */
       
    29     IMobileWebRuntime getTargetRuntime();
       
    30 
       
    31     /**
       
    32      * @return workspace project that back this MTW project.
       
    33      */
       
    34     IProject getProject();
       
    35 
       
    36     /**
       
    37      * @return symbolic MTW project name.
       
    38      */
       
    39     String getName();
       
    40 
       
    41     /**
       
    42      * Validate project configuration and contents.
       
    43      * 
       
    44      * @return <code>true</code> if the project has no errors. Warnings do not count.
       
    45      */
       
    46     boolean validate(IProgressMonitor monitor);
       
    47 
       
    48     /**
       
    49      * Return preferred screen size for the project.
       
    50      * 
       
    51      * @return string like "240x320"
       
    52      */
       
    53     String getPreferredScreenSize();
       
    54 }