public void connect( DockController controller ){
if( this.controller != null ){
DockRegister register = this.controller.getRegister();
register.removeDockRegisterListener( this );
for( Dockable dockable : register.listDockables() ){
dockable.removeDockHierarchyListener( hierarchyListener );
rebuild( dockable );
}
}
this.controller = controller;