window.addDisposeListener(disposeListener);
} else if(openType.equals(PreferenceConstants.P_CHAT_OPEN_TYPE_SAMEWINDOW)){
IWorkbenchPage page = account.getDefaultWorkbenchPage();
if(page == null) page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IChatGUI gui = openChatView(page);
if(msg != null) gui.processMessage(msg, alreadyHandled);
window = gui;
} else if(openType.equals(PreferenceConstants.P_CHAT_OPEN_TYPE_NEWTABBEDWINDOW)) {
IWorkbenchPage chatPage = null;
IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
for(IWorkbenchWindow window : windows) {