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)); |