Examples of QuickDiff


Examples of org.eclipse.ui.texteditor.quickdiff.QuickDiff

    if (annotationModel == null)
      annotationModel= new AnnotationModel();
    if (!(annotationModel instanceof IAnnotationModelExtension))
      return false;

    QuickDiff util= new QuickDiff();
    Object oldDifferId= util.getConfiguredQuickDiffProvider(oldDiffer);
    if (oldDifferId.equals(diffProviderId)) {
      if (oldDiffer instanceof ILineDifferExtension)
        ((ILineDifferExtension) oldDiffer).resume();
      return true;
    }

    // Check whether the desired provider is available at all
    IAnnotationModel newDiffer= util.createQuickDiffAnnotationModel(getEditor(), diffProviderId);
    if (util.getConfiguredQuickDiffProvider(newDiffer).equals(oldDifferId)) {
      if (oldDiffer instanceof ILineDifferExtension)
        ((ILineDifferExtension) oldDiffer).resume();
        return true;
    }
   
View Full Code Here

Examples of org.eclipse.ui.texteditor.quickdiff.QuickDiff

    // create diff model if it doesn't
    if (differ == null) {
      IPreferenceStore store= getPreferenceStore();
      if (store != null) {
        String defaultId= store.getString(AbstractDecoratedTextEditorPreferenceConstants.QUICK_DIFF_DEFAULT_PROVIDER);
        differ= new QuickDiff().createQuickDiffAnnotationModel(getEditor(), defaultId);
        if (differ != null) {
          if (model == null)
            model= new AnnotationModel();
          model.addAnnotationModel(IChangeRulerColumn.QUICK_DIFF_MODEL_ID, differ);
        }
View Full Code Here

Examples of org.eclipse.ui.texteditor.quickdiff.QuickDiff

    }
    return items;
  }

  private String[][] createQuickDiffReferenceListModel() {
    java.util.List descriptors= new QuickDiff().getReferenceProviderDescriptors();
    ArrayList listModelItems= new ArrayList();
    for (Iterator it= descriptors.iterator(); it.hasNext();) {
      ReferenceProviderDescriptor descriptor= (ReferenceProviderDescriptor) it.next();
      String label= LegacyActionTools.removeMnemonics(descriptor.getLabel());
      listModelItems.add(new String[] { descriptor.getId(), label });
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.