Index: org/openide/text/CloneableEditor.java =================================================================== RCS file: /cvs/openide/src/org/openide/text/CloneableEditor.java,v retrieving revision 1.25.4.7 diff -u -r1.25.4.7 CloneableEditor.java --- org/openide/text/CloneableEditor.java 18 Jan 2002 13:39:05 -0000 1.25.4.7 +++ org/openide/text/CloneableEditor.java 22 Mar 2002 10:21:40 -0000 @@ -89,6 +89,10 @@ /** editor pane */ protected JEditorPane pane; + // TEMP>> + private Component customComponent; + // TEMP<< + /** Listener for copy action enabling */ private PropertyChangeListener copyL; @@ -237,8 +241,11 @@ if (doc instanceof NbDocument.CustomEditor) { NbDocument.CustomEditor ce = (NbDocument.CustomEditor)doc; + // TEMP>> + customComponent = ce.createEditor(pane); add( - ce.createEditor(pane), +// ce.createEditor(pane), + customComponent, // TEMP BorderLayout.CENTER ); } else { // not custom editor @@ -317,7 +324,14 @@ */ public void requestFocus() { super.requestFocus (); - pane.requestFocus (); + + // TEMP>> + if(customComponent != null) { + customComponent.requestFocus(); + } else { + pane.requestFocus (); + } + // TEMP<< } /** @return Preferred size of editor top component */