Java 类org.eclipse.xtext.ui.util.ProjectFactory 实例源码

项目:n4js    文件:N4JSProjectCreator.java   
@Override
protected ProjectFactory configureProjectFactory(final ProjectFactory factory) {
    final ProjectFactory projectFactory = super.configureProjectFactory(factory);
    final N4MFProjectInfo projectInfo = (N4MFProjectInfo) getProjectInfo();
    if (null != projectInfo.getProjectLocation()) {
        projectFactory.setLocation(projectInfo.getProjectLocation());
    }
    return projectFactory;
}
项目:bts    文件:AbstractProjectCreator.java   
protected ProjectFactory configureProjectFactory(ProjectFactory factory) {
    factory.setProjectName(getProjectInfo().getProjectName());
    factory.addFolders(getAllFolders());
    factory.addReferencedProjects(getReferencedProjects());
    factory.addProjectNatures(getProjectNatures());
    factory.addBuilderIds(getBuilders());
    return factory;
}
项目:bts    文件:AbstractPluginProjectCreator.java   
@Override
protected ProjectFactory configureProjectFactory(ProjectFactory factory) {
    PluginProjectFactory result = (PluginProjectFactory) super.configureProjectFactory(factory);

    result.addRequiredBundles(getRequiredBundles());
    result.addExportedPackages(getExportedPackages());
    result.addImportedPackages(getImportedPackages());
    result.setActivatorClassName(getActivatorClassName());

    return result;
}
项目:DialogScriptDSL    文件:DialogScriptProjectCreator.java   
public IProject createProject(final IProgressMonitor monitor) {
  IProject _xblockexpression = null;
  {
    final ProjectFactory factory = this.projectFactoryProvider.get();
    this.configureProjectFactory(factory);
    IProject _createProject = factory.createProject(monitor, null);
    _xblockexpression = (_createProject);
  }
  return _xblockexpression;
}
项目:DialogScriptDSL    文件:DialogScriptProjectCreator.java   
public ProjectFactory configureProjectFactory(final ProjectFactory factory) {
  String _projectName = this.projectInfo.getProjectName();
  factory.setProjectName(_projectName);
  factory.addFolders(this.FOLDER_LIST);
  factory.addProjectNatures(((String[])Conversions.unwrapArray(this.PROJECT_NATURES, String.class)));
  factory.addBuilderIds(((String[])Conversions.unwrapArray(this.BUILDER_IDS, String.class)));
  return factory;
}
项目:n4js    文件:N4JSProjectCreator.java   
@Override
protected ProjectFactory createProjectFactory() {
    return projectFactoryProvider.get();
}
项目:dsl-devkit    文件:CheckProjectCreator.java   
@Override
protected ProjectFactory configureProjectFactory(final ProjectFactory factory) {
  ProjectFactory result = super.configureProjectFactory(factory);
  result.addProjectNatures(CheckNature.CHECK_NATURE_ID);
  return result;
}
项目:bts    文件:AbstractProjectCreator.java   
protected IProject createProject(IProgressMonitor monitor) {
    ProjectFactory factory = createProjectFactory();
    configureProjectBuilder(factory);
    return factory.createProject(monitor, null);
}
项目:bts    文件:AbstractProjectCreator.java   
/**
 * @deprecated use {@link #configureProjectFactory(ProjectFactory)} instead.
 */
@Deprecated
protected ProjectFactory configureProjectBuilder(ProjectFactory factory) {
    return configureProjectFactory(factory);
}
项目:bts    文件:AbstractProjectCreator.java   
protected abstract ProjectFactory createProjectFactory();