@Override public void validate(final Content content, final ActiveRunnable toRestore) { final TabInfo current = myTabs.getSelectedInfo(); myTabs.getPresentation().setPaintBlocked(true, true); select(content, false).doWhenDone(new Runnable() { @Override public void run() { myTabs.getComponent().validate(); toRestore.run().doWhenDone(new Runnable() { @Override public void run() { myTabs.select(current, true); myTabs.getPresentation().setPaintBlocked(false, true); } }); } }); }
@NotNull ActionCallback execute(final TabInfo info, final boolean requestFocus, @NotNull ActiveRunnable doChangeSelection);
@Nonnull ActionCallback execute(final TabInfo info, final boolean requestFocus, @Nonnull ActiveRunnable doChangeSelection);
void validate(Content content, ActiveRunnable toRestore);