Bug 275018 [Markers] Problems View / Configure Contents dialog should support rename
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/FiltersConfigurationDialog.java
private void createNewFilter(String newName,boolean cloneSelected) {
		MarkerFieldFilterGroup group = new MarkerFieldFilterGroup(null, builder);
		if(cloneSelected&&selectedFilterGroup!=null){
			captureStateInto(group); 
		}
		group.setName(newName);
		filterGroups.add(group);
		filtersList.refresh();
		filtersList.setSelection(new StructuredSelection(group));
		filtersList.setChecked(group, true);
		updateAndOrEnblement();
	}
	/**
	 * Enable/disable 'and', 'or' buttons
	 */
	private void updateAndOrEnblement() {
		if(filtersList.getCheckedElements().length==0){
			andOrLabel.setEnabled(false);
			andButton.setEnabled(false);
			orButton.setEnabled(false);
		}else{
			andOrLabel.setEnabled(true);
			andButton.setEnabled(true);
			orButton.setEnabled(true);
		}
	}
	/**
	 * Return the dialog settings for the receiver.
	 * 
	 * @return IDialogSettings