FileDocCategorySizeDatePackage
StubSampleProjectWizard.javaAPI DocAndroid 1.5 API3015Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.adt.wizards.newproject

StubSampleProjectWizard

public class StubSampleProjectWizard extends NewProjectWizard
Stub class for project creation wizard Created so project creation logic can be run without UI creation/manipulation Returns canned responses for creating a sample project

Fields Summary
private final String
mSampleProjectName
private final String
mOsSdkLocation
Constructors Summary
public StubSampleProjectWizard(String sampleProjectName, String osSdkLocation)
Constructor

param
sampleProjectName
param
osSdkLocation

        this.mSampleProjectName = sampleProjectName;
        this.mOsSdkLocation = osSdkLocation;
    
Methods Summary
protected NewProjectCreationPagecreateMainPage()
Override parent to return stub page

        return new StubSampleProjectCreationPage(MAIN_PAGE_NAME,
                mSampleProjectName, mOsSdkLocation);
    
public org.eclipse.jface.wizard.IWizardContainergetContainer()
Overrides parent to return dummy wizard container

        return new IWizardContainer() {

            public IWizardPage getCurrentPage() {
                return null;
            }

            public Shell getShell() {
                return null;
            }

            public void showPage(IWizardPage page) {
                // pass
            }

            public void updateButtons() {
                // pass
            }

            public void updateMessage() {
                // pass
            }

            public void updateTitleBar() {
                // pass
            }

            public void updateWindowTitle() {
                // pass
            }

            /**
             * Executes runnable on current thread
             */
            public void run(boolean fork, boolean cancelable,
                    IRunnableWithProgress runnable)
                    throws InvocationTargetException, InterruptedException {
                runnable.run(new NullProgressMonitor());
            }

        };