public CDockable[] getHistory(){ FocusHistory history = control.getController().getFocusHistory(); List<CDockable> result = new ArrayList<CDockable>(); Dockable[] dockables = history.getHistory(); for( int i = dockables.length-1; i >= 0; i-- ){ Dockable dockable = dockables[i]; if( dockable instanceof CommonDockable ){ CDockable cdockable = ((CommonDockable)dockable).getDockable(); result.add( cdockable ); } } return result.toArray( new CDockable[ result.size() ] ); }
public CDockable[] getHistory(){ FocusHistory history = control.getController().getFocusHistory(); List<CDockable> result = new ArrayList<CDockable>(); Dockable[] dockables = history.getHistory(); for( int i = dockables.length-1; i >= 0; i-- ){ Dockable dockable = dockables[i]; if( dockable instanceof CommonDockable ){ CDockable cdockable = ((CommonDockable)dockable).getDockable(); result.add( cdockable ); } } return result.toArray( new CDockable[ result.size() ] ); }
@Override public void extendedModeChanged( CDockable dockable, ExtendedMode mode ){ if( transferFocusOnMinimize ){ if( mode == ExtendedMode.MINIMIZED ){ Dockable[] history = getController().getFocusHistory().getHistory(); for( int i = history.length-1; i >= 0; i-- ){ Dockable next = history[i]; if( next instanceof CommonDockable ){ CDockable cdockable = ((CommonDockable)next).getDockable(); if( cdockable.getExtendedMode() != ExtendedMode.MINIMIZED ){ getController().setFocusedDockable( cdockable.intern(), true ); break; } } } } } } });
@Override public void extendedModeChanged( CDockable dockable, ExtendedMode mode ){ if( transferFocusOnMinimize ){ if( mode == ExtendedMode.MINIMIZED ){ Dockable[] history = getController().getFocusHistory().getHistory(); for( int i = history.length-1; i >= 0; i-- ){ Dockable next = history[i]; if( next instanceof CommonDockable ){ CDockable cdockable = ((CommonDockable)next).getDockable(); if( cdockable.getExtendedMode() != ExtendedMode.MINIMIZED ){ getController().setFocusedDockable( cdockable.intern(), true ); break; } } } } } } });
Dockable[] focusHistory = getController().getFocusHistory().getHistory(); boolean changes = locationManager.ensureBasicModes();
Dockable[] focusHistory = getController().getFocusHistory().getHistory(); boolean changes = locationManager.ensureBasicModes();
Dockable[] history = control.getOwner().getController().getFocusHistory().getHistory(); for( int i = history.length-1; i >= 0; i-- ){ Dockable next = history[i];
Dockable[] history = control.getOwner().getController().getFocusHistory().getHistory(); for( int i = history.length-1; i >= 0; i-- ){ Dockable next = history[i];