Bug 41491 Add constructors from fields issues
200300813 a. add visibility buttons like 'Add constructor from super class'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateNewConstructorUsingFieldsAction.java
return;
		}
		IField[] selected= null;
		int dialogResult= dialog.open();
		if (dialogResult == Window.OK) {
			Object[] checkedElements= dialog.getResult();
			if (checkedElements == null)
				return;
			ArrayList result= new ArrayList(checkedElements.length);
			for (int i= 0; i < checkedElements.length; i++) {
				Object curr= checkedElements[i];
				if (curr instanceof IField) {
					result.add(curr);
				}
			}
			selected= (IField[]) result.toArray(new IField[result.size()]);
			CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();
			settings.createComments= dialog.getGenerateComment();
			IJavaElement elementPosition= dialog.getElementPosition();
			int superIndex= dialog.getSuperIndex();
			AddCustomConstructorOperation op= new AddCustomConstructorOperation(type, settings, selected, false, elementPosition, dialog.getSuperConstructors()[superIndex]);
			
			if (dialog.getSuperConstructors()[dialog.getSuperIndex()].getParameterNames().length == 0)
				op.setOmitSuper(dialog.isOmitSuper());
			IRewriteTarget target= editor != null ? (IRewriteTarget) editor.getAdapter(IRewriteTarget.class) : null;
			if (target != null) {
				target.beginCompoundChange();
			}
			try {
				IRunnableContext context= JavaPlugin.getActiveWorkbenchWindow();