use of org.jetbrains.plugins.ipnb.editor.panels.code.IpnbCodeSourcePanel in project intellij-community by JetBrains.
the class IpnbPyFunction method navigate.
@Override
public void navigate(boolean requestFocus) {
final IpnbCodeSourcePanel sourcePanel = ((IpnbPyFragment) getContainingFile()).getCodeSourcePanel();
final Editor editor = sourcePanel.getEditor();
final IpnbCodePanel codePanel = sourcePanel.getIpnbCodePanel();
final IpnbFileEditor fileEditor = codePanel.getFileEditor();
final IpnbFilePanel filePanel = fileEditor.getIpnbFilePanel();
codePanel.setEditing(true);
filePanel.setSelectedCellPanel(codePanel);
super.navigate(false);
UIUtil.requestFocus(editor.getContentComponent());
}
use of org.jetbrains.plugins.ipnb.editor.panels.code.IpnbCodeSourcePanel in project intellij-community by JetBrains.
the class IpnbPyTargetExpression method navigate.
@Override
public void navigate(boolean requestFocus) {
final IpnbCodeSourcePanel sourcePanel = ((IpnbPyFragment) getContainingFile()).getCodeSourcePanel();
final Editor editor = sourcePanel.getEditor();
final IpnbCodePanel codePanel = sourcePanel.getIpnbCodePanel();
final IpnbFileEditor fileEditor = codePanel.getFileEditor();
final IpnbFilePanel filePanel = fileEditor.getIpnbFilePanel();
codePanel.setEditing(true);
filePanel.setSelectedCellPanel(codePanel);
super.navigate(false);
UIUtil.requestFocus(editor.getContentComponent());
}
Aggregations