Unable to use print functionality with StyledText #493
Github-Satya-BMC
started this conversation in
General
Replies: 1 comment 1 reply
-
That's something you can and should check yourself. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are overriding org.eclipse.jface.action.Action for a PrintAction to print my custom editor text in the detailed style manner(margin, line numbering, text coloring and styling etc).
This was working perfectly with earlier versions(Version: Photon release (4.8.0)) of eclipse, however in later version(Version: 2020-09 (4.17.0)) we are getting an exception shared below:
Caused by: java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:4704)
at org.eclipse.swt.SWT.error(SWT.java:4638)
at org.eclipse.swt.SWT.error(SWT.java:4609)
at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:10229)
at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:10444)
My question here is:
Is there any changes to Version: 2020-09 (4.17.0) with regards to
setStyleRanges(StyleRange[] ranges) method ?
Beta Was this translation helpful? Give feedback.
All reactions