Package org.erlide.engine.model.root

Examples of org.erlide.engine.model.root.NewProjectData.copyFrom()


    }

    @Test
    public void createSimpleProject() throws CoreException {
        final NewProjectData info = new NewProjectData(factory);
        info.copyFrom(ErlangProjectProperties.DEFAULT);
        creator = new ProjectCreator(name, location, new IProject[] {}, info, context,
                null);
        prj = creator.createProject();
        assertThat(prj, is(not(nullValue())));
View Full Code Here


    }

    @Test(expected = CoreException.class)
    public void createExistingProjectShouldCrash() throws CoreException {
        final NewProjectData info = new NewProjectData(factory);
        info.copyFrom(ErlangProjectProperties.DEFAULT);
        creator = new ProjectCreator(name, location, new IProject[] {}, info, context,
                null);
        prj = creator.createProject();
        prj = creator.createProject();
    }
View Full Code Here

    }

    @Test
    public void createRebarProject() throws CoreException {
        final NewProjectData info = new NewProjectData(factory);
        info.copyFrom(ErlangProjectProperties.DEFAULT);
        info.setConfigType(ProjectConfigType.REBAR);
        info.setBuilder(BuilderTool.REBAR);
        final List<IPath> src = Lists.newArrayList(info.getSourceDirs());
        src.add(new Path("foz"));
        info.setSourceDirs(src);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.