run(JavaElementUtil.getMainType((ICompilationUnit)firstElement), new IField[0], true);
run(JavaElementUtil.getMainType((ICompilationUnit)firstElement), new IField[0]);
	protected void run(IStructuredSelection selection) {		try {			IField[] selectedFields= getSelectedFields(selection);			if (canEnableOn(selectedFields)){				run(selectedFields[0].getDeclaringType(), selectedFields, false);				return;			}				Object firstElement= selection.getFirstElement();			if (firstElement instanceof IType)				run((IType)firstElement, new IField[0], true);			else if (firstElement instanceof ICompilationUnit)					run(JavaElementUtil.getMainType((ICompilationUnit)firstElement), new IField[0], true);		} catch (CoreException e) {			JavaPlugin.log(e.getStatus());			showError(ActionMessages.getString("AddGetterSetterAction.error.actionfailed")); //$NON-NLS-1$		}					}