Examples of ProjectFactory


Examples of com.projity.pm.task.ProjectFactory

  protected Document loadDocument(long id,boolean sync,boolean openAs,Closure endSwingClosure){
    addHistory("loadDocument", new Object[]{id,sync,openAs,endSwingClosure==null});
    //showWaitCursor(true);
    if (id==-1L)
      return null;
    ProjectFactory factory = projectFactory;
    factory.setServer(server);
    LoadOptions opt=new LoadOptions();
    opt.setId(id);
    opt.setSync(sync);
    opt.setOpenAs(openAs);
    opt.setEndSwingClosure(endSwingClosure);

    Document result = factory.openProject(opt);
    //showWaitCursor(false);
    return result;
  }
View Full Code Here

Examples of com.projity.pm.task.ProjectFactory

  protected Document loadDocument(long id,boolean sync,boolean openAs,Closure endSwingClosure){
    addHistory("loadDocument", new Object[]{id,sync,openAs,endSwingClosure==null});
    //showWaitCursor(true);
    if (id==-1L)
      return null;
    ProjectFactory factory = projectFactory;
    factory.setServer(server);
    LoadOptions opt=new LoadOptions();
    opt.setId(id);
    opt.setSync(sync);
    opt.setOpenAs(openAs);
    opt.setEndSwingClosure(endSwingClosure);

    Document result = factory.openProject(opt);
    //showWaitCursor(false);
    return result;
  }
View Full Code Here

Examples of com.projity.pm.task.ProjectFactory

    this.documentCalendars = documentCalendars;
    this.project=project;
    this.restrict = restrict;
    this.undoController = undoController;
//    ProjectFactory projectFactory = ((MainFrame)owner).getProjectFactory();
    ProjectFactory projectFactory = GraphicManager.getInstance(this).getProjectFactory();
    ArrayList projCals = projectFactory.getPortfolio().extractCalendars();
    projectCalendars = new ArrayList();
    Iterator i = projCals.iterator();
    WorkingCalendar current;
    while (i.hasNext()) { // add all non base cals that are project cals
      current =(WorkingCalendar)i.next();
View Full Code Here

Examples of com.volantis.mcs.project.ProjectFactory

//
//        return JDBCRepository.createRepository (properties);
    }

    private Project createJDBCProject(LocalRepository repository) {
        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(repository);
        configuration.setPolicyLocation(args.getValue(PROJECT));
        return factory.createProject(configuration);
    }
View Full Code Here

Examples of com.volantis.mcs.project.ProjectFactory

                    exception("unexpected-exception", re);
                }
                throw re;
            }

        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(repository);
        configuration.setPolicyLocation(dir.getAbsolutePath());

        return factory.createProject(configuration);
    }
View Full Code Here

Examples of com.volantis.mcs.project.ProjectFactory

    private Project createDestinationXMLProject(LocalRepository repository) {

        String dirName = args.getValue(DESTINATION_DIR);
        File dir = new File(dirName);

        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(repository);
        configuration.setDeleteProjectContents(args.contains(REPLACE));
        configuration.setPolicyLocation(dir.getAbsolutePath());

        return factory.createProject(configuration);
    }
View Full Code Here

Examples of com.volantis.mcs.project.ProjectFactory

     * @return the created project.
     */
    private Project createProject(
            LocalRepository destinationRepository, String policyRoot) {

        ProjectFactory factory = ProjectFactory.getDefaultInstance();
        ProjectConfiguration configuration = factory.createProjectConfiguration();
        configuration.setRepository(destinationRepository);
        configuration.setPolicyLocation(new File(policyRoot).getAbsolutePath());

        return factory.createProject(configuration);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.ProjectFactory

     * <!-- end-user-doc -->
     * @generated
     */
    public static ProjectFactory init() {
        try {
            ProjectFactory theProjectFactory = (ProjectFactory) EPackage.Registry.INSTANCE
                    .getEFactory("http:///net/refractions/udig/project/internal.ecore"); //$NON-NLS-1$
            if (theProjectFactory != null) {
                return theProjectFactory;
            }
        } catch (Exception exception) {
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.