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 109522 Details for
Bug 227977
PrecisionPoint should override Point.equals
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]
Fix for Europa, for PrecisionPoint and PrecisionDimension.
227977_europa.txt (text/plain), 1.80 KB, created by
Romain Raugi
on 2008-08-08 10:12:33 EDT
(
hide
)
Description:
Fix for Europa, for PrecisionPoint and PrecisionDimension.
Filename:
MIME Type:
Creator:
Romain Raugi
Created:
2008-08-08 10:12:33 EDT
Size:
1.80 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.draw2d >Index: src/org/eclipse/draw2d/geometry/PrecisionDimension.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/PrecisionDimension.java,v >retrieving revision 1.7 >diff -u -r1.7 PrecisionDimension.java >--- src/org/eclipse/draw2d/geometry/PrecisionDimension.java 11 May 2005 19:25:02 -0000 1.7 >+++ src/org/eclipse/draw2d/geometry/PrecisionDimension.java 8 Aug 2008 13:52:58 -0000 >@@ -69,4 +69,15 @@ > height = (int)Math.floor(preciseHeight + 0.000000001); > } > >+/** >+ * @see org.eclipse.draw2d.geometry.Dimension#equals(java.lang.Object) >+ */ >+public boolean equals(Object o) { >+ if (o instanceof PrecisionDimension) { >+ PrecisionDimension d = (PrecisionDimension)o; >+ return d.preciseWidth == preciseWidth && d.preciseHeight == preciseHeight; >+ } >+ return super.equals(o); >+} >+ > } >Index: src/org/eclipse/draw2d/geometry/PrecisionPoint.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/PrecisionPoint.java,v >retrieving revision 1.10 >diff -u -r1.10 PrecisionPoint.java >--- src/org/eclipse/draw2d/geometry/PrecisionPoint.java 30 Mar 2005 21:27:45 -0000 1.10 >+++ src/org/eclipse/draw2d/geometry/PrecisionPoint.java 8 Aug 2008 13:52:58 -0000 >@@ -118,4 +118,15 @@ > y = (int)Math.floor(preciseY + 0.000000001); > } > >+/** >+ * @see org.eclipse.draw2d.geometry.Point#equals(java.lang.Object) >+ */ >+public boolean equals(Object o) { >+ if (o instanceof PrecisionPoint) { >+ PrecisionPoint p = (PrecisionPoint)o; >+ return p.preciseX == preciseX && p.preciseY == preciseY; >+ } >+ return super.equals(o); >+} >+ > }
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 227977
:
109522
|
109524