Package org.eclipse.core.internal.watson

Examples of org.eclipse.core.internal.watson.ElementTreeReader


    monitor = Policy.monitorFor(monitor);
    String message;
    try {
      message = Messages.resources_readingSnap;
      monitor.beginTask(message, Policy.totalWork);
      ElementTreeReader reader = new ElementTreeReader(workspace.getSaveManager());
      while (input.available() > 0) {
        readWorkspaceFields(input, Policy.subMonitorFor(monitor, Policy.totalWork / 2));
        complete = reader.readDelta(complete, input);
        try {
          // make sure each snapshot is read by the correct reader
          int version = input.readInt();
          if (version != getVersion())
            return WorkspaceTreeReader.getReader(workspace, version).readSnapshotTree(input, complete, monitor);
View Full Code Here


  protected ElementTree[] readTrees(IPath root, DataInputStream input, IProgressMonitor monitor) throws IOException {
    monitor = Policy.monitorFor(monitor);
    try {
      String message = Messages.resources_reading;
      monitor.beginTask(message, 4);
      ElementTreeReader treeReader = new ElementTreeReader(workspace.getSaveManager());
      ElementTree[] trees = treeReader.readDeltaChain(input);
      monitor.worked(3);
      if (root.isRoot()) {
        //Don't need to link because we're reading the whole workspace.
        //The last tree in the chain is the complete tree.
        ElementTree newTree = trees[trees.length - 1];
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.watson.ElementTreeReader

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.