private void updateActionSource( boolean force ){ boolean showChildren = behavior.isShowChildren(); boolean showActions = behavior.isShowActions(); boolean filterActions = behavior.isFilterActions(); if( force || this.showChildren != showChildren || this.showActions != showActions || this.filterActions != filterActions ){ allActionsSource.removeAll(); if( showChildren ){ allActionsSource.add( getChildrenActionSourceFor( getDockable() ) ); } if( showActions ){ if( filterActions ){ allActionsSource.add( createFilter( getDefaultActionSourceFor( getDockable() ) ) ); } else{ allActionsSource.add( getDefaultActionSourceFor( getDockable() ) ); } } this.showChildren = showChildren; this.showActions = showActions; } }
private void updateActionSource( boolean force ){ boolean showChildren = behavior.isShowChildren(); boolean showActions = behavior.isShowActions(); boolean filterActions = behavior.isFilterActions(); if( force || this.showChildren != showChildren || this.showActions != showActions || this.filterActions != filterActions ){ allActionsSource.removeAll(); if( showChildren ){ allActionsSource.add( getChildrenActionSourceFor( getDockable() ) ); } if( showActions ){ if( filterActions ){ allActionsSource.add( createFilter( getDefaultActionSourceFor( getDockable() ) ) ); } else{ allActionsSource.add( getDefaultActionSourceFor( getDockable() ) ); } } this.showChildren = showChildren; this.showActions = showActions; } }
private void updateActionSource( boolean force ){ boolean showChildren = behavior.isShowChildren(); boolean showActions = behavior.isShowActions(); boolean filterActions = behavior.isFilterActions(); if( force || this.showChildren != showChildren || this.showActions != showActions || this.filterActions != filterActions ){ allActionsSource.removeAll(); if( showChildren ){ allActionsSource.add( getChildrenActionSourceFor( getDockable() ) ); } if( showActions ){ if( filterActions ){ allActionsSource.add( createFilter( getDefaultActionSourceFor( getDockable() ) ) ); } else{ allActionsSource.add( getDefaultActionSourceFor( getDockable() ) ); } } this.showChildren = showChildren; this.showActions = showActions; } }