Examples of ISynchronizable


Examples of org.eclipse.jface.text.ISynchronizable

    try {


      IDocument document= fProjectionViewer.getDocument();
      if (document instanceof ISynchronizable && fAnnotationModel instanceof ISynchronizable) {
        ISynchronizable sync= (ISynchronizable) fAnnotationModel;
        previousLockObject= sync.getLockObject();
        sync.setLockObject(((ISynchronizable) document).getLockObject());
      }


      removeSummaries(monitor);
     
      if (isCanceled(monitor))
        return;

      createSummaries(monitor);

    } finally {

      if (fAnnotationModel instanceof ISynchronizable) {
        ISynchronizable sync= (ISynchronizable) fAnnotationModel;
        sync.setLockObject(previousLockObject);
      }
      fAnnotationModel= null;

    }
  }
View Full Code Here

Examples of org.eclipse.jface.text.ISynchronizable

    if (annotationModel != null && document != null) {
      fVisualAnnotationModel= createVisualAnnotationModel(annotationModel);

      // Make sure the visual model uses the same lock as the underlying model
      if (annotationModel instanceof ISynchronizable && fVisualAnnotationModel instanceof ISynchronizable) {
        ISynchronizable sync= (ISynchronizable)fVisualAnnotationModel;
        sync.setLockObject(((ISynchronizable)annotationModel).getLockObject());
      }

      fVisualAnnotationModel.connect(document);
    }
View Full Code Here

Examples of org.eclipse.jface.text.ISynchronizable

    if (annotationModel != null && document != null) {
      fVisualAnnotationModel= createVisualAnnotationModel(annotationModel);

      // Make sure the visual model uses the same lock as the underlying model
      if (annotationModel instanceof ISynchronizable && fVisualAnnotationModel instanceof ISynchronizable) {
        ISynchronizable sync= (ISynchronizable)fVisualAnnotationModel;
        sync.setLockObject(((ISynchronizable)annotationModel).getLockObject());
      }

      fVisualAnnotationModel.connect(document);
    }
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.