/*******************************************************************************
* 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.jsonexample.projecttype;
import com.google.inject.Inject;
import org.eclipse.che.api.project.server.type.ProjectTypeDef;
import org.eclipse.che.plugin.jsonexample.shared.Constants;
import static org.eclipse.che.plugin.jsonexample.shared.Constants.JSON_EXAMPLE_LANG;
import static org.eclipse.che.plugin.jsonexample.shared.Constants.JSON_EXAMPLE_PROJECT_TYPE_ID;
import static org.eclipse.che.plugin.jsonexample.shared.Constants.LANGUAGE;
/**
* The JSON Example project type.
*/
public class JsonExampleProjectType extends ProjectTypeDef {
/**
* Constructor for the JSON example project type.
*/
@Inject
public JsonExampleProjectType() {
super(JSON_EXAMPLE_PROJECT_TYPE_ID, JSON_EXAMPLE_PROJECT_TYPE_ID, true, false);
addConstantDefinition(LANGUAGE, LANGUAGE, JSON_EXAMPLE_LANG);
addVariableDefinition(Constants.JSON_EXAMPLE_SCHEMA_REF_ATTRIBUTE, "Referenced base schema", /*required*/ true);
}
}