Package org.eclipse.compare.internal

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


  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

  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

  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

Related Classes of org.eclipse.compare.internal.MergeViewerAction

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.