本文整理汇总了Java中org.aikodi.chameleon.workspace.LanguageRepository类的典型用法代码示例。如果您正苦于以下问题:Java LanguageRepository类的具体用法?Java LanguageRepository怎么用?Java LanguageRepository使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
LanguageRepository类属于org.aikodi.chameleon.workspace包,在下文中一共展示了LanguageRepository类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CommandLineTool
import org.aikodi.chameleon.workspace.LanguageRepository; //导入依赖的package包/类
public CommandLineTool(String[] args) throws ConfigException {
if(args.length < 2) {
System.out.println("Usage: java packageName.ToolName "+"xmlConfigFile @recursivePackageFQN* #packageFQN* $typeFQN*");
}
Config.setCaching(true);
LanguageRepository repo = new LanguageRepository();
Workspace workspace = new Workspace(repo);
repo.add(new Java7LanguageFactory().create());
_provider = new ModelBuilder(args, workspace);
_project = _provider.project();
}
示例2: makeProject
import org.aikodi.chameleon.workspace.LanguageRepository; //导入依赖的package包/类
protected final Project makeProject() throws ConfigException {
Project project;
LanguageRepository repo = new LanguageRepository();
Workspace workspace = new Workspace(repo);
Java7 java = new Java7LanguageFactory().create();
repo.add(java);
java.setPlugin(ProjectConfigurator.class, new JavaProjectConfigurator(Java7LanguageFactory.javaBaseJar()));
XMLProjectLoader config = new XMLProjectLoader(workspace);
project = config.project(projectFile(),null);
return project;
}
示例3: createWorkspace
import org.aikodi.chameleon.workspace.LanguageRepository; //导入依赖的package包/类
private Workspace createWorkspace() {
LanguageRepository repository = new LanguageRepository();
repository.add(new Java7LanguageFactory().create());
return new Workspace(repository);
}