public void fireFocusGainedOnActiveComponent ( ) { String documentName = contentPane . getActiveDocumentName ( ) ; if ( documentName != null ) { PageComponent component = ( PageComponent ) pageComponentMap . get ( documentName ) ; JideApplicationPage page = ( JideApplicationPage ) getActiveWindow ( ) . getPage ( ) ; page . fireFocusGained ( component ) ; } }
This is a bit of a hack to get over a limitation in the JIDE docking framework . When focus is regained to the workspace by activation the currently activated document the documentComponentActivated is not fired . This needs to be fired when we know the workspace has become active . For some reason it dosen t work when using the componentFocusGained method