Examples of MergeViewerAction


Examples of org.eclipse.compare.internal.MergeViewerAction

    if (action == null) {
      action = createAction(actionId);
      if (action == null)
        return null;
      if (action instanceof MergeViewerAction) {
        MergeViewerAction mva = (MergeViewerAction) action;
        if (mva.isContentDependent())
          addTextListener(this);
        if (mva.isSelectionDependent())
          addSelectionChangedListener(this);

        Utilities.initAction(action, fResourceBundle,
            "action." + actionId + "."); //$NON-NLS-1$ //$NON-NLS-2$
      }
      addAction(actionId, action);

    }
    if (action instanceof MergeViewerAction) {
      MergeViewerAction mva = (MergeViewerAction) action;
      if (mva.isEditableDependent() && !isEditable())
        return null;
    }
    return action;
  }
View Full Code Here

Examples of org.eclipse.compare.internal.MergeViewerAction

  public void selectionChanged(SelectionChangedEvent event) {
    Iterator e = fActions.values().iterator();
    while (e.hasNext()) {
      Object next = e.next();
      if (next instanceof MergeViewerAction) {
        MergeViewerAction action = (MergeViewerAction) next;
        if (action.isSelectionDependent())
          action.update();
      }
    }
  }
View Full Code Here

Examples of org.eclipse.compare.internal.MergeViewerAction

  void updateContentDependantActions() {
    Iterator e = fActions.values().iterator();
    while (e.hasNext()) {
      Object next = e.next();
      if (next instanceof MergeViewerAction) {
        MergeViewerAction action = (MergeViewerAction) next;
        if (action.isContentDependent())
          action.update();
      }
    }
  }
View Full Code Here

Examples of org.eclipse.compare.internal.MergeViewerAction

  public void updateActions() {
    Iterator e = fActions.values().iterator();
    while (e.hasNext()) {
      Object next = e.next();
      if (next instanceof MergeViewerAction) {
        MergeViewerAction action = (MergeViewerAction) next;
        action.update();
      }
      if (next instanceof FindReplaceAction) {
        FindReplaceAction action = (FindReplaceAction) next;
        action.update();
      }
    }
  }
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.