diff options
author | Tor Norbye <tnorbye@google.com> | 2014-09-04 13:25:33 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2014-09-04 13:25:33 -0700 |
commit | d245f58efbfc26b13b9b9d5e52e6a83a0d76216c (patch) | |
tree | bca7d49005d81d10c70bc3f547df041c636b4300 /java/debugger/impl/src/com/intellij/debugger/actions/CustomizeThreadsViewAction.java | |
parent | 9cde0e3c015174898df8b8f3672185941fad4786 (diff) | |
parent | c3d3a90f6b4ead083d63e28e6b9fcea93d675678 (diff) | |
download | idea-d245f58efbfc26b13b9b9d5e52e6a83a0d76216c.tar.gz |
Merge remote-tracking branch 'aosp/upstream-master' into merge
Diffstat (limited to 'java/debugger/impl/src/com/intellij/debugger/actions/CustomizeThreadsViewAction.java')
-rw-r--r-- | java/debugger/impl/src/com/intellij/debugger/actions/CustomizeThreadsViewAction.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/java/debugger/impl/src/com/intellij/debugger/actions/CustomizeThreadsViewAction.java b/java/debugger/impl/src/com/intellij/debugger/actions/CustomizeThreadsViewAction.java index 64705a373a21..7cef867334df 100644 --- a/java/debugger/impl/src/com/intellij/debugger/actions/CustomizeThreadsViewAction.java +++ b/java/debugger/impl/src/com/intellij/debugger/actions/CustomizeThreadsViewAction.java @@ -19,23 +19,15 @@ import com.intellij.debugger.settings.ThreadsViewConfigurable; import com.intellij.debugger.settings.ThreadsViewSettings; import com.intellij.idea.ActionsBundle; import com.intellij.openapi.actionSystem.AnActionEvent; -import com.intellij.openapi.actionSystem.CommonDataKeys; -import com.intellij.openapi.actionSystem.PlatformDataKeys; -import com.intellij.openapi.options.ex.SingleConfigurableEditor; -import com.intellij.openapi.project.Project; +import com.intellij.openapi.options.ShowSettingsUtil; -/** - * User: lex - * Date: Sep 26, 2003 - * Time: 4:40:12 PM - */ public class CustomizeThreadsViewAction extends DebuggerAction { + @Override public void actionPerformed(AnActionEvent e) { - Project project = CommonDataKeys.PROJECT.getData(e.getDataContext()); - final SingleConfigurableEditor editor = new SingleConfigurableEditor(project, new ThreadsViewConfigurable(ThreadsViewSettings.getInstance())); - editor.show(); + ShowSettingsUtil.getInstance().editConfigurable(e.getProject(), new ThreadsViewConfigurable(ThreadsViewSettings.getInstance())); } + @Override public void update(AnActionEvent e) { e.getPresentation().setVisible(true); e.getPresentation().setText(ActionsBundle.actionText(DebuggerActions.CUSTOMIZE_THREADS_VIEW)); |