// setup workpanel (window containing Request, Response & Break tab)
initializeWebSocketsForWorkPanel();
// setup manualrequest extension
ExtensionManualRequestEditor extManReqEdit = (ExtensionManualRequestEditor) extLoader
.getExtension(ExtensionManualRequestEditor.NAME);
if (extManReqEdit != null) {
WebSocketPanelSender sender = new WebSocketPanelSender();
addAllChannelObserver(sender);
sendDialog = createManualSendDialog(sender);
extManReqEdit.addManualSendEditor(sendDialog);
hookMenu.addToolsMenuItem(sendDialog.getMenuItem());
// add 'Resend Message' menu item to WebSocket tab context menu
hookMenu.addPopupMenuItem(new ResendWebSocketMessageMenuItem(createReSendDialog(sender)));
// setup persistent connection listener for http manual send editor
ManualRequestEditorDialog sendEditor = extManReqEdit.getManualSendEditor(HttpMessage.class);
if (sendEditor != null) {
ManualHttpRequestEditorDialog httpSendEditor = (ManualHttpRequestEditorDialog) sendEditor;
httpSendEditor.addPersistentConnectionListener(this);
}
}