Search in sources :

Example 1 with CustomFieldInplaceEditor

use of com.intellij.debugger.ui.tree.render.CustomFieldInplaceEditor in project intellij-community by JetBrains.

the class EditCustomFieldAction method perform.

@Override
protected void perform(XValueNodeImpl node, @NotNull String nodeName, AnActionEvent e) {
    ValueDescriptorImpl descriptor = ((JavaValue) node.getValueContainer()).getDescriptor();
    EnumerationChildrenRenderer enumerationChildrenRenderer = getParentEnumerationRenderer(descriptor);
    if (enumerationChildrenRenderer != null) {
        new CustomFieldInplaceEditor(node, (UserExpressionDescriptorImpl) descriptor, enumerationChildrenRenderer).show();
    }
}
Also used : EnumerationChildrenRenderer(com.intellij.debugger.ui.tree.render.EnumerationChildrenRenderer) ValueDescriptorImpl(com.intellij.debugger.ui.impl.watch.ValueDescriptorImpl) JavaValue(com.intellij.debugger.engine.JavaValue) UserExpressionDescriptorImpl(com.intellij.debugger.ui.impl.watch.UserExpressionDescriptorImpl) CustomFieldInplaceEditor(com.intellij.debugger.ui.tree.render.CustomFieldInplaceEditor)

Aggregations

JavaValue (com.intellij.debugger.engine.JavaValue)1 UserExpressionDescriptorImpl (com.intellij.debugger.ui.impl.watch.UserExpressionDescriptorImpl)1 ValueDescriptorImpl (com.intellij.debugger.ui.impl.watch.ValueDescriptorImpl)1 CustomFieldInplaceEditor (com.intellij.debugger.ui.tree.render.CustomFieldInplaceEditor)1 EnumerationChildrenRenderer (com.intellij.debugger.ui.tree.render.EnumerationChildrenRenderer)1