// Acquire locks
if (!acquireLocks())
return;
// Start Drag
MyDoggyToolWindowTab toolWindowTab = null;
if (SwingUtilities.isDescendingFrom(dge.getComponent(), panel)) {
ToolWindowTabPanel.TabButton tabButton = SwingUtil.getParent(dge.getComponent(), ToolWindowTabPanel.TabButton.class);
if (tabButton != null)
toolWindowTab = (MyDoggyToolWindowTab) tabButton.getTab();
}
if (toolWindowTab != null && toolWindowTab.getDockableDelegator() != null) {
// TDDO: change..this
MyDoggyTransferable transferable = new MyDoggyTransferable(manager);
transferable.addEntry(MyDoggyTransferable.TOOL_WINDOW_ID_DF, toolWindowTab.getDockableDelegator().getId());
transferable.addEntry(MyDoggyTransferable.TOOL_WINDOW_TAB_ID_DF, toolWindowTab.getId());
dge.startDrag(Cursor.getDefaultCursor(), transferable, this);
} else {
dge.startDrag(Cursor.getDefaultCursor(),
new MyDoggyTransferable(manager, MyDoggyTransferable.TOOL_WINDOW_ID_DF, toolWindow.getId()),