protected void createDependency(final Button master, final Control[] slaves) { Assert.isTrue(slaves.length > 0); indent(slaves[0]); SelectionListener listener= new SelectionListener() { public void widgetSelected(SelectionEvent e) { boolean state= master.getSelection(); for (int i= 0; i < slaves.length; i++) { slaves[i].setEnabled(state); } }  public void widgetDefaultSelected(SelectionEvent e) {} }; master.addSelectionListener(listener); fMasterSlaveListeners.add(listener);
protected void createDependency(final Button master, final Control slave) { createDependency(master, new Control[] {slave});
	protected void createDependency(final Button master, final Control[] slaves) {		Assert.isTrue(slaves.length > 0);		indent(slaves[0]);		SelectionListener listener= new SelectionListener() {			public void widgetSelected(SelectionEvent e) {				boolean state= master.getSelection();				for (int i= 0; i < slaves.length; i++) {					slaves[i].setEnabled(state);				}			}			public void widgetDefaultSelected(SelectionEvent e) {}		};		master.addSelectionListener(listener);		fMasterSlaveListeners.add(listener);	}