Package com.projity.server.data

Examples of com.projity.server.data.DocumentData


                };
                final Closure getter=new Closure(){
                    public void execute(Object obj){
                      final Object[] r=(Object[])obj;
                      if (r!=null){
                        DocumentData data=(DocumentData)r[0];
                        boolean openAs=(Boolean)r[1];
                        loadDocument(data.getUniqueId(),false,openAs);
                      }

                    }
                };
                try {
View Full Code Here


            };
            Closure getter=new Closure(){
                public void execute(Object obj){
                  final Object[] r=(Object[])obj;
                  if (r!=null){
                     final DocumentData data=(DocumentData)r[0];
                    if (data.isMaster())
                      return;
                    insertSubproject(project, data.getUniqueId(), true);
//                    Project openedAlready = ProjectFactory.getInstance().findFromId(data.getUniqueId());
//
//              if (!project.canInsertProject(data.getUniqueId())) {
//                Alert.error("The selected project is already a subproject in this consolidated project.");
//                return;
View Full Code Here

              long t1=System.currentTimeMillis();
              ObjectInputStream in=new ObjectInputStream(new FileInputStream(importer.getFileName()));
              Object obj=in.readObject();
              if (obj instanceof String) obj=in.readObject(); //check version in the future
              DocumentData projectData=(DocumentData)obj;
              projectData.setMaster(true);
              projectData.setLocal(true);
              long t2=System.currentTimeMillis();
              System.out.println("Loading...Done in "+(t2-t1)+" ms"); //$NON-NLS-1$ //$NON-NLS-2$


              System.out.println("Deserializing..."); //$NON-NLS-1$
View Full Code Here

        job.addRunnable(new JobRunnable("Export",1.0f){ //$NON-NLS-1$
        public Object run() throws Exception{
              DataUtil serializer=new DataUtil();
              System.out.println("Serialization..."); //$NON-NLS-1$
              long t1=System.currentTimeMillis();
              DocumentData projectData=serializer.serializeDocument(importer.getProject());
              projectData.setMaster(true);
              projectData.setLocal(true);
              long t2=System.currentTimeMillis();
              System.out.println("Serialization...Done in "+(t2-t1)+" ms"); //$NON-NLS-1$ //$NON-NLS-2$
              File f=new File(importer.getFileName());
              System.out.println("Saving "+f+"..."); //$NON-NLS-1$ //$NON-NLS-2$
              t1=System.currentTimeMillis();
View Full Code Here

                };
                final Closure getter=new Closure(){
                    public void execute(Object obj){
                      final Object[] r=(Object[])obj;
                      if (r!=null){
                        DocumentData data=(DocumentData)r[0];
                        boolean openAs=(Boolean)r[1];
                        loadDocument(data.getUniqueId(),false,openAs);
                      }

                    }
                };
                try {
View Full Code Here

            };
            Closure getter=new Closure(){
                public void execute(Object obj){
                  final Object[] r=(Object[])obj;
                  if (r!=null){
                     final DocumentData data=(DocumentData)r[0];
                    if (data.isMaster())
                      return;
                    insertSubproject(project, data.getUniqueId(), true);
//                    Project openedAlready = ProjectFactory.getInstance().findFromId(data.getUniqueId());
//
//              if (!project.canInsertProject(data.getUniqueId())) {
//                Alert.error("The selected project is already a subproject in this consolidated project.");
//                return;
View Full Code Here

TOP

Related Classes of com.projity.server.data.DocumentData

Copyright © 2018 www.massapicom. 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.