Examples of addSwingRunnable()


Examples of com.projity.job.Job.addSwingRunnable()

    final ArrayList descriptors=new ArrayList();

      Session session=SessionFactory.getInstance().getSession(false);
    Job job=(Job)SessionFactory.callNoEx(session,"getLoadProjectDescriptorsJob",new Class[]{boolean.class,java.util.List.class,boolean.class},new Object[]{true,descriptors,!Environment.isAdministrator()});
      job.addSwingRunnable(new JobRunnable("Local: loadDocument"){ //$NON-NLS-1$
        public Object run() throws Exception{
                 final Closure setter=new Closure(){
                    public void execute(Object obj){

                    }
View Full Code Here

Examples of com.projity.job.Job.addSwingRunnable()

    final ArrayList descriptors=new ArrayList();

      Session session=SessionFactory.getInstance().getSession(false);
    Job job=(Job)SessionFactory.callNoEx(session,"getLoadProjectDescriptorsJob",new Class[]{boolean.class,java.util.List.class,boolean.class},new Object[]{true,descriptors,true});
      job.addSwingRunnable(new JobRunnable("Local: add"){ //$NON-NLS-1$
        public Object run() throws Exception{
            Closure setter=new Closure(){
                public void execute(Object obj){

                }
View Full Code Here

Examples of com.projity.job.Job.addSwingRunnable()

        importer.setFileName(opt.getFileName());
        importer.setResourceMapping(opt.getResourceMapping());
        importer.setProjectFactory(ProjectFactory.getInstance());//used?
        importer.setJobQueue(jobQueue);
         
          job.addSwingRunnable(new JobRunnable("LocalAccess: loadProject.begin",1.0f){
          public Object run() throws Exception{
            ResourcePool resourcePool=null;
            if (MICROSOFT_PROJECT_IMPORTER.equals(opt.getImporter())){
              DataFactoryUndoController undoController=new DataFactoryUndoController();
              resourcePool = ResourcePoolFactory.getInstance().createResourcePool("",undoController);
View Full Code Here

Examples of com.projity.job.Job.addSwingRunnable()

        log.info("END: MicrosoftImporter.PrepareResources");
        return null;
      }
      });
     
      job.addSwingRunnable(new JobRunnable("Import resources",1.0f){ //$NON-NLS-1$
      public Object run() throws Exception{
        log.info("BEGIN: Import resources");
        ResourceMappingForm form=getResourceMapping();
        if (form!=null&&form.isLocal()) //if form==null we are in a case were have no server access. popup not needed
          if (!job.okCancel(Messages.getString("Message.ServerUnreacheableReadOnlyProject"),true)){ //$NON-NLS-1$
View Full Code Here

Examples of com.projity.job.Job.addSwingRunnable()

    final ArrayList descriptors=new ArrayList();

      Session session=SessionFactory.getInstance().getSession(false);
    Job job=(Job)SessionFactory.callNoEx(session,"getLoadProjectDescriptorsJob",new Class[]{boolean.class,java.util.List.class,boolean.class},new Object[]{true,descriptors,!Environment.isAdministrator()});
      job.addSwingRunnable(new JobRunnable("Local: loadDocument"){ //$NON-NLS-1$
        public Object run() throws Exception{
                 final Closure setter=new Closure(){
                    public void execute(Object obj){

                    }
View Full Code Here

Examples of com.projity.job.Job.addSwingRunnable()

    final ArrayList descriptors=new ArrayList();

      Session session=SessionFactory.getInstance().getSession(false);
    Job job=(Job)SessionFactory.callNoEx(session,"getLoadProjectDescriptorsJob",new Class[]{boolean.class,java.util.List.class,boolean.class},new Object[]{true,descriptors,true});
      job.addSwingRunnable(new JobRunnable("Local: add"){ //$NON-NLS-1$
        public Object run() throws Exception{
            Closure setter=new Closure(){
                public void execute(Object obj){

                }
View Full Code Here

Examples of com.projity.job.Job.addSwingRunnable()

              setProgress(1.0f);
                return null;
        }
        });

      job.addSwingRunnable(new JobRunnable("Import resources",1.0f){ //$NON-NLS-1$
      public Object run() throws Exception{
        ResourceMappingForm form=getResourceMapping();
        if (form!=null&&form.isLocal()) //if form==null we are in a case were have no server access. popup not needed
          if (!job.okCancel(Messages.getString("Message.ServerUnreacheableReadOnlyProject"),true)){ //$NON-NLS-1$
            setProgress(1.0f);
View Full Code Here

Examples of com.projity.job.Job.addSwingRunnable()

      _addProject(project);
      return;
    }

       Job addProjectJob=new Job(SessionFactory.getInstance().getSession(project.isLocal()).getJobQueue(),"addProject","Adding project...",false);
       addProjectJob.addSwingRunnable(new JobRunnable("Local: addProject",1.0f){
        public Object run() throws Exception{
          _addProject(project);
          setProgress(1.0f);
          return null;
        }
View Full Code Here

Examples of com.projity.job.Job.addSwingRunnable()

        recover=false;
      }
    }else recover=false;

    if (job==null) job=session.getLoadProjectJob(opt);
    job.addSwingRunnable(new JobRunnable("Local: addProject"){
      public Object run() throws Exception{
        Project project=(Project)getPreviousResult();
        if (!recover){
          if (project!=null) addProject(project,false,true);
          if (opt.getId()>0) removeLoadingProject(opt.getId());
View Full Code Here

Examples of com.projity.job.Job.addSwingRunnable()

    opt.setSubproject(true);
    opt.setId(id);
    Job job=session.getLoadProjectJob(opt);
    subprojectTask.setFetching(true);

    job.addSwingRunnable(new JobRunnable("Local: insertProject"){
      public Object run() throws Exception{
        try {
          Project subproject = (Project)getPreviousResult();

          //add assignments in the outline, paste uses only assignments present in the nodeModel
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.