code: private void updateButtonIconsAndStates(Canvas[] toolStripMembers) {
  		for (Canvas toolStripMember : toolStripMembers) {
  			if (toolStripMember instanceof LayerTreeModalButton) {
  				((LayerTreeModalButton) toolStripMember).update();
  			} else if (toolStripMember instanceof LayerTreeButton) {
  				((LayerTreeButton) toolStripMember).update();
  			}
  		}
  	}
docs: Updates the icons and the state of the buttons in the toolbar based upon the currently selected layer
  
  @param toolStripMembers
  data for the toolbar