public ToolWindowTabPanel(DockedContainer dockedContainer, ToolWindowDescriptor descriptor) {
this.descriptor = descriptor;
this.toolWindow = descriptor.getToolWindow();
this.resourceManager = descriptor.getResourceManager();
this.dockedContainer = dockedContainer;
this.mouseEventDispatcher = new MouseEventDispatcher();
this.dragGestureDelegate = new DragGestureDelegate();
descriptor.getCleaner().addCleaner(this);
initComponents();