public static SingleDockableContainer applyDockingAction(Dockable dockable, DockingActionEvent action){
SingleDockableContainer dockableContainer;
switch (action.getActionType()){
case DockingActionEvent.ACTION_ADD_DOCKABLE:
DockingActionAddDockableEvent addAction = (DockingActionAddDockableEvent) action;
dockableContainer = DockableContainerFactory.getFactory().
createDockableContainer(dockable, DockableContainerFactory.ParentType.PARENT_DESKTOP);
Container relativeAncestorContainer = addAction.getParentContainer();
// default central insertion
relativeAncestorContainer.add((Component)dockableContainer, BorderLayout.CENTER);
relativeAncestorContainer.invalidate(); // 2005/05/04
relativeAncestorContainer.validate();
relativeAncestorContainer.repaint();