Search in sources :

Example 1 with NewFormFactorModulePath

use of com.android.tools.idea.npw.deprecated.NewFormFactorModulePath in project android by JetBrains.

the class NewProjectWizardDynamic method addPaths.

/**
   * Add the steps for this wizard
   */
private void addPaths() {
    addPath(new ConfigureAndroidProjectPath(getDisposable()));
    for (NewFormFactorModulePath path : NewFormFactorModulePath.getAvailableFormFactorModulePaths(getDisposable())) {
        addPath(path);
    }
    addPath(new ConfigureCppSupportPath(getDisposable()));
}
Also used : ConfigureAndroidProjectPath(com.android.tools.idea.npw.deprecated.ConfigureAndroidProjectPath) ConfigureCppSupportPath(com.android.tools.idea.npw.cpp.ConfigureCppSupportPath) NewFormFactorModulePath(com.android.tools.idea.npw.deprecated.NewFormFactorModulePath)

Example 2 with NewFormFactorModulePath

use of com.android.tools.idea.npw.deprecated.NewFormFactorModulePath in project android by JetBrains.

the class NewFormFactorModulePathTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    myPath = new NewFormFactorModulePath(MOBILE, new File("/"), getTestRootDisposable());
    ScopedStateStore wizardState = new ScopedStateStore(WIZARD, null, null);
    myPath.setState(new ScopedStateStore(PATH, wizardState, null));
}
Also used : ScopedStateStore(com.android.tools.idea.wizard.dynamic.ScopedStateStore) NewFormFactorModulePath(com.android.tools.idea.npw.deprecated.NewFormFactorModulePath) File(java.io.File)

Example 3 with NewFormFactorModulePath

use of com.android.tools.idea.npw.deprecated.NewFormFactorModulePath in project android by JetBrains.

the class NewModuleWizardDynamic method addPaths.

private void addPaths() {
    Collection<NewModuleDynamicPath> contributions = getContributedPaths();
    Iterable<ModuleTemplateProvider> templateProviders = Iterables.concat(ImmutableSet.of(new AndroidModuleTemplatesProvider()), contributions);
    addPath(new SingleStepPath(new ChooseModuleTypeStep(templateProviders, getDisposable())));
    for (NewFormFactorModulePath path : NewFormFactorModulePath.getAvailableFormFactorModulePaths(getDisposable())) {
        path.setGradleSyncIfNecessary(false);
        addPath(path);
    }
    for (NewModuleDynamicPath contribution : contributions) {
        addPath(contribution);
    }
}
Also used : SingleStepPath(com.android.tools.idea.wizard.dynamic.SingleStepPath) ChooseModuleTypeStep(com.android.tools.idea.npw.deprecated.ChooseModuleTypeStep) NewFormFactorModulePath(com.android.tools.idea.npw.deprecated.NewFormFactorModulePath)

Aggregations

NewFormFactorModulePath (com.android.tools.idea.npw.deprecated.NewFormFactorModulePath)3 ConfigureCppSupportPath (com.android.tools.idea.npw.cpp.ConfigureCppSupportPath)1 ChooseModuleTypeStep (com.android.tools.idea.npw.deprecated.ChooseModuleTypeStep)1 ConfigureAndroidProjectPath (com.android.tools.idea.npw.deprecated.ConfigureAndroidProjectPath)1 ScopedStateStore (com.android.tools.idea.wizard.dynamic.ScopedStateStore)1 SingleStepPath (com.android.tools.idea.wizard.dynamic.SingleStepPath)1 File (java.io.File)1