Index: CloneableEditor.java =================================================================== RCS file: /cvs/openide/src/org/openide/text/CloneableEditor.java,v retrieving revision 1.53 diff -c -r1.53 CloneableEditor.java *** CloneableEditor.java 29 Jan 2003 01:42:53 -0000 1.53 --- CloneableEditor.java 10 Feb 2003 16:44:09 -0000 *************** *** 294,300 **** pane.requestFocus(); } } ! /** @return Preferred size of editor top component */ public Dimension getPreferredSize() { Rectangle bounds = WindowManager.getDefault().getCurrentWorkspace().getBounds(); --- 294,313 ---- pane.requestFocus(); } } ! ! /** Transfer default focus to editor pane. */ ! public boolean requestDefaultFocus() { ! if(customComponent != null ! && !SwingUtilities.isDescendingFrom(pane, customComponent)) { ! customComponent.requestFocus(); ! return true; ! } else if(pane != null) { ! pane.requestFocus(); ! return true; ! } ! return false; ! } ! /** @return Preferred size of editor top component */ public Dimension getPreferredSize() { Rectangle bounds = WindowManager.getDefault().getCurrentWorkspace().getBounds();