? multiview/PaneDelegate.java Index: multiview/MultiViewFactory.java =================================================================== RCS file: /cvs/core/multiview/src/org/netbeans/core/spi/multiview/MultiViewFactory.java,v retrieving revision 1.2.2.1 retrieving revision 1.2 diff -b -c -r1.2.2.1 -r1.2 *** multiview/MultiViewFactory.java 4 May 2004 08:55:08 -0000 1.2.2.1 --- multiview/MultiViewFactory.java 3 May 2004 12:27:59 -0000 1.2 *************** *** 29,43 **** import javax.swing.JScrollPane; import javax.swing.JToolBar; import javax.swing.text.Document; - import org.netbeans.core.multiview.MultiViewCloneableTopComponent; import org.netbeans.core.multiview.MultiViewTopComponent; import org.openide.DialogDisplayer; import org.openide.NotifyDescriptor; import org.openide.text.CloneableEditor; - import org.openide.text.CloneableEditorSupport; import org.openide.text.NbDocument; import org.openide.util.Lookup; - import org.openide.windows.CloneableTopComponent; import org.openide.windows.TopComponent; /** Factory class for creating top components handling multi views. --- 29,40 ---- *************** *** 64,81 **** } /** Creates and returns new instance of top component with ! * multi views. ! * PLEASE NOTE: a non-cloneable TopComponent is not able to embed editors aka subclasses of CloneableEditor correctly. ! * Use createCloneableMultiView() method in such a case. ! */ public static TopComponent createMultiView (MultiViewDescription[] descriptions, MultiViewDescription defaultDesc) { return createMultiView(descriptions, defaultDesc, createDefaultCloseOpHandler()); } /** Creates and returns new instance of top component with * multi views. - * PLEASE NOTE: a non-cloneable TopComponent is not able to embed editors aka subclasses of CloneableEditor correctly. - * Use createCloneableMultiView() method in such a case. * @param CloseOperationHandler handles closing of the multiview component. */ public static TopComponent createMultiView (MultiViewDescription[] descriptions, MultiViewDescription defaultDesc, --- 61,73 ---- } /** Creates and returns new instance of top component with ! * multi views */ public static TopComponent createMultiView (MultiViewDescription[] descriptions, MultiViewDescription defaultDesc) { return createMultiView(descriptions, defaultDesc, createDefaultCloseOpHandler()); } /** Creates and returns new instance of top component with * multi views. * @param CloseOperationHandler handles closing of the multiview component. */ public static TopComponent createMultiView (MultiViewDescription[] descriptions, MultiViewDescription defaultDesc, *************** *** 88,113 **** return tc; } - /** Creates and returns new instance of cloneable top component with - * multi views */ - public static CloneableTopComponent createCloneableMultiView (MultiViewDescription[] descriptions, MultiViewDescription defaultDesc) { - return createCloneableMultiView(descriptions, defaultDesc, createDefaultCloseOpHandler()); - } - - /** Creates and returns new instance of cloneable top component with - * multi views. - * @param CloseOperationHandler handles closing of the multiview component. - */ - public static CloneableTopComponent createCloneableMultiView (MultiViewDescription[] descriptions, MultiViewDescription defaultDesc, - CloseOperationHandler closeHandler) { - if (descriptions == null) return null; - if (closeHandler == null) closeHandler = createDefaultCloseOpHandler(); - MultiViewCloneableTopComponent tc = new MultiViewCloneableTopComponent(); - tc.setMultiViewDescriptions(descriptions, defaultDesc); - tc.setCloseOperationHandler(closeHandler); - return tc; - } - /** * Utility method for MultiViewElements to create a CloseOperationState instance that * informs the environment that the MVElement is ok to be closed. --- 80,85 ----