From be5639b56e8da6d5ea53ef718e8a71c115c567c8 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Tue, 17 Feb 2015 00:45:39 +0100 Subject: [PATCH] add doWhenDone() method --- .../intellij/openapi/actionSystem/RegistryToggleAction.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/actionSystem/RegistryToggleAction.java b/platform/platform-impl/src/com/intellij/openapi/actionSystem/RegistryToggleAction.java index 1813127a1af8..ca15381d7fa4 100644 --- a/platform/platform-impl/src/com/intellij/openapi/actionSystem/RegistryToggleAction.java +++ b/platform/platform-impl/src/com/intellij/openapi/actionSystem/RegistryToggleAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,5 +54,9 @@ public class RegistryToggleAction extends ToggleAction { @Override public void setSelected(AnActionEvent e, boolean state) { Registry.get(myKey).setValue(state); + doWhenDone(e); + } + + public void doWhenDone(AnActionEvent e) { } }