当前位置: 首页>>代码示例>>Java>>正文


Java IFolderUtils类代码示例

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


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

示例1: configureProject

import org.eclipse.gemoc.commons.eclipse.core.resources.IFolderUtils; //导入依赖的package包/类
public void configureProject(IProject project, IProgressMonitor monitor) {
	try {
		IProjectDescription description;
		description = project.getDescription();
		addNature(description, "org.eclipse.jdt.core.javanature");
		addNature(description, "org.eclipse.xtext.ui.shared.xtextNature");
		//String sourceFolderName= "src/";
		
		createSettingsResourcePrefs(project, monitor);

		//IFolderUtils.createFolder(sourceFolderName + context.basePackageName.replaceAll("\\.", "/"), project, monitor);
		IFolderUtils.createFolder("src-gen", project, monitor);
		
		addNature(description, "org.eclipse.pde.PluginNature");
		createEmptyManifestFile(project, monitor);
		updateManifestFile(project, monitor);
		createPlugInFile(project, monitor);
		createBuildProperties(project, monitor);
		setClasspath(project,  monitor);
		
		project.setDescription(description, monitor);
	} catch (Exception e) {
		MelangeUiModule.logErrorMessage(e.getMessage(), e);
	}
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:26,代码来源:NewMelangeProjectWizard.java

示例2: configureProject

import org.eclipse.gemoc.commons.eclipse.core.resources.IFolderUtils; //导入依赖的package包/类
public void configureProject(IProject project, IProgressMonitor monitor) {
		try {
			ManageClasspath classpath;
			IProjectDescription description;
			description = project.getDescription();
			addNature(description, "fr.inria.diverse.k3.ui.k3Nature");
			addNature(description, "org.eclipse.jdt.core.javanature");
			addNature(description, "org.eclipse.xtext.ui.shared.xtextNature");
			String sourceFolderName;
			switch(this.context.kindsOfProject){
			case MAVEN:
				sourceFolderName= "src/main/java/";
				break;
			default:
				sourceFolderName= "src/";
			}
			createSettingsResourcePrefs(project, monitor);

			IFolderUtils.createFolder(sourceFolderName + getContextNamePackage().replaceAll("\\.", "/"), project, monitor);
/*			if(context.ecoreIFile != null){
				createProjectWithEcore(monitor, sourceFolderName);
			} else {
				if(context.useEMF){
					createMiniEcoreAspectSampleXtend(project, monitor, sourceFolderName);
				}
				else{
					createMiniAspectSampleXtend(project, monitor, sourceFolderName);
				}
			}
*/			
			switch (this.context.kindsOfProject)
			{
			case STANDALONE :
				IFileUtils.unZip(project, new ProjectDescriptor("fr.inria.diverse.k3.ui","zips/k3.zip"));
				IFileUtils.unZip(project, new ProjectDescriptor("fr.inria.diverse.k3.ui","zips/xtend.zip"));
				if(context.useEMF)
					IFileUtils.unZip(project, new ProjectDescriptor("fr.inria.diverse.k3.ui","zips/emf.zip"));				
				classpath = new ManageClasspathStandAlone("lib");
				classpath.setClasspath(project, monitor);
				break;
			case PLUGIN :
				classpath = new ManageClasspathPlugin(this.context.useSLE);
				addNature(description, "org.eclipse.pde.PluginNature");
				configurePluginProject(project, monitor);
				classpath.setClasspath(project, monitor);

				if (context.useSLE) {
					classpath.setClasspath(project,  monitor);
				}

				break;
			case MAVEN :
				classpath = new ManageClasspathMaven();
				addNature(description, "org.eclipse.m2e.core.maven2Nature");
				createMavenFile(project, monitor, false);
				classpath.setClasspath(project, monitor);
				break;
			}
			project.setDescription(description, monitor);
		} catch (Exception e) {
			Activator.logErrorMessage(e.getMessage(), e);
		}
	}
 
开发者ID:diverse-project,项目名称:k3,代码行数:64,代码来源:NewK3ProjectWizard.java


注:本文中的org.eclipse.gemoc.commons.eclipse.core.resources.IFolderUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。