Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 171551 Details for
Bug 297957
[API][Printing] Allow copy of PrinterData object
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch
patch.txt (text/plain), 2.18 KB, created by
Carolyn MacLeod
on 2010-06-09 12:56:30 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Carolyn MacLeod
Created:
2010-06-09 12:56:30 EDT
Size:
2.18 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.swt >Index: Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java,v >retrieving revision 1.528 >diff -u -r1.528 StyledText.java >--- Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java 31 May 2010 16:44:12 -0000 1.528 >+++ Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java 9 Jun 2010 16:55:10 -0000 >@@ -205,6 +205,7 @@ > int pageWidth; // width of a printer page in pixels > int startPage; // first page to print > int endPage; // last page to print >+ int scope; // scope of print job > int startLine; // first (wrapped) line to print > int endLine; // last (wrapped) line to print > boolean singleLine; // widget single line mode >@@ -230,7 +231,8 @@ > startPage = 1; > endPage = Integer.MAX_VALUE; > PrinterData data = printer.getPrinterData(); >- if (data.scope == PrinterData.PAGE_RANGE) { >+ scope = data.scope; >+ if (scope == PrinterData.PAGE_RANGE) { > startPage = data.startPage; > endPage = data.endPage; > if (endPage < startPage) { >@@ -238,7 +240,7 @@ > endPage = startPage; > startPage = temp; > } >- } else if (data.scope == PrinterData.SELECTION) { >+ } else if (scope == PrinterData.SELECTION) { > selection = styledText.getSelectionRange(); > } > printerRenderer = new StyledTextRenderer(printer, null); >@@ -438,10 +440,10 @@ > startLine = 0; > endLine = singleLine ? 0 : content.getLineCount() - 1; > PrinterData data = printer.getPrinterData(); >- if (data.scope == PrinterData.PAGE_RANGE) { >+ if (scope == PrinterData.PAGE_RANGE) { > int pageSize = clientArea.height / lineHeight;//WRONG > startLine = (startPage - 1) * pageSize; >- } else if (data.scope == PrinterData.SELECTION) { >+ } else if (scope == PrinterData.SELECTION) { > startLine = content.getLineAtOffset(selection.x); > if (selection.y > 0) { > endLine = content.getLineAtOffset(selection.x + selection.y - 1);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
daniel_megert
:
review+
Actions:
View
|
Diff
Attachments on
bug 297957
: 171551