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 170241 Details for
Bug 314750
[cocoa, gef] RulerComposite is detecting Mac OS X incorrectly, only Carbon not Cocoa
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 to better detect Mac OS X
RulerComposite-patch.txt (text/plain), 1.06 KB, created by
Justin Dolezy
on 2010-05-27 14:38:41 EDT
(
hide
)
Description:
Patch to better detect Mac OS X
Filename:
MIME Type:
Creator:
Justin Dolezy
Created:
2010-05-27 14:38:41 EDT
Size:
1.06 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gef >Index: src/org/eclipse/gef/ui/rulers/RulerComposite.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.gef/src/org/eclipse/gef/ui/rulers/RulerComposite.java,v >retrieving revision 1.29 >diff -u -r1.29 RulerComposite.java >--- src/org/eclipse/gef/ui/rulers/RulerComposite.java 17 Feb 2010 15:57:08 -0000 1.29 >+++ src/org/eclipse/gef/ui/rulers/RulerComposite.java 27 May 2010 18:33:37 -0000 >@@ -28,6 +28,7 @@ > import org.eclipse.swt.widgets.Listener; > > import org.eclipse.core.runtime.Assert; >+import org.eclipse.core.runtime.Platform; > > import org.eclipse.draw2d.AbstractBorder; > import org.eclipse.draw2d.ColorConstants; >@@ -133,7 +134,7 @@ > * @since 3.6 > */ > public static Rectangle calculateRulerTrim(Canvas canvas) { >- if ("carbon".equals(SWT.getPlatform())) { //$NON-NLS-1$ >+ if (Platform.OS_MACOSX.equals(Platform.getOS())) { > Rectangle trim = canvas.computeTrim(0, 0, 0, 0); > trim.width = 0 - trim.x * 2; > trim.height = 0 - trim.y * 2;
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 314750
: 170241