This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 33557
Collapse All | Expand All

(-)core/src/org/netbeans/core/windows/frames/DefaultContainerImpl.java (-1 / +3 lines)
Lines 1515-1521 Link Here
1515
    private static javax.swing.ActionMap createContainerActionMap(
1515
    private static javax.swing.ActionMap createContainerActionMap(
1516
    DefaultContainerImpl container, TopComponent selected) {
1516
    DefaultContainerImpl container, TopComponent selected) {
1517
        javax.swing.ActionMap am = new javax.swing.ActionMap();
1517
        javax.swing.ActionMap am = new javax.swing.ActionMap();
1518
        am.put(clone.getActionMapKey(), new PerformerAction(container, TYPE_CLONE_ACTION, selected));
1518
        if(selected instanceof TopComponent.Cloneable) {
1519
            am.put(clone.getActionMapKey(), new PerformerAction(container, TYPE_CLONE_ACTION, selected));
1520
        }
1519
        am.put(undock.getActionMapKey(), new PerformerAction(container, TYPE_UNDOCK_ACTION, selected));
1521
        am.put(undock.getActionMapKey(), new PerformerAction(container, TYPE_UNDOCK_ACTION, selected));
1520
        am.put(nextTab.getActionMapKey(), new PerformerAction(container, TYPE_NEXT_ACTION, selected));
1522
        am.put(nextTab.getActionMapKey(), new PerformerAction(container, TYPE_NEXT_ACTION, selected));
1521
        am.put(prevTab.getActionMapKey(), new PerformerAction(container, TYPE_PREVIOUS_ACTION, selected));
1523
        am.put(prevTab.getActionMapKey(), new PerformerAction(container, TYPE_PREVIOUS_ACTION, selected));
(-)core/src/org/netbeans/core/windows/util/WindowUtils.java (-6 / +7 lines)
Lines 240-251 Link Here
240
        }
240
        }
241
        
241
        
242
        if(clone) {
242
        if(clone) {
243
            // clone the view and dock into new single mode
243
            if(tc instanceof TopComponent.Cloneable) {
244
            TopComponent newComp =
244
                // clone the view and dock into new single mode
245
                (TopComponent)((TopComponent.Cloneable)tc).cloneComponent();
245
                TopComponent newComp = ((TopComponent.Cloneable)tc).cloneComponent();
246
            newComp.setIcon(tc.getIcon());
246
                newComp.setIcon(tc.getIcon());
247
            singleMode.dockInto(newComp);
247
                singleMode.dockInto(newComp);
248
            newComp.open();
248
                newComp.open();
249
            }
249
        } else {
250
        } else {
250
            // undock to the single mode
251
            // undock to the single mode
251
            singleMode.dockInto(tc);
252
            singleMode.dockInto(tc);

Return to bug 33557