currentPanel = internalFrameToDesktopPanelMap.get(frame);
} catch (PropertyVetoException e) {
SoapUI.logError(e);
}
} else if (panelBuilder != null && panelBuilder.hasDesktopPanel()) {
DesktopPanel desktopPanel = panelBuilder.buildDesktopPanel(modelItem);
if (desktopPanel == null)
return null;
JInternalFrame frame = createContentFrame(desktopPanel);
desktop.add(frame);
try {
frame.setSelected(true);
} catch (PropertyVetoException e) {
SoapUI.logError(e);
}
modelItemToInternalFrameMap.put(modelItem, frame);
internalFrameToDesktopPanelMap.put(frame, desktopPanel);
fireDesktopPanelCreated(desktopPanel);
currentPanel = desktopPanel;
desktopPanel.getComponent().requestFocusInWindow();
} else
Toolkit.getDefaultToolkit().beep();
enableWindowActions();