diff options
author | Eric Williams | 2019-11-08 15:35:12 +0000 |
---|---|---|
committer | Eric Williams | 2019-11-08 15:37:00 +0000 |
commit | 1af84db9d9097f2c1d4b3b33cc3dc258334486cb (patch) | |
tree | 956a36879afd5cfbc613ab58cee90f9d9bde3ba7 | |
parent | 330cb49b609730cadb9427e948ee0c6ed0d3e803 (diff) | |
download | eclipse.platform.swt-1af84db9d9097f2c1d4b3b33cc3dc258334486cb.tar.gz eclipse.platform.swt-1af84db9d9097f2c1d4b3b33cc3dc258334486cb.tar.xz eclipse.platform.swt-1af84db9d9097f2c1d4b3b33cc3dc258334486cb.zip |
Bug 333391 - Remove the @deprecated tag from GC#setXORMode()
Adjust Javadocs and remove deprecated tag for GC#setXORMode().
Change-Id: I3770a94ff655004404e84fb6606b0f07d7cd73df
Signed-off-by: Eric Williams <ericwill@redhat.com>
3 files changed, 0 insertions, 24 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java index 776536595a..0b878ecbb8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/GC.java @@ -3927,21 +3927,13 @@ void setPatternPhase(Pattern pattern) { * and the destination, and if the argument is <code>false</code>, * puts the receiver in a drawing mode where the destination color * is replaced with the source color value. - * <p> - * Note that this mode in fundamentally unsupportable on certain - * platforms. Clients that want their - * code to run on all platforms need to avoid this method. - * </p> * * @param xor if <code>true</code>, then <em>xor</em> mode is used, otherwise <em>source copy</em> mode is used * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> - * - * @deprecated this functionality is not supported on some platforms */ -@Deprecated public void setXORMode(boolean xor) { if (handle == null) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); data.xorMode = xor; diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java index 8d270c5c2a..c171f9f18e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java @@ -3837,21 +3837,13 @@ public void setTransform(Transform transform) { * and the destination, and if the argument is <code>false</code>, * puts the receiver in a drawing mode where the destination color * is replaced with the source color value. - * <p> - * Note that this mode in fundamentally unsupportable on certain - * platforms. Clients that want their - * code to run on all platforms need to avoid this method. - * </p> * * @param xor if <code>true</code>, then <em>xor</em> mode is used, otherwise <em>source copy</em> mode is used * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> - * - * @deprecated this functionality is not supported on some platforms */ -@Deprecated public void setXORMode(boolean xor) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); Cairo.cairo_set_operator(handle, xor ? Cairo.CAIRO_OPERATOR_DIFFERENCE : Cairo.CAIRO_OPERATOR_OVER); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java index 2e9e245435..2db1ba826e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/GC.java @@ -4722,21 +4722,13 @@ void setLineWidthInPixels(int lineWidth) { * and the destination, and if the argument is <code>false</code>, * puts the receiver in a drawing mode where the destination color * is replaced with the source color value. - * <p> - * Note that this mode in fundamentally unsupportable on certain - * platforms. Clients that want their - * code to run on all platforms need to avoid this method. - * </p> * * @param xor if <code>true</code>, then <em>xor</em> mode is used, otherwise <em>source copy</em> mode is used * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> * </ul> - * - * @deprecated this functionality is not supported on some platforms */ -@Deprecated public void setXORMode(boolean xor) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); OS.SetROP2(handle, xor ? OS.R2_XORPEN : OS.R2_COPYPEN); |