Java Code Examples for com.intellij.openapi.actionSystem.ex.ActionUtil#copyFrom()

The following examples show how to use com.intellij.openapi.actionSystem.ex.ActionUtil#copyFrom() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ThreesideDiffViewer.java    From consulo with Apache License 2.0 6 votes vote down vote up
public ShowPartialDiffAction(@Nonnull PartialDiffMode mode) {
  String id;
  switch (mode) {
    case LEFT_BASE:
      mySide1 = ThreeSide.LEFT;
      mySide2 = ThreeSide.BASE;
      id = "Diff.ComparePartial.Base.Left";
      break;
    case BASE_RIGHT:
      mySide1 = ThreeSide.BASE;
      mySide2 = ThreeSide.RIGHT;
      id = "Diff.ComparePartial.Base.Right";
      break;
    case LEFT_RIGHT:
      mySide1 = ThreeSide.LEFT;
      mySide2 = ThreeSide.RIGHT;
      id = "Diff.ComparePartial.Left.Right";
      break;
    default:
      throw new IllegalArgumentException();
  }
  ActionUtil.copyFrom(this, id);
}
 
Example 2
Source File: RollbackLineStatusRangeAction.java    From consulo with Apache License 2.0 5 votes vote down vote up
public RollbackLineStatusRangeAction(@Nonnull LineStatusTracker tracker, @Nonnull Range range, @javax.annotation.Nullable Editor editor) {
  ActionUtil.copyFrom(this, IdeActions.SELECTED_CHANGES_ROLLBACK);

  myTracker = tracker;
  myEditor = editor;
  myRange = range;
}
 
Example 3
Source File: PrevNextOccurrenceAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
PrevNextOccurrenceAction(@Nonnull String templateActionId, boolean search) {
  mySearch = search;
  ActionUtil.copyFrom(this, templateActionId);
}
 
Example 4
Source File: NextChangeAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public NextChangeAction() {
  ActionUtil.copyFrom(this, "Diff.NextChange");
}
 
Example 5
Source File: RollbackDialogAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public RollbackDialogAction() {
  ActionUtil.copyFrom(this, IdeActions.CHANGES_VIEW_ROLLBACK);
}
 
Example 6
Source File: ApplyPatchViewer.java    From consulo with Apache License 2.0 4 votes vote down vote up
public ApplyNonConflictsAction() {
  ActionUtil.copyFrom(this, "Diff.ApplyNonConflicts");
}
 
Example 7
Source File: ShowPrevChangeMarkerAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public ShowPrevChangeMarkerAction(final Range range, final LineStatusTracker lineStatusTracker, final Editor editor) {
  super(range, lineStatusTracker, editor);
  ActionUtil.copyFrom(this, "VcsShowPrevChangeMarker");
}
 
Example 8
Source File: AnnotateDiffViewerAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public AnnotateDiffViewerAction() {
  ActionUtil.copyFrom(this, "Annotate");
  setEnabledInModalContext(true);
}
 
Example 9
Source File: ShowNextChangeMarkerAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public ShowNextChangeMarkerAction(final Range range, final LineStatusTracker lineStatusTracker, final Editor editor) {
  super(range, lineStatusTracker, editor);
  ActionUtil.copyFrom(this, "VcsShowNextChangeMarker");
}
 
Example 10
Source File: CopyLineStatusRangeAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
CopyLineStatusRangeAction(final LineStatusTracker lineStatusTracker, final Range range) {
  super(lineStatusTracker, range);
  ActionUtil.copyFrom(this, IdeActions.ACTION_COPY);
}
 
Example 11
Source File: ShowLineStatusRangeDiffAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public ShowLineStatusRangeDiffAction(@Nonnull LineStatusTracker lineStatusTracker, @Nonnull Range range, @javax.annotation.Nullable Editor editor) {
  super(lineStatusTracker, range);
  ActionUtil.copyFrom(this, "ChangesView.Diff");
}
 
Example 12
Source File: TextMergeViewer.java    From consulo with Apache License 2.0 4 votes vote down vote up
public ApplyNonConflictsAction(@Nonnull ThreeSide side) {
  String id = side.select("Diff.ApplyNonConflicts.Left", "Diff.ApplyNonConflicts", "Diff.ApplyNonConflicts.Right");
  ActionUtil.copyFrom(this, id);
  mySide = side;
}
 
Example 13
Source File: TextMergeViewer.java    From consulo with Apache License 2.0 4 votes vote down vote up
public ApplySelectedChangesAction(@Nonnull Side side, boolean shortcut) {
  super(shortcut);
  mySide = side;
  ActionUtil.copyFrom(this, mySide.select("Diff.ApplyLeftSide", "Diff.ApplyRightSide"));
}
 
Example 14
Source File: TextMergeViewer.java    From consulo with Apache License 2.0 4 votes vote down vote up
public IgnoreSelectedChangesSideAction(@Nonnull Side side, boolean shortcut) {
  super(shortcut);
  mySide = side;
  ActionUtil.copyFrom(this, mySide.select("Diff.IgnoreLeftSide", "Diff.IgnoreRightSide"));
}
 
Example 15
Source File: FocusOppositePaneAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public FocusOppositePaneAction(boolean scrollToPosition) {
  myScrollToPosition = scrollToPosition;
  ActionUtil.copyFrom(this, getActionId());
}
 
Example 16
Source File: SetEditorSettingsAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
private EditorSettingToggleAction(@Nonnull String actionId) {
  ActionUtil.copyFrom(this, actionId);
}
 
Example 17
Source File: OpenInEditorAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public OpenInEditorAction(@javax.annotation.Nullable Runnable afterRunnable) {
  ActionUtil.copyFrom(this, "EditSource");
  myAfterRunnable = afterRunnable;
}
 
Example 18
Source File: PrevChangeAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public PrevChangeAction() {
  ActionUtil.copyFrom(this, "Diff.PrevChange");
}
 
Example 19
Source File: PrevDifferenceAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public PrevDifferenceAction() {
  ActionUtil.copyFrom(this, IdeActions.ACTION_PREVIOUS_DIFF);
}
 
Example 20
Source File: NextDifferenceAction.java    From consulo with Apache License 2.0 4 votes vote down vote up
public NextDifferenceAction() {
  ActionUtil.copyFrom(this, IdeActions.ACTION_NEXT_DIFF);
}