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 139750 Details for
Bug 280940
Object comparison instead of value comparison
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch for setters
ShapeAlphaAntialiasSetters.txt (text/plain), 1.68 KB, created by
Marc Gobeil
on 2009-06-22 09:18:33 EDT
(
hide
)
Description:
patch for setters
Filename:
MIME Type:
Creator:
Marc Gobeil
Created:
2009-06-22 09:18:33 EDT
Size:
1.68 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.draw2d >Index: src/org/eclipse/draw2d/Shape.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/Shape.java,v >retrieving revision 1.13 >diff -u -r1.13 Shape.java >--- src/org/eclipse/draw2d/Shape.java 28 May 2009 16:45:11 -0000 1.13 >+++ src/org/eclipse/draw2d/Shape.java 22 Jun 2009 13:15:01 -0000 >@@ -370,7 +370,12 @@ > * @since 3.5 > */ > public void setAlpha(Integer value) { >- if(alpha != value) { >+ if(alpha != null) { >+ if(!alpha.equals(value)) { >+ alpha = value; >+ repaint(); >+ } >+ } else if(value != null) { > alpha = value; > repaint(); > } >@@ -380,7 +385,15 @@ > * @since 3.5 > */ > public void setAlpha(int value) { >- setAlpha(new Integer(value)); >+ if(alpha != null) { >+ if(alpha.intValue() != value) { >+ alpha = new Integer(value); >+ repaint(); >+ } >+ } else { >+ alpha = new Integer(value); >+ repaint(); >+ } > } > > /** >@@ -389,7 +402,12 @@ > * @since 3.5 > */ > public void setAntialias(Integer value) { >- if(antialias != value) { >+ if(antialias != null) { >+ if(!antialias.equals(value)) { >+ antialias = value; >+ repaint(); >+ } >+ } else if(value != null) { > antialias = value; > repaint(); > } >@@ -399,7 +417,15 @@ > * @since 3.5 > */ > public void setAntialias(int value) { >- setAntialias(new Integer(value)); >+ if(antialias != null) { >+ if(antialias.intValue() != value) { >+ antialias = new Integer(value); >+ repaint(); >+ } >+ } else { >+ antialias = new Integer(value); >+ repaint(); >+ } > } > > /**
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
Actions:
View
|
Diff
Attachments on
bug 280940
: 139750