View | Details | Raw Unified | Return to bug 267427 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jface/text/TextViewer.java (+14 lines)
Lines 1512-1517 Link Here
1512
	 * @since 3.1
1512
	 * @since 3.1
1513
	 */
1513
	 */
1514
	private static final String SELECTION_POSITION_CATEGORY= "_textviewer_selection_category"; //$NON-NLS-1$
1514
	private static final String SELECTION_POSITION_CATEGORY= "_textviewer_selection_category"; //$NON-NLS-1$
1515
1516
	/**
1517
	 * The printer data.
1518
	 * 
1519
	 * @since 3.6
1520
	 */
1521
	private static PrinterData fgPrinterData= null;
1522
1515
	/** The viewer's text widget */
1523
	/** The viewer's text widget */
1516
	private StyledText fTextWidget;
1524
	private StyledText fTextWidget;
1517
	/** The viewer's input document */
1525
	/** The viewer's input document */
Lines 4504-4509 Link Here
4504
		}
4512
		}
4505
4513
4506
		final PrintDialog dialog= new PrintDialog(shell, SWT.PRIMARY_MODAL);
4514
		final PrintDialog dialog= new PrintDialog(shell, SWT.PRIMARY_MODAL);
4515
		dialog.setPrinterData(fgPrinterData);
4507
		final PrinterData data= dialog.open();
4516
		final PrinterData data= dialog.open();
4508
4517
4509
		if (data != null) {
4518
		if (data != null) {
Lines 4517-4522 Link Here
4517
				}
4526
				}
4518
			};
4527
			};
4519
			printingThread.start();
4528
			printingThread.start();
4529
			fgPrinterData= data;
4530
			fgPrinterData.startPage= 1;
4531
			fgPrinterData.endPage= 1;
4532
			fgPrinterData.scope= PrinterData.ALL_PAGES;
4533
			fgPrinterData.copyCount= 1;
4520
		}
4534
		}
4521
	}
4535
	}
4522
4536

Return to bug 267427