Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-01-17Bug 525305 - [API]Provide SWT.OpenUrl eventChristian Georgi2-0/+2
Introduces new SWT.OpenUrl event type. On Mac, the SWT.OpenUrl event will be generated whenever Equinox calls the application:openUrls: selector. One event will be generated for each URL received from OS X. On Windows we emit the OpenUrl event if a valid URL is passed in, otherwise the OpenDocument event is sent, preserving compatibility. (Linux implementation is not included) Bug: 351303 Change-Id: Ic0cce76ce21fed0f2b182d24a29e51b821264093 Signed-off-by: Mads Mætzke Tandrup <mads@maetzke-tandrup.dk> Signed-off-by: Christian Georgi <christian.georgi@sap.com> Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
2017-11-27Bug 525976 - Replace if/else cascades by switch statementsKarsten Thoms2-1458/+2980
- Added enum Selector that lists all used selectors Mixed hand-crafted & generated code - OS: - Use Selector literal values for selector constants initialization - Added a map for mapping Long selector value to their Selector literal - MacGenerator: - Extended generator to write selector literals to Selector.java - Changed generation of selector constants in OS.java - Regenerated code with MacGenerator - MacGeneratorView: Improved error message when target root folder is not available - JNIGenerator: Ignore CCE for enum types Change-Id: Ic62f9e8a36b7c8dd103a0efb04bfc242f4bf757a Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-11-14[Bug 525465] TextLayout with embedded images is missing text on macOSLakshmi Shanmugam2-1/+9
High Sierra NSTextAttachmentCellProtocol has a new and required property "attachment" since 10.11. Added attachment method to SWTTextAttachmentCell for macOS version >= 10.11 Change-Id: I9b0686db3c90e6b7b8d5fd4db0a0c2b1c27d19ac
2017-10-16Bug 521849: Fix deprecated warnings in Mac native buildI20171016-2000Lakshmi Shanmugam1-5/+0
NSWindowList was removed by an earlier commit. Remove NSWindowList from the AppKitFull.bridgesupport.extras file
2017-09-29Bug 521849: Fix deprecated warnings in Mac native buildLakshmi Shanmugam1-5/+0
NSWindowList is deprecated since 10.6. Remove it as it is no longer used in the code. Change-Id: I8c095df071d22aeb473a1ea3b7db1f0f03898a11
2017-09-29Bug 521849: Fix deprecated warnings in Mac native buildLakshmi Shanmugam1-2/+0
SetFrontProcess is deprecated since 10.9. Remove it as the minimum supported mac OS version is 10.10 and is no longer required in Display class. Change-Id: I29862661233f12af5a1340a24b6b27e9ed87ea82
2017-09-29Bug 521849: Fix deprecated warnings in Mac native buildLakshmi Shanmugam1-7/+0
'NSAddImage' is deprecated in macOS 10.5. It was required for xulrunner10 support. Remove it now as there is no XULRunner code/support. Change-Id: Ic8f2eb7d7ba66cda16072452beda43ced11655f8
2017-09-25Bug 522349 - Use system cursor for SWT.CURSOR_WAITKarsten Thoms1-0/+4
Use non-API 'busyButClickableCursor' selector to get an animated waiting cursor for SWT.CURSOR_WAIT. Fallback to old code if selector is not available. Change-Id: Idf991748da1d87cc39ec5a137b4dbf436d23966b Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-09-07Bug 505835 - [Cocoa] Button, do not respect foreground and backgroundTill Brychcy6-1/+48
color on MAC Perform custom coloring for Button background. Change-Id: I34084136e206e08e8a97fe8198720a093abdd589 Signed-off-by: Till Brychcy <register.eclipse@brychcy.de>
2017-08-21Bug 519089:[Java 9] Automatic window tabbing should be disallowedLakshmi Shanmugam2-1/+4
In macOS 10.12, a new system preference "prefer tabs when opening documents" has been added which causes automatic tabbing of windows in Eclipse. This is by default enabled to work when application is in fullscreen mode and can be modified to work always. Disable automatic window tabbing, but setting the NSWindow.allowsAutomaticWindowTabbing property to false. Change-Id: I7f22249d92dabe2597147b9089c42f79b68ac6c4
2017-08-18Bug 508129 - [10.11]PaintEvent.GC.copyArea () crashes Eclipse Neon onLakshmi Shanmugam1-0/+2
OSX 10.11 and above When a GC is created with a control as the Drawable and GC.copyArea() is called, a SWT.Paint event is sent unexpectedly. This happens because NSView.cacheDisplayInRect() calls drawRect() which causes a SWT.Paint event to be sent. The fix is to ignore this paint event and prevent SWT from sending it to the clients. This is handled by creating a custom callback for cacheDisplayInRect, setting the ignorePaint flag and then calling the Cocoa implementation of cacheDisplayInRect. The ignorePaint flag is reset after the call. Change-Id: I4c2e2986b83868082295ea187b543376bf4c8a7e
2017-08-11Bug 467205 - [10.10] FileDialog/DirectoryDialog with SWT.SHEET misplacedI20170811-2000Lakshmi Shanmugam4-0/+42
after slide-down animation Replaced deprecated NSSavePanel and NSOpenPanel APIs with newer ones. The new API NSSavePanel.beginSheetModalForWindow that is required to show the Sheet, uses objective-c block for completion handler. This call can't be made directly from Java, as Java doesn't support the block syntax (^). Hence, it is called from a wrapper function inside C code in os_custom.c. The wrapper function calls beginSheetModalForWindow with the objective C block syntax. The completion handler block is also implemented in os_custom.c which callsback to the Java functionFileDialog/DirectoryDialog._completionHandler(). Change-Id: Ib03881a68ef7ecaf2132cf91a4137aef8b6fe3fc
2017-07-25Revert unintended OS.java change from earlier commit for Bug 455854Lakshmi Shanmugam1-1/+1
Change-Id: I7511746653934469cfd1a2506057d913fd99ff85
2017-07-24Bug 455854: Text field with SWT.SEARCH style ignores setBackgroundStefan Winkler6-2/+53
Implemented custom SWTSearchFieldCell to handle non-default background color. Change-Id: I80db1fa0c42ca3ad194e8416ef1793aa6328f992 Signed-off-by: Stefan Winkler <stefan@winklerweb.net>
2017-07-05Bug 419757: HTML5 database doesn't work for embedded webkit browserLakshmi Shanmugam1-1/+3
under Mac OSX Implement WebUIDelegate method - webView:frame:exceededDatabaseQuotaForSecurityOrigin:database: and increase the quota as desired when that method is called Change-Id: Icf8fa3682134ae2d4796ba1f07d0dcdf5ac42b35 Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
2017-04-11Bug 514424 - [Cocoa] Allow styling of table and tree headers backgroundTill Brychcy1-5/+0
in SWT Change-Id: I52b9c22fbc03da0f16738ab215936ce18ee313f5 Signed-off-by: Till Brychcy <register.eclipse@brychcy.de> Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
2017-03-24Bug 502711 - [Cocoa][10.12]crashes on „macOS Sierra“ related toArun Thondapu1-6/+0
NSCopyBits Disable generation of code for deprecated method NSCopyBits as it is not used anymore Change-Id: I2163508166467a8c1a42cbdb5a0e15aaab5249ba Signed-off-by: Arun Thondapu <arunkumar.thondapu@in.ibm.com>
2017-03-23Bug 502711 - [Cocoa] crashes on „macOS Sierra“ related to NSCopyBitsTill Brychcy3-6/+16
Replaced the calls to deprecated method NSCopyBits with NSView.scrollRect() in GC.copyArea and Canvas.scroll. Removed the native code for NSCopyBits. Change-Id: I206c76cd6af9230857967fb23641f0773f90e5de Signed-off-by: Till Brychcy <register.eclipse@brychcy.de> Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
2017-03-23Bug 502090 - [Cocoa] Bridge support files should be updated to latestArun Thondapu67-597/+568
macOS supported version Source changes generated by the MacGenerator using the updated bridge support files from macOS 10.10 Change-Id: Id9b0cffb795bfb0b5ca304efc00ef5d8f23b86af
2017-02-07Bug 502090 - macOS 10.10 (Yosemite) bridge support filesMikael Barbero6-23036/+34067
Change-Id: Ia6acbc6ea9a8b98b9664057cd48c97de9d2af70d Signed-off-by: Mikael Barbero <mikael@eclipse.org>
2017-01-30Bug 302448 - Use new clipboard constantsLakshmi Shanmugam4-25/+25
Replaced old deprecated clipboard constants with new ones. Replaced writeToPasteboard with writeObjects.
2017-01-23Bug 481144 - [Cocoa] Text lowered badly on Widgets in Preference andLakshmi Shanmugam2-4/+0
Properties - Mac 10.10+ (AKA "Lowered Textpectations") Fixed the test failure when bad font name is used. Removed unused constants.
2017-01-20Bug 481144 - [Cocoa] Text lowered badly on Widgets in Preference andPhillip Webb3-1/+15
Properties Update Font init method to directly use the system font when possible. Prior to this commit OSX 10.11 and higher (systems that use the San Francisco font) can render with unusual spacing. The root cause seems to be that the system font has an unusual baseline when a system font is manipulated or obtained by name. Specifically: - Calling `NSFont.systemFontOfSize` will return a font that renders correctly. - Calling `NSFont.boldSystemFontOfSize` will return a font that renders correctly. - Calling `NSFont.systemFontOfSize` followed by `NSFontManager .convertFont` will return a font that renders too low. - Calling `NSFont.fontWithName(".SF NS Text")` will return a font that sometimes renders too low (things seem to consistently go wrong when it's called after a `convertFont` call). The `Font.init` now attempts to deduce if the font requested is actually a system font and use direct system font handles. This update also seems to fix issue 486734. Change-Id:Ic613f72b911822385dfb9f0b32f82d8a5d895c77 Signed-off-by: pwebb@pivotal.io Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
2016-05-06Bug 493114 - DPIUtil.DeviceZoom is not set on MacLakshmi Shanmugam1-1/+2
Set DPIUtil.deviceZoom. Image.getImageDataAtCurrentZoom() will scale the image data using DPIUtil.autoScaleImageData() if old image constructors are used.
2016-03-14Bug 480852 - [Cocoa] GC.copyArea() crashes application on OSX 10.11Lakshmi Shanmugam3-1/+21
Use NSView APIs instead of Quartz APIs to copy area from a view onto an image
2016-01-07Bug 485367 - cleaned trailing spaces in swt (cocoa)Andrey Loskutov17-53/+53
Change-Id: I47e7c08d8fdd9beea2ace6603c5de79755925f48 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2015-11-04Bug 477979 - [10.11] SWT can't receive input on non-standard JVMs Lakshmi Shanmugam2-0/+2
Use OS.NSAnyEventMask insteadof 0 in NSApplication.nextEventMatchingMask() in Display and Tracker class. Change-Id: Ia4f24f3e013a2fcf15e601c3297d2668505893bc Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
2015-11-02Bug 462633: Enable save actions for annotationsMarkus Keller8-0/+10
Added missing @Override/@Deprecated in cocoa
2015-10-23fix mac generator problemsLakshmi Shanmugam2-4/+3
fixed problems caused by changes for Bug 447972 and Bug 461486
2015-10-20Revert "Bug 302448 - Use new clipboard constants"Lakshmi Shanmugam4-24/+24
This reverts commit 6e99d1730da179bba71d9097aa327fa9e16bea93. native build failed as the 10.6 clipboar symbols didn't compile on the build machine (which is OSX 10.5)
2015-10-19Bug 302448 - Use new clipboard constantsLakshmi Shanmugam4-24/+24
Replaced old clipboard constants with new ones. Replaced writeToPasteboard with writeObjects.
2015-09-22Bug 461486 - Disable the move of a shellEugen Neufeld2-1/+9
Added NO_MOVE flag to the SWT class, that can disable the move of a Shell. Usage example: Shell shell = new Shell(parent, SWT.SHELL_TRIM|SWT.NO_MOVE); Contribution contains implementations for gtk, Win32 and Cocoa. Change-Id: Ia5cc50009b81cf08e631a695673f6a31779b6222 Signed-off-by: Alexandra Buzila <abuzila@eclipsesource.com> Signed-off-by: Eugen Neufeld <eneufeld@eclipsesource.com>
2015-09-21Bug 459402 - [Cocoa] (Mac dual monitor on OS X 10.10) Widgets inLakshmi Shanmugam3-1/+11
preference dialog become dark and unreadable if a TrayItem instance is created Prevent text foreground and background colors from changing when in dark mode, trayItem is present and System settings for color or display changes.
2015-07-31Bug 386252 - Deprecation warning running SWT on Mountain LionLakshmi Shanmugam4-15/+0
Remove occurrences of NSScreen.userSpaceScaleFactor
2015-04-21Bug 447972 -[10.10]Buttons and read-only Combos don't have a focus ringLakshmi Shanmugam3-1/+15
on Yosemite
2015-04-06Bug 462401 - [Cocoa] Can't access plugins folder using new Mac AppLakshmi Shanmugam3-1/+10
layout Code determines if the app bundle should be treated as directory by looking at the filter extensions and sets the property in the NSSavePanel.
2015-03-18Revert "Bug 462401 - Can't access plugins folder using new Mac AppLakshmi Shanmugam3-10/+1
layout. set TreatsFilePackagesAsDirectories property to true." Reverting commit as this breaks use cases where .app should be treated as a file instead of directory. This reverts commit 9b47cd02487f43a7bdd437650645c2180a001e29.
2015-03-18Bug 462401 - Can't access plugins folder using new Mac App layout.Lakshmi Shanmugam3-1/+10
set TreatsFilePackagesAsDirectories property to true.
2015-03-13Bug 421383 - [Graphics] Scaling issues on high DPI displaysNiraj Modi5-7/+26
Change-Id: Ib7586f51199b46e258f5f30e10433eab4fe4775a Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com> Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
2015-01-20Bug 454590: Link widget should not scroll its contentsI20150120-0800Lakshmi Shanmugam3-1/+12
2015-01-06Bug 426062 - RCP application menu not shown when launched from EclipseLakshmi Shanmugam4-0/+65
on OS X 10.9
2014-12-05Bug 448510 - OS.VERSION is 0x1090 on Yosemite (same as on 10.9)Lakshmi Shanmugam1-1/+19
2014-11-17Bug 62575 - No Tooltip support for MenuItemsNicolaj Hoess1-0/+4
Change-Id: I2fcc79d1322dba8b752e951c6e164850c66dfa06 Signed-off-by: Nicolaj Hoess <nicohoess@gmail.com>
2014-09-04Modified fix for Bug 400478 - Print doesn't have a "print selection"Lakshmi Shanmugam3-5/+18
option on osx Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
2014-09-04Bug 400478 - Print doesn't have a "print selection" option on osxLakshmi Shanmugam2-0/+6
Signed-off-by: Lakshmi Shanmugam <lshanmug@in.ibm.com>
2014-03-24Bug 347430 - FileDialog's overwrite & setFilterExtensions options do notAbhishek Kishore3-1/+19
play well together. Change-Id: I1de07ef28e9db451df06a3c180643571ffa95895 Signed-off-by: Abhishek Kishore <abhishek.kishore@in.ibm.com>
2013-09-02Bug 414134-[DND]Setting Control's cursor other thanLakshmi Shanmugam3-1/+10
SWT.CURSOR_ARROW causes drag operation to show incorrect icon
2013-05-28Bug 408895 - Do the annual javadoc/copyright bash for 4.3Carolyn MacLeod153-153/+153
2013-05-10Bug 407555 - StackOverflowError in SWT widgets on Mac OSSilenio Quarti3-1/+10
2013-02-27Bug 328010 - In cocoa, Help menu can not display Search menu item in chinese ↵Silenio Quarti4-2/+19
language.

Back to the top