final JFrame rootFrame = (JFrame) window.getRootObject();
editor = rootFrame.getContentPane();
}
else if (rootEle instanceof SwingDialog)
{
final SwingDialog dialog = (SwingDialog) rootEle;
final JDialog rootFrame = dialog.getDialog();
editor = rootFrame.getContentPane();
}
else
{
throw new DrillDownUiException("Root element not a Frame: " + rootEle);