else
{
final XulComponent rootEle = documentRoot.getRootElement();
if (rootEle instanceof SwingWindow)
{
final SwingWindow window = (SwingWindow) rootEle;
final JFrame rootFrame = (JFrame) window.getRootObject();
editor = rootFrame.getContentPane();
}
else if (rootEle instanceof SwingDialog)
{
final SwingDialog dialog = (SwingDialog) rootEle;