示例#1
0
 ////////////////////////////////////////////////////////////////////////////
 //
 // IActionDelegate
 //
 ////////////////////////////////////////////////////////////////////////////
 @Override
 public void run() {
   AbstractXmlEditor editor = getEditor();
   if (editor != null) {
     editor.switchSourceDesign();
   }
 }
示例#2
0
 /**
  * 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);
     }
   }
 }