? core/.nbintdb Index: core/windows/src/org/netbeans/core/windows/frames/DefaultContainerImpl.java =================================================================== RCS file: /cvs/core/windows/src/org/netbeans/core/windows/frames/DefaultContainerImpl.java,v retrieving revision 1.2 diff -u -r1.2 DefaultContainerImpl.java --- core/windows/src/org/netbeans/core/windows/frames/DefaultContainerImpl.java 6 May 2003 15:27:17 -0000 1.2 +++ core/windows/src/org/netbeans/core/windows/frames/DefaultContainerImpl.java 13 May 2003 15:34:59 -0000 @@ -1515,7 +1515,9 @@ private static javax.swing.ActionMap createContainerActionMap( DefaultContainerImpl container, TopComponent selected) { javax.swing.ActionMap am = new javax.swing.ActionMap(); - am.put(clone.getActionMapKey(), new PerformerAction(container, TYPE_CLONE_ACTION, selected)); + if(selected instanceof TopComponent.Cloneable) { + am.put(clone.getActionMapKey(), new PerformerAction(container, TYPE_CLONE_ACTION, selected)); + } am.put(undock.getActionMapKey(), new PerformerAction(container, TYPE_UNDOCK_ACTION, selected)); am.put(nextTab.getActionMapKey(), new PerformerAction(container, TYPE_NEXT_ACTION, selected)); am.put(prevTab.getActionMapKey(), new PerformerAction(container, TYPE_PREVIOUS_ACTION, selected)); Index: core/windows/src/org/netbeans/core/windows/util/WindowUtils.java =================================================================== RCS file: /cvs/core/windows/src/org/netbeans/core/windows/util/WindowUtils.java,v retrieving revision 1.2 diff -u -r1.2 WindowUtils.java --- core/windows/src/org/netbeans/core/windows/util/WindowUtils.java 6 May 2003 15:27:43 -0000 1.2 +++ core/windows/src/org/netbeans/core/windows/util/WindowUtils.java 13 May 2003 15:34:59 -0000 @@ -240,12 +240,13 @@ } if(clone) { - // clone the view and dock into new single mode - TopComponent newComp = - (TopComponent)((TopComponent.Cloneable)tc).cloneComponent(); - newComp.setIcon(tc.getIcon()); - singleMode.dockInto(newComp); - newComp.open(); + if(tc instanceof TopComponent.Cloneable) { + // Clone the view and dock into new single mode. + TopComponent newComp = ((TopComponent.Cloneable)tc).cloneComponent(); + newComp.setIcon(tc.getIcon()); + singleMode.dockInto(newComp); + newComp.open(); + } } else { // undock to the single mode singleMode.dockInto(tc);