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 231734 Details for
Bug 409454
Make org.eclipse.draw2d.geometry.* classes available on a OS without SWT
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.
Proposed patch
patch.txt (text/plain), 3.06 KB, created by
Thomas Mattsson
on 2013-05-30 03:16:41 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Thomas Mattsson
Created:
2013-05-30 03:16:41 EDT
Size:
3.06 KB
patch
obsolete
>diff --git a/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Dimension.java b/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Dimension.java >index 583d474..57952c9 100644 >--- a/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Dimension.java >+++ b/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Dimension.java >@@ -50,19 +50,6 @@ > } > > /** >- * Constructs a Dimension where the width and height are the x and y >- * distances of the input point from the origin. >- * >- * @param pt >- * the Point supplying the initial values >- * @since 2.0 >- */ >- public Dimension(org.eclipse.swt.graphics.Point pt) { >- width = pt.x; >- height = pt.y; >- } >- >- /** > * Constructs a Dimension with the supplied width and height values. > * > * @param w >@@ -74,20 +61,6 @@ > public Dimension(int w, int h) { > width = w; > height = h; >- } >- >- /** >- * Constructs a Dimension with the width and height of the Image supplied as >- * input. >- * >- * @param image >- * the image supplying the dimensions >- * @since 2.0 >- */ >- public Dimension(org.eclipse.swt.graphics.Image image) { >- org.eclipse.swt.graphics.Rectangle r = image.getBounds(); >- width = r.width; >- height = r.height; > } > > /** >diff --git a/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Point.java b/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Point.java >index 6210d68..f9a5a4c 100644 >--- a/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Point.java >+++ b/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Point.java >@@ -49,18 +49,6 @@ > } > > /** >- * Constructs a Point at the same location as the given SWT Point. >- * >- * @param copy >- * Point from which the initial values are taken. >- * @since 2.0 >- */ >- public Point(org.eclipse.swt.graphics.Point copy) { >- x = copy.x; >- y = copy.y; >- } >- >- /** > * Constructs a Point at the specified x and y locations. > * > * @param x >@@ -214,17 +202,6 @@ > */ > public Point getScaled(double amount) { > return getCopy().scale(amount); >- } >- >- /** >- * Creates a new SWT {@link org.eclipse.swt.graphics.Point Point} from this >- * Point. >- * >- * @return A new SWT Point >- * @since 2.0 >- */ >- public org.eclipse.swt.graphics.Point getSWTPoint() { >- return new org.eclipse.swt.graphics.Point(x, y); > } > > /** >diff --git a/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Rectangle.java b/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Rectangle.java >index c278d3c..ba686b8 100644 >--- a/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Rectangle.java >+++ b/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Rectangle.java >@@ -69,18 +69,6 @@ > } > > /** >- * Constructs a copy of the provided SWT >- * {@link org.eclipse.swt.graphics.Rectangle}. >- * >- * @param rect >- * The SWT Rectangle being copied >- * @since 2.0 >- */ >- public Rectangle(org.eclipse.swt.graphics.Rectangle rect) { >- this(rect.x, rect.y, rect.width, rect.height); >- } >- >- /** > * Constructs a Rectangle with the provided values. > * > * @param x
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 Raw
Actions:
View
Attachments on
bug 409454
: 231734