|
Removed
Link Here
|
| 1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2004 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Common Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* http://www.eclipse.org/legal/cpl-v10.html |
| 7 |
* |
| 8 |
* Contributors: |
| 9 |
* IBM Corporation - initial API and implementation |
| 10 |
*******************************************************************************/ |
| 11 |
package org.eclipse.ui.internal.progress; |
| 12 |
|
| 13 |
import java.util.ArrayList; |
| 14 |
import java.util.Collection; |
| 15 |
|
| 16 |
import org.eclipse.core.runtime.IStatus; |
| 17 |
import org.eclipse.jface.dialogs.Dialog; |
| 18 |
import org.eclipse.jface.dialogs.ErrorDialog; |
| 19 |
import org.eclipse.jface.dialogs.IDialogConstants; |
| 20 |
import org.eclipse.jface.resource.JFaceResources; |
| 21 |
import org.eclipse.jface.viewers.IContentProvider; |
| 22 |
import org.eclipse.jface.viewers.ILabelProviderListener; |
| 23 |
import org.eclipse.jface.viewers.ISelection; |
| 24 |
import org.eclipse.jface.viewers.ISelectionChangedListener; |
| 25 |
import org.eclipse.jface.viewers.IStructuredContentProvider; |
| 26 |
import org.eclipse.jface.viewers.IStructuredSelection; |
| 27 |
import org.eclipse.jface.viewers.ITableLabelProvider; |
| 28 |
import org.eclipse.jface.viewers.SelectionChangedEvent; |
| 29 |
import org.eclipse.jface.viewers.TableViewer; |
| 30 |
import org.eclipse.jface.viewers.Viewer; |
| 31 |
import org.eclipse.jface.viewers.ViewerSorter; |
| 32 |
import org.eclipse.swt.SWT; |
| 33 |
import org.eclipse.swt.dnd.Clipboard; |
| 34 |
import org.eclipse.swt.dnd.TextTransfer; |
| 35 |
import org.eclipse.swt.dnd.Transfer; |
| 36 |
import org.eclipse.swt.events.DisposeEvent; |
| 37 |
import org.eclipse.swt.events.DisposeListener; |
| 38 |
import org.eclipse.swt.events.MouseAdapter; |
| 39 |
import org.eclipse.swt.events.MouseEvent; |
| 40 |
import org.eclipse.swt.events.SelectionAdapter; |
| 41 |
import org.eclipse.swt.events.SelectionEvent; |
| 42 |
import org.eclipse.swt.events.SelectionListener; |
| 43 |
import org.eclipse.swt.graphics.Image; |
| 44 |
import org.eclipse.swt.graphics.Rectangle; |
| 45 |
import org.eclipse.swt.layout.GridData; |
| 46 |
import org.eclipse.swt.widgets.Button; |
| 47 |
import org.eclipse.swt.widgets.Composite; |
| 48 |
import org.eclipse.swt.widgets.Control; |
| 49 |
import org.eclipse.swt.widgets.List; |
| 50 |
import org.eclipse.swt.widgets.Menu; |
| 51 |
import org.eclipse.swt.widgets.MenuItem; |
| 52 |
import org.eclipse.swt.widgets.Shell; |
| 53 |
|
| 54 |
/** |
| 55 |
* The ErrorNotificationDialog is is the dialog that comes up when an error has |
| 56 |
* occured. |
| 57 |
*/ |
| 58 |
public class ErrorNotificationDialog extends Dialog { |
| 59 |
TableViewer errorViewer; |
| 60 |
|
| 61 |
Button clearButton; |
| 62 |
|
| 63 |
List detailsList; |
| 64 |
|
| 65 |
private Clipboard clipboard; |
| 66 |
|
| 67 |
private ErrorInfo selectedError = null; |
| 68 |
|
| 69 |
/** |
| 70 |
* Reserve room for this many details list items. |
| 71 |
*/ |
| 72 |
private static final int DETAILS_LIST_ITEM_COUNT = 7; |
| 73 |
|
| 74 |
/** |
| 75 |
* The nesting indent. |
| 76 |
*/ |
| 77 |
private static final String NESTING_INDENT = " "; //$NON-NLS-1$ |
| 78 |
|
| 79 |
/** |
| 80 |
* Create a new instance of the receiver. |
| 81 |
* |
| 82 |
* @param parentShell |
| 83 |
*/ |
| 84 |
public ErrorNotificationDialog(Shell parentShell) { |
| 85 |
super(parentShell == null ? ProgressManagerUtil.getDefaultParent() |
| 86 |
: parentShell); |
| 87 |
setBlockOnOpen(false); |
| 88 |
setShellStyle(SWT.CLOSE | SWT.MODELESS | SWT.BORDER | SWT.TITLE |
| 89 |
| SWT.RESIZE | getDefaultOrientation()); |
| 90 |
} |
| 91 |
|
| 92 |
/* |
| 93 |
* (non-Javadoc) |
| 94 |
* |
| 95 |
* @see org.eclipse.jface.window.Window#configureShell(org.eclipse.swt.widgets.Shell) |
| 96 |
*/ |
| 97 |
protected void configureShell(Shell newShell) { |
| 98 |
super.configureShell(newShell); |
| 99 |
newShell.setText(ProgressMessages |
| 100 |
.getString("ErrorNotificationDialog.ErrorNotificationTitle")); //$NON-NLS-1$ |
| 101 |
newShell.addDisposeListener(new DisposeListener() { |
| 102 |
/* |
| 103 |
* (non-Javadoc) |
| 104 |
* |
| 105 |
* @see org.eclipse.swt.events.DisposeListener#widgetDisposed(org.eclipse.swt.events.DisposeEvent) |
| 106 |
*/ |
| 107 |
public void widgetDisposed(DisposeEvent e) { |
| 108 |
getManager().clearDialog(); |
| 109 |
} |
| 110 |
}); |
| 111 |
} |
| 112 |
|
| 113 |
/* |
| 114 |
* (non-Javadoc) |
| 115 |
* |
| 116 |
* @see org.eclipse.jface.window.Window#getShellStyle() |
| 117 |
*/ |
| 118 |
protected int getShellStyle() { |
| 119 |
return super.getShellStyle() | SWT.MIN; |
| 120 |
} |
| 121 |
|
| 122 |
/* |
| 123 |
* (non-Javadoc) |
| 124 |
* |
| 125 |
* @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite) |
| 126 |
*/ |
| 127 |
protected Control createDialogArea(Composite parent) { |
| 128 |
initializeDialogUnits(parent); |
| 129 |
Composite topArea = (Composite) super.createDialogArea(parent); |
| 130 |
errorViewer = new TableViewer(topArea, SWT.MULTI | SWT.H_SCROLL |
| 131 |
| SWT.V_SCROLL | SWT.BORDER); |
| 132 |
errorViewer.setSorter(getViewerSorter()); |
| 133 |
errorViewer.getControl().addMouseListener(new MouseAdapter() { |
| 134 |
/* |
| 135 |
* (non-Javadoc) |
| 136 |
* |
| 137 |
* @see org.eclipse.swt.events.MouseAdapter#mouseDoubleClick(org.eclipse.swt.events.MouseEvent) |
| 138 |
*/ |
| 139 |
public void mouseDoubleClick(MouseEvent e) { |
| 140 |
openErrorDialog(); |
| 141 |
} |
| 142 |
}); |
| 143 |
errorViewer |
| 144 |
.addSelectionChangedListener(new ISelectionChangedListener() { |
| 145 |
public void selectionChanged(SelectionChangedEvent event) { |
| 146 |
|
| 147 |
clearButton.setEnabled(!errorViewer.getSelection() |
| 148 |
.isEmpty()); |
| 149 |
setDetailsContents(); |
| 150 |
} |
| 151 |
}); |
| 152 |
Control control = errorViewer.getControl(); |
| 153 |
GridData data = new GridData(GridData.FILL_BOTH |
| 154 |
| GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL); |
| 155 |
data.widthHint = convertWidthInCharsToPixels(60); |
| 156 |
data.heightHint = convertHeightInCharsToPixels(10); |
| 157 |
control.setLayoutData(data); |
| 158 |
initContentProvider(); |
| 159 |
initLabelProvider(); |
| 160 |
applyDialogFont(parent); |
| 161 |
|
| 162 |
createDetailsList(topArea); |
| 163 |
return topArea; |
| 164 |
} |
| 165 |
|
| 166 |
/* |
| 167 |
* (non-Javadoc) |
| 168 |
* |
| 169 |
* @see org.eclipse.jface.dialogs.Dialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite) |
| 170 |
*/ |
| 171 |
protected void createButtonsForButtonBar(Composite parent) { |
| 172 |
|
| 173 |
clearButton = createButton( |
| 174 |
parent, |
| 175 |
IDialogConstants.CLIENT_ID + 2, |
| 176 |
ProgressMessages |
| 177 |
.getString("ErrorNotificationDialog.ClearButtonTitle"), false); //$NON-NLS-1$ |
| 178 |
clearButton.setEnabled(false); |
| 179 |
clearButton.addSelectionListener(new SelectionAdapter() { |
| 180 |
public void widgetSelected(SelectionEvent e) { |
| 181 |
ISelection rawSelection = errorViewer.getSelection(); |
| 182 |
if (rawSelection != null |
| 183 |
&& rawSelection instanceof IStructuredSelection) { |
| 184 |
IStructuredSelection selection = (IStructuredSelection) rawSelection; |
| 185 |
getManager().removeErrors(selection.toList()); |
| 186 |
} |
| 187 |
refresh(); |
| 188 |
} |
| 189 |
}); |
| 190 |
Button button = createButton(parent, IDialogConstants.CLOSE_ID, |
| 191 |
IDialogConstants.CLOSE_LABEL, true); |
| 192 |
button.addSelectionListener(new SelectionListener() { |
| 193 |
/* |
| 194 |
* (non-Javadoc) |
| 195 |
* |
| 196 |
* @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) |
| 197 |
*/ |
| 198 |
public void widgetSelected(SelectionEvent e) { |
| 199 |
close(); |
| 200 |
} |
| 201 |
|
| 202 |
/* |
| 203 |
* (non-Javadoc) |
| 204 |
* |
| 205 |
* @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent) |
| 206 |
*/ |
| 207 |
public void widgetDefaultSelected(SelectionEvent e) { |
| 208 |
close(); |
| 209 |
} |
| 210 |
}); |
| 211 |
} |
| 212 |
|
| 213 |
/** |
| 214 |
* Return a viewer sorter for looking at the jobs. |
| 215 |
* |
| 216 |
* @return |
| 217 |
*/ |
| 218 |
private ViewerSorter getViewerSorter() { |
| 219 |
return new ViewerSorter() { |
| 220 |
/* |
| 221 |
* (non-Javadoc) |
| 222 |
* |
| 223 |
* @see org.eclipse.jface.viewers.ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, |
| 224 |
* java.lang.Object, java.lang.Object) |
| 225 |
*/ |
| 226 |
public int compare(Viewer testViewer, Object e1, Object e2) { |
| 227 |
return ((Comparable) e1).compareTo(e2); |
| 228 |
} |
| 229 |
}; |
| 230 |
} |
| 231 |
|
| 232 |
/** |
| 233 |
* Sets the content provider for the viewer. |
| 234 |
*/ |
| 235 |
protected void initContentProvider() { |
| 236 |
IContentProvider provider = new IStructuredContentProvider() { |
| 237 |
/* |
| 238 |
* (non-Javadoc) |
| 239 |
* |
| 240 |
* @see org.eclipse.jface.viewers.IContentProvider#dispose() |
| 241 |
*/ |
| 242 |
public void dispose() { |
| 243 |
//Nothing of interest here |
| 244 |
} |
| 245 |
|
| 246 |
/* |
| 247 |
* (non-Javadoc) |
| 248 |
* |
| 249 |
* @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) |
| 250 |
*/ |
| 251 |
public Object[] getElements(Object inputElement) { |
| 252 |
return getManager().getErrors().toArray(); |
| 253 |
} |
| 254 |
|
| 255 |
/* |
| 256 |
* (non-Javadoc) |
| 257 |
* |
| 258 |
* @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, |
| 259 |
* java.lang.Object, java.lang.Object) |
| 260 |
*/ |
| 261 |
public void inputChanged(Viewer viewer, Object oldInput, |
| 262 |
Object newInput) { |
| 263 |
if (newInput != null) |
| 264 |
refresh(); |
| 265 |
} |
| 266 |
}; |
| 267 |
errorViewer.setContentProvider(provider); |
| 268 |
errorViewer.setInput(getManager()); |
| 269 |
} |
| 270 |
|
| 271 |
/** |
| 272 |
* Get the notificationManager that this is being created for. |
| 273 |
* |
| 274 |
* @return |
| 275 |
*/ |
| 276 |
private ErrorNotificationManager getManager() { |
| 277 |
return ProgressManager.getInstance().errorManager; |
| 278 |
} |
| 279 |
|
| 280 |
/** |
| 281 |
* Refresh the contents of the viewer. |
| 282 |
*/ |
| 283 |
void refresh() { |
| 284 |
errorViewer.refresh(); |
| 285 |
} |
| 286 |
|
| 287 |
private void initLabelProvider() { |
| 288 |
ITableLabelProvider provider = new ITableLabelProvider() { |
| 289 |
/* |
| 290 |
* (non-Javadoc) |
| 291 |
* |
| 292 |
* @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener) |
| 293 |
*/ |
| 294 |
public void addListener(ILabelProviderListener listener) { |
| 295 |
//Do nothing |
| 296 |
} |
| 297 |
|
| 298 |
/* |
| 299 |
* (non-Javadoc) |
| 300 |
* |
| 301 |
* @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose() |
| 302 |
*/ |
| 303 |
public void dispose() { |
| 304 |
//Do nothing |
| 305 |
} |
| 306 |
|
| 307 |
/* |
| 308 |
* (non-Javadoc) |
| 309 |
* |
| 310 |
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, |
| 311 |
* int) |
| 312 |
*/ |
| 313 |
public Image getColumnImage(Object element, int columnIndex) { |
| 314 |
return JFaceResources.getImageRegistry().get( |
| 315 |
ErrorNotificationManager.ERROR_JOB_KEY); |
| 316 |
} |
| 317 |
|
| 318 |
/* |
| 319 |
* (non-Javadoc) |
| 320 |
* |
| 321 |
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, |
| 322 |
* int) |
| 323 |
*/ |
| 324 |
public String getColumnText(Object element, int columnIndex) { |
| 325 |
return ((ErrorInfo) element).getDisplayString(); |
| 326 |
} |
| 327 |
|
| 328 |
/* |
| 329 |
* (non-Javadoc) |
| 330 |
* |
| 331 |
* @see org.eclipse.jface.viewers.IBaseLabelProvider#isLabelProperty(java.lang.Object, |
| 332 |
* java.lang.String) |
| 333 |
*/ |
| 334 |
public boolean isLabelProperty(Object element, String property) { |
| 335 |
return false; |
| 336 |
} |
| 337 |
|
| 338 |
/* |
| 339 |
* (non-Javadoc) |
| 340 |
* |
| 341 |
* @see org.eclipse.jface.viewers.IBaseLabelProvider#removeListener(org.eclipse.jface.viewers.ILabelProviderListener) |
| 342 |
*/ |
| 343 |
public void removeListener(ILabelProviderListener listener) { |
| 344 |
//Do nothing |
| 345 |
} |
| 346 |
}; |
| 347 |
errorViewer.setLabelProvider(provider); |
| 348 |
} |
| 349 |
|
| 350 |
/** |
| 351 |
* Open the error dialog on the current selection. |
| 352 |
*/ |
| 353 |
private void openErrorDialog() { |
| 354 |
ErrorInfo element = getSingleSelection(); |
| 355 |
if (element == null) |
| 356 |
return; |
| 357 |
ErrorDialog.openError(getShell(), element.getDisplayString(), null, |
| 358 |
element.getErrorStatus()); |
| 359 |
} |
| 360 |
|
| 361 |
/** |
| 362 |
* Get the single selection. Return null if the selection is not just one |
| 363 |
* element. |
| 364 |
* |
| 365 |
* @return ErrorInfo or <code>null</code>. |
| 366 |
*/ |
| 367 |
private ErrorInfo getSingleSelection() { |
| 368 |
ISelection rawSelection = errorViewer.getSelection(); |
| 369 |
if (rawSelection != null |
| 370 |
&& rawSelection instanceof IStructuredSelection) { |
| 371 |
IStructuredSelection selection = (IStructuredSelection) rawSelection; |
| 372 |
if (selection.size() == 1) |
| 373 |
return (ErrorInfo) selection.getFirstElement(); |
| 374 |
} |
| 375 |
return null; |
| 376 |
} |
| 377 |
|
| 378 |
/* |
| 379 |
* (non-Javadoc) |
| 380 |
* |
| 381 |
* @see org.eclipse.jface.dialogs.Dialog#close() |
| 382 |
*/ |
| 383 |
public boolean close() { |
| 384 |
getManager().clearAllErrors(); |
| 385 |
Rectangle shellPosition = getShell().getBounds(); |
| 386 |
boolean result = super.close(); |
| 387 |
ProgressManagerUtil.animateDown(shellPosition); |
| 388 |
return result; |
| 389 |
} |
| 390 |
|
| 391 |
/* |
| 392 |
* (non-Javadoc) |
| 393 |
* |
| 394 |
* @see org.eclipse.jface.dialogs.Dialog#initializeBounds() |
| 395 |
*/ |
| 396 |
protected void initializeBounds() { |
| 397 |
super.initializeBounds(); |
| 398 |
Rectangle shellPosition = getShell().getBounds(); |
| 399 |
ProgressManagerUtil.animateUp(shellPosition); |
| 400 |
} |
| 401 |
|
| 402 |
/** |
| 403 |
* Create this dialog's drop-down list component. |
| 404 |
* |
| 405 |
* @param detailsParent |
| 406 |
* the parent composite |
| 407 |
*/ |
| 408 |
private void createDetailsList(Composite detailsParent) { |
| 409 |
// create the list |
| 410 |
detailsList = new List(detailsParent, SWT.BORDER | SWT.H_SCROLL |
| 411 |
| SWT.V_SCROLL | SWT.MULTI); |
| 412 |
|
| 413 |
GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL |
| 414 |
| GridData.GRAB_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL |
| 415 |
| GridData.GRAB_VERTICAL); |
| 416 |
data.heightHint = detailsList.getItemHeight() * DETAILS_LIST_ITEM_COUNT; |
| 417 |
data.horizontalSpan = 2; |
| 418 |
detailsList.setLayoutData(data); |
| 419 |
Menu copyMenu = new Menu(detailsList); |
| 420 |
MenuItem copyItem = new MenuItem(copyMenu, SWT.NONE); |
| 421 |
copyItem.addSelectionListener(new SelectionListener() { |
| 422 |
/* |
| 423 |
* @see SelectionListener.widgetSelected (SelectionEvent) |
| 424 |
*/ |
| 425 |
public void widgetSelected(SelectionEvent e) { |
| 426 |
copyToClipboard(); |
| 427 |
} |
| 428 |
|
| 429 |
/* |
| 430 |
* @see SelectionListener.widgetDefaultSelected(SelectionEvent) |
| 431 |
*/ |
| 432 |
public void widgetDefaultSelected(SelectionEvent e) { |
| 433 |
copyToClipboard(); |
| 434 |
} |
| 435 |
}); |
| 436 |
copyItem.setText(JFaceResources.getString("copy")); //$NON-NLS-1$ |
| 437 |
detailsList.setMenu(copyMenu); |
| 438 |
} |
| 439 |
|
| 440 |
/** |
| 441 |
* Set the contents of the details list to be the status from the selected |
| 442 |
* error. |
| 443 |
*/ |
| 444 |
private void setDetailsContents() { |
| 445 |
|
| 446 |
Collection statusList = new ArrayList(); |
| 447 |
|
| 448 |
ErrorInfo info = getSingleSelection(); |
| 449 |
|
| 450 |
if (info != null) { |
| 451 |
selectedError = info; |
| 452 |
statusList.add(selectedError.getErrorStatus().getMessage()); |
| 453 |
if (selectedError.getErrorStatus().getException() != null) { |
| 454 |
Throwable exception = selectedError.getErrorStatus() |
| 455 |
.getException(); |
| 456 |
statusList.add(exception.toString()); |
| 457 |
StackTraceElement[] elements = exception.getStackTrace(); |
| 458 |
for (int i = 0; i < elements.length; i++) { |
| 459 |
statusList.add(elements[i].toString()); |
| 460 |
} |
| 461 |
} |
| 462 |
IStatus[] statuses = (selectedError.getErrorStatus().getChildren()); |
| 463 |
for (int i = 0; i < statuses.length; i++) { |
| 464 |
statusList.add(NESTING_INDENT + statuses[i].getMessage()); |
| 465 |
} |
| 466 |
} |
| 467 |
|
| 468 |
String[] items = new String[statusList.size()]; |
| 469 |
statusList.toArray(items); |
| 470 |
|
| 471 |
detailsList.setItems(items); |
| 472 |
|
| 473 |
} |
| 474 |
|
| 475 |
/** |
| 476 |
* Copy the contents of the statuses to the clipboard. |
| 477 |
*/ |
| 478 |
private void copyToClipboard() { |
| 479 |
|
| 480 |
if (selectedError == null) |
| 481 |
return; |
| 482 |
|
| 483 |
if (clipboard != null) |
| 484 |
clipboard.dispose(); |
| 485 |
|
| 486 |
StringBuffer statusBuffer = new StringBuffer(); |
| 487 |
populateCopyBuffer(selectedError.getErrorStatus(), statusBuffer, 0); |
| 488 |
clipboard = new Clipboard(detailsList.getDisplay()); |
| 489 |
clipboard.setContents(new Object[] { statusBuffer.toString() }, |
| 490 |
new Transfer[] { TextTransfer.getInstance() }); |
| 491 |
} |
| 492 |
|
| 493 |
/** |
| 494 |
* Put the details of the status of the error onto the stream. |
| 495 |
* |
| 496 |
* @param buildingStatus |
| 497 |
* @param buffer |
| 498 |
* @param nesting |
| 499 |
*/ |
| 500 |
private void populateCopyBuffer(IStatus buildingStatus, |
| 501 |
StringBuffer buffer, int nesting) { |
| 502 |
|
| 503 |
for (int i = 0; i < nesting; i++) { |
| 504 |
buffer.append(NESTING_INDENT); //$NON-NLS-1$ |
| 505 |
} |
| 506 |
buffer.append(buildingStatus.getMessage()); |
| 507 |
|
| 508 |
if (buildingStatus.getException() != null) { |
| 509 |
Throwable exception = buildingStatus.getException(); |
| 510 |
buffer.append("\n"); //$NON-NLS-1$ |
| 511 |
buffer.append(exception.toString()); |
| 512 |
StackTraceElement[] elements = exception.getStackTrace(); |
| 513 |
for (int i = 0; i < elements.length; i++) { |
| 514 |
buffer.append("\n"); //$NON-NLS-1$ |
| 515 |
buffer.append(elements[i].toString()); |
| 516 |
|
| 517 |
} |
| 518 |
} |
| 519 |
|
| 520 |
buffer.append("\n"); //$NON-NLS-1$ |
| 521 |
IStatus[] children = buildingStatus.getChildren(); |
| 522 |
for (int i = 0; i < children.length; i++) { |
| 523 |
populateCopyBuffer(children[i], buffer, nesting + 1); |
| 524 |
} |
| 525 |
} |
| 526 |
} |