private PopupAction() { super("Settings", "Settings", IconLoader.getIcon("/general/secondaryGroup.png")); myUsual = new AnAction("Top | Bottom") { @Override public void actionPerformed(AnActionEvent e) { boolean was = myConfiguration.SHORT_DIFF_HORISONTALLY; myConfiguration.SHORT_DIFF_HORISONTALLY = false; ensurePresentation(); } }; myNumbered = new AnAction("Left | Right") { @Override public void actionPerformed(AnActionEvent e) { boolean was = myConfiguration.SHORT_DIFF_HORISONTALLY; myConfiguration.SHORT_DIFF_HORISONTALLY = true; ensurePresentation(); } }; mySoftWrapsAction = new MyUseSoftWrapsAction(myConfiguration.SOFT_WRAPS_IN_SHORT_DIFF); }
private MyNextDiffAction() { super("Next Change", "Next Change", IconLoader.getIcon("/actions/nextOccurence.png")); }
private MyPreviousDiffAction() { super( "Previous Change", "Previous Change", IconLoader.getIcon("/actions/previousOccurence.png")); }
private MyChangeContextAction() { super( "More/Less Lines...", "More/Less Lines...", IconLoader.getIcon("/actions/expandall.png")); }
private MyUseSoftWrapsAction(boolean turned) { super("Use soft wraps"); myIcon = IconLoader.findIcon("/actions/checked.png"); }