From b75d22162cf68bb8bc7755cdd30c7ec9b1567c29 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Tue, 17 Feb 2015 00:46:35 +0100 Subject: [PATCH] update editor to add/remove inlined debug values when the option is set to on/off --- .../impl/actions/UseInlineDebuggerAction.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/UseInlineDebuggerAction.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/UseInlineDebuggerAction.java index 4ebac331ab4a..ab9bba4d37da 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/UseInlineDebuggerAction.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/UseInlineDebuggerAction.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. @@ -15,7 +15,11 @@ */ package com.intellij.xdebugger.impl.actions; +import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.actionSystem.RegistryToggleAction; +import com.intellij.openapi.editor.Editor; +import com.intellij.openapi.fileEditor.FileEditorManager; +import com.intellij.openapi.project.Project; /** * @author Konstantin Bulenkov @@ -24,4 +28,15 @@ public class UseInlineDebuggerAction extends RegistryToggleAction { public UseInlineDebuggerAction() { super("ide.debugger.inline"); } + + @Override + public void doWhenDone(AnActionEvent e) { + Project project = e.getProject(); + if (project != null) { + final Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor(); + if (editor != null) { + editor.getComponent().repaint(); + } + } + } }