/*******************************************************************************
* Copyright (c) 2012-2017 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.plugin.csharp.ide.project;
import com.google.inject.Provider;
import org.eclipse.che.ide.api.project.MutableProjectConfig;
import org.eclipse.che.ide.api.project.type.wizard.ProjectWizardRegistrar;
import org.eclipse.che.ide.api.wizard.WizardPage;
import org.eclipse.che.plugin.csharp.ide.CSharpExtension;
import org.eclipse.che.plugin.csharp.shared.Constants;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
/**
* Provides information for registering CSHARP_PROJECT_TYPE_ID project type into project wizard.
*
* @author Anatolii Bazko
*/
public class CSharpProjectWizardRegistrar implements ProjectWizardRegistrar {
private final List<Provider<? extends WizardPage<MutableProjectConfig>>> wizardPages;
public CSharpProjectWizardRegistrar() {
wizardPages = new ArrayList<>();
}
@NotNull
public String getProjectTypeId() {
return Constants.CSHARP_PROJECT_TYPE_ID;
}
@NotNull
public String getCategory() {
return CSharpExtension.CSHARP_CATEGORY;
}
@NotNull
public List<Provider<? extends WizardPage<MutableProjectConfig>>> getWizardPages() {
return wizardPages;
}
}