/** * Adds or removes the only action of this source depending on the result * of {@link FlapLayoutManager#isHoldSwitchable(FlapDockStation, Dockable)}. */ public void updateHoldSwitchable(){ if( station.getCurrentFlapLayoutManager().isHoldSwitchable( station, dockable ) ){ if( getDockActionCount() == 0 && holdAction != null ){ add( holdAction ); } } else{ removeAll(); } } }
/** * Adds or removes the only action of this source depending on the result * of {@link FlapLayoutManager#isHoldSwitchable(FlapDockStation, Dockable)}. */ public void updateHoldSwitchable(){ if( station.getCurrentFlapLayoutManager().isHoldSwitchable( station, dockable ) ){ if( getDockActionCount() == 0 && holdAction != null ){ add( holdAction ); } } else{ removeAll(); } } }