Index: TopComponent.java =================================================================== RCS file: /cvs/openide/src/org/openide/windows/TopComponent.java,v retrieving revision 1.127 retrieving revision 1.127.4.1 diff -c -r1.127 -r1.127.4.1 *** TopComponent.java 22 Apr 2004 23:06:22 -0000 1.127 --- TopComponent.java 30 Apr 2004 13:51:20 -0000 1.127.4.1 *************** *** 764,769 **** --- 770,791 ---- * @return cloned component. */ public TopComponent cloneComponent (); + } + + // mkleint - multiviews. + /** + * Extension of TopCpmponent.Cloneable. + *Each top component that wishes to be cloned conditionally should implement + * this interface, so CloneAction can check it and call the cloneComponent + * method. The condition shall be constant during lifecycle of the TopComponent, + * allows to subclass TopComponent.Cloneable classes and prohibit cloning for them. + * + */ + public static interface Cloneable2 extends Cloneable { + /** + * + */ + public boolean canClone(); } /* Read accessible context