////////////////////////////////////////////////////////////////////////////
 //
 // IActionDelegate
 //
 ////////////////////////////////////////////////////////////////////////////
 @Override
 public void run() {
   AbstractXmlEditor editor = getEditor();
   if (editor != null) {
     editor.switchSourceDesign();
   }
 }
 /**
  * Shows "Source" page and at given source position.
  *
  * @param position the position to show in source, if <code>-1</code>, then ignored.
  */
 public static void showSource(int position) {
   AbstractXmlEditor editor = getActiveEditor();
   if (editor != null) {
     editor.showSource();
     if (position != -1) {
       editor.showSourcePosition(position);
     }
   }
 }