blob: 9722d2148d7b7797bf2196eb9c4ade0599f26695 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2011 Atos Origin.
*
*
* 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:
* Anne Haugommard (Atos Origin) anne.haugommard@atosorigin.com - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.gendoc.wizard.papyrus;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
import org.eclipse.gendoc.bundle.acceleo.papyrus.utils.OneFileUMLSelectionConverter;
import org.eclipse.gendoc.wizard.IGendocRunner;
import org.eclipse.gendoc.wizard.IGendocSelectionConverterRunner;
import org.eclipse.gendoc.wizard.IGendocTemplate;
import org.eclipse.gendoc.wizard.ISelectionConverter;
/**
* The Class represent the loader for papyrus diagrams document generation.
*/
public class PapyrusGendocRunner implements IGendocSelectionConverterRunner
{
List<IGendocTemplate> templates = new ArrayList<IGendocTemplate>();
public PapyrusGendocRunner()
{
templates.add(new GendocRunnerDocx());
templates.add(new GendocRunnerOdt());
}
/**
* @return specify all extension of model that papyrusGendocRunner can generate the documentation
*/
public Pattern getPattern()
{
return Pattern.compile(".*\\.uml");
}
/**
* @return the selection converter
*/
public ISelectionConverter getSelectionConverter()
{
return new OneFileUMLSelectionConverter();
}
/**
* @return all the template format associated to this runner
*/
public List<IGendocTemplate> getGendocTemplates()
{
return templates;
}
public String getLabel()
{
return "Document generation from Papyrus diagrams";
}
public Map<String, String> getAdditionnalParameters() {
return null;
}
}