void (final ConsoleCommunication communication) { getFile().putCopyableUserData(CONSOLE_COMMUNICATION_KEY, communication); if (isShowVars && communication instanceof PydevConsoleCommunication) { myIsToolwindowHorizontal = isToolwindowHorizontal(PythonConsoleToolWindow.getInstance(getProject()).getToolWindow()); showVariables((PydevConsoleCommunication)communication); } if (communication instanceof PydevConsoleCommunication || communication instanceof PythonDebugConsoleCommunication) { myCommandQueuePanel.setCommunication(communication); } addCommandQueuePanelListener(communication); }