• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java XpandExecutionContextImpl类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.eclipse.xpand2.XpandExecutionContextImpl的典型用法代码示例。如果您正苦于以下问题:Java XpandExecutionContextImpl类的具体用法?Java XpandExecutionContextImpl怎么用?Java XpandExecutionContextImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

XpandExecutionContextImpl类属于org.eclipse.xpand2包,在下文中一共展示了XpandExecutionContextImpl类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: enhanceProject

点赞 2

import org.eclipse.xpand2.XpandExecutionContextImpl; //导入依赖的package包/类
protected void enhanceProject(final IProject project, final IProgressMonitor monitor) throws CoreException {
	OutputImpl output = new OutputImpl();
	output.addOutlet(new Outlet(false, getEncoding(), null, true, project.getLocation().makeAbsolute().toOSString()));

	XpandExecutionContextImpl execCtx = new XpandExecutionContextImpl(output, null);
	execCtx.getResourceManager().setFileEncoding("UTF-8");
	execCtx.registerMetaModel(new JavaBeansMetaModel());

	XpandFacade facade = XpandFacade.create(execCtx);
	facade.evaluate("edu::byu::ee::phdl::ui::wizard::PhdlNewProject::main", getProjectInfo());

	project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
}
 

开发者ID:timofonic,
项目名称:PHDL,
代码行数:14,
代码来源:PhdlProjectCreator.java

示例2: enhanceProject

点赞 2

import org.eclipse.xpand2.XpandExecutionContextImpl; //导入依赖的package包/类
protected void enhanceProject(final IProject project, final IProgressMonitor monitor) throws CoreException {
	OutputImpl output = new OutputImpl();
	output.addOutlet(new Outlet(false, getEncoding(), null, true, project.getLocation().makeAbsolute().toOSString()));

	XpandExecutionContextImpl execCtx = new XpandExecutionContextImpl(output, null);
	execCtx.getResourceManager().setFileEncoding("UTF-8");
	execCtx.registerMetaModel(new JavaBeansMetaModel());

	XpandFacade facade = XpandFacade.create(execCtx);
	facade.evaluate("org::xtext::example::hellobuck::ui::wizard::HelloBuckNewProject::main", getProjectInfo());

	project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
}
 

开发者ID:LorenzoBettini,
项目名称:Xtext-Xtend-Buckminster-Example,
代码行数:14,
代码来源:HelloBuckProjectCreator.java

示例3: enhanceProject

点赞 2

import org.eclipse.xpand2.XpandExecutionContextImpl; //导入依赖的package包/类
protected void enhanceProject(final IProject project, final IProgressMonitor monitor) throws CoreException {
	OutputImpl output = new OutputImpl();
	output.addOutlet(new Outlet(false, getEncoding(), null, true, project.getLocation().makeAbsolute().toOSString()));

	XpandExecutionContextImpl execCtx = new XpandExecutionContextImpl(output, null);
	execCtx.getResourceManager().setFileEncoding("UTF-8");
	execCtx.registerMetaModel(new JavaBeansMetaModel());

	XpandFacade facade = XpandFacade.create(execCtx);
	facade.evaluate("com::euclideanspace::casl::ui::wizard::EditorNewProject::main", getProjectInfo());

	project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
}
 

开发者ID:martinbaker,
项目名称:caslEdit,
代码行数:14,
代码来源:EditorProjectCreator.java

示例4: enhanceProject

点赞 2

import org.eclipse.xpand2.XpandExecutionContextImpl; //导入依赖的package包/类
protected void enhanceProject(final IProject project, final IProgressMonitor monitor) throws CoreException {
	OutputImpl output = new OutputImpl();
	output.addOutlet(new Outlet(false, getEncoding(), null, true, project.getLocation().makeAbsolute().toOSString()));

	XpandExecutionContextImpl execCtx = new XpandExecutionContextImpl(output, null);
	execCtx.getResourceManager().setFileEncoding("UTF-8");
	execCtx.registerMetaModel(new JavaBeansMetaModel());

	XpandFacade facade = XpandFacade.create(execCtx);
	facade.evaluate("com::crubier::lil::ui::wizard::LilNewProject::main", getProjectInfo());

	project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
}
 

开发者ID:crubier,
项目名称:lil,
代码行数:14,
代码来源:LilProjectCreator.java

示例5: enhanceProject

点赞 2

import org.eclipse.xpand2.XpandExecutionContextImpl; //导入依赖的package包/类
protected void enhanceProject(final IProject project, final IProgressMonitor monitor) throws CoreException {
	OutputImpl output = new OutputImpl();
	output.addOutlet(new Outlet(false, getEncoding(), null, true, project.getLocation().makeAbsolute().toOSString()));

	XpandExecutionContextImpl execCtx = new XpandExecutionContextImpl(output, null);
	execCtx.getResourceManager().setFileEncoding("UTF-8");
	execCtx.registerMetaModel(new JavaBeansMetaModel());

	XpandFacade facade = XpandFacade.create(execCtx);
	facade.evaluate("org::example::smalljava::ui::wizard::SmallJavaNewProject::main", getProjectInfo());

	project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
}
 

开发者ID:LorenzoBettini,
项目名称:packtpub-xtext-book-examples,
代码行数:14,
代码来源:SmallJavaProjectCreator.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)