Bug 39906 Add Constructurs from field: Should not show static fields
20030711 Static fields are usually not initialized in constructors
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/CreateNewConstructorAction.java
return true;
		if ((selection.size() == 1) && (selection.getFirstElement() instanceof IType)) {
			IType type= (IType) selection.getFirstElement();
			return type.getCompilationUnit() != null && type.isClass(); 
		}
		if ((selection.size() == 1) && (selection.getFirstElement() instanceof ICompilationUnit))
			return true;
		return false;
	}
	
	/* (non-Javadoc)
	 * Method declared on SelectionDispatchAction
	 */
	public void run(IStructuredSelection selection) {
		try {
			IField[] selectedFields= getSelectedFields(selection);
			
			IEditorPart editor= null;
			if (selectedFields != null)
				editor= EditorUtility.openInEditor(selectedFields[0]);			
			else
				editor= EditorUtility.openInEditor(getSelectedType(selection).getCompilationUnit());	
			
			if (canRunOn(selectedFields)){
				run((IType)EditorUtility.getWorkingCopy(selectedFields[0].getDeclaringType()), selectedFields, editor, false);
				return;
			}	
			Object firstElement= selection.getFirstElement();
			if (firstElement instanceof IType)
				run((IType)EditorUtility.getWorkingCopy((IType)firstElement), new IField[0], editor, false);