Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-07-11Bug 497635: Revert fix for Bug 484463Eric Williams0-0/+0
This reverts a fix for Toolbars on GTK3 to allow the line under the Quick Access entry to be visible. As the line is now being removed from Platform UI this fix can be reverted. Tested on GTK3.18 and 3.20. 3.20 is unaffected, 3.18 has the fix reverted. Change-Id: I52294a3e802e66f761f4eb3bb14c3450002b257c Signed-off-by: Eric Williams <ericwill@redhat.com>
2016-07-11Bug 497635: Revert fix for Bug 484463Eric Williams1-1/+1
This reverts a fix for Toolbars on GTK3 to allow the line under the Quick Access entry to be visible. As the line is now being removed from Platform UI this fix can be reverted. Testing in progress. Change-Id: I2d1ec4173ebd890dd43090cadfb01b6dfb4e71b5 Signed-off-by: Eric Williams <ericwill@redhat.com>
2016-07-11Bug 496939 - [win32] ctrl+backspace in preferences dialog crashedNiraj Modi2-4/+14
platform Change-Id: Iadab6b5eccd36b54922ee97c920dba10780a4ca0 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2016-07-08Bug 497558 - Add minimal Readme.md to org.eclipse.swt for setting theI20160708-1700Lars Vogel1-0/+23
classpath Change-Id: Ibaa9d30691448859890424ee3639b80b5568097f Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2016-07-08Bug 497560 - Delete org.eclipse.swt.examples .classpath_flexLars Vogel1-7/+0
Change-Id: I9c26e49307b152ea97418e3a0118ca14cc74288f Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2016-07-07Bug 497525 - Move from charsets string constants to StandardCharsetsAlexander Kurtakov5-132/+30
More readable code as there is no need to catch UnsupportedEncodingException and it's also faster as there is no need for the JVM to lookup the charset based on the string constant passed. Change-Id: I33140d381e42268d51160bfa6906df84533f82d4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-07-07Bug 481195 - Update SWT to Java 8Alexander Kurtakov35-2091/+1687
Bump BREE to Java 8. Enable save action to convert to lambda and convert where feasible. Enabled trailing spaces removal save action while at it. Change-Id: If958b545e67a4615304e1b541657746e9aedc03a Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-07-06Bug 495909 - [GTK3.20+]Ian Pun3-22/+146
test_setTopItemLorg_eclipse_swt_widgets_TreeItem() fails Referring to bug Bug 461354, I used a topIndex variable to keep track of the top item. Check to see if there has been any scrolling changes done by the user, and if not, return the topIndex variable. We can keep track of scrolling changes by using a cachedAdjustment variable with a currentAdjustment variable grabbed with GTK functions. This optimization has also been adapted on the Table widget. Tested on GTK 2, 3.14, .16, .18, and .20. Change-Id: Ica1bda3c3d23d5cd27b8c4e29963c0f097d778d3 Signed-off-by: Ian Pun <ipun@redhat.com>
2016-07-05v4701v4701dArun Thondapu1-1/+1
2016-07-01v4701v4701cArun Thondapu1-1/+1
2016-07-01Bug 496986 - Remove unsupported platforms project from binariesArun Thondapu1-1/+1
repository Adjust total libraries count in buildSWT.xml after removal of unsupported platform projects Change-Id: I5d3d18764415a6045773ad5f3e726efe37a565f7 Signed-off-by: Arun Thondapu <arunkumar.thondapu@in.ibm.com>
2016-06-30Bug 497122 - org.eclipse.swt.tests.junit.browser.Browser6 crashes withAlexander Kurtakov1-3/+1
Webkit2 On dispose webkit_web_context_finalize makes WebCore::IconDatabase::~IconDatabase() crash due to SWT calling webkit_web_context_set_favicon_database_directory. This has been added as Webkit2 replacement for webkit_favicon_database_set_path with null path which disabled favicon database but calling webkit_web_context_set_favicon_database_directory in Webkit2 actually enables the database which is disabled otherwise. Change-Id: I58db6faa473d09f6532b7f77aba5a19c475f7eba Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-30Bug 496854 - Eclipse should display libwebgtk version when using gtk Patrik Suzzi1-29/+28
With this change proposal, WebKit stores the WebKitGTK version in system properties, after the first time the WebKitGTK is used. Change-Id: Ide338b198fa67e65422ee1aeb363c5a6cf8a4b50 Signed-off-by: Patrik Suzzi <psuzzi@gmail.com>
2016-06-30v4701Arun Thondapu1-1/+1
2016-06-30Bug 496986 - Remove unsupported platforms project from binariesAlexander Kurtakov2-25/+5
repository Remove useless parts from buildSWT.xml. Adjust p2.inf for changes in sparc archs. Change-Id: Ifce2958d4232c6af4ff9a76e8bba909281e0c9f1 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-29Bug 497039: Remove System.out.println fromLev Ufimtsev1-1/+0
Test_org_eclipse_swt_widgets_Shell.test_setBounds Change-Id: I2b6c7723fad94eb7bd15c96edb5f5a3f05b23e81 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=497039 Signed-off-by: Lev Ufimtsev <lufimtse@redhat.com>
2016-06-29Bug 496756 - [GTK] [autotester] Add support to select gtk versionsLev Ufimtsev1-41/+154
* Implemented argument support to set which gtk versions to run. ex -t "3.20 3.08 2.24" * Now to run with natives specify '-n' * Now to run all tests, specify '-a' * See documentation in script for details. Change-Id: Ifd17dd42fd24ff0ad3a5e0c9f0f38ea2883b5381 Signed-off-by: Lev Ufimtsev <lufimtse@redhat.com>
2016-06-29Bug 497023 - Update swt tools to Java 8 Alexander Kurtakov13-707/+485
* Bump BREE and version. * Use lambdas. Change-Id: I349f3a554821f59d32b8d7a259508fefb04c3f80 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-29Bug 496465: Prep for 4.7 (Oxygen) buildsAlexander Kurtakov1-1/+1
Fix for commit 707d4dd62891c962b6a08f5f6541b4170b0b75f9 which broke local build. Manifest and pom should always have same version. Change-Id: I570585c7630f2a20275a819adc8481548b5c6997 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-28v4701v4701Arun Thondapu1-1/+1
2016-06-28v4701Arun Thondapu3-4/+4
2016-06-28Bug 496465: Prep for 4.7 (Oxygen) buildsMarkus Keller2-3/+3
2016-06-28Bug 496465 - Prep for 4.7 (Oxygen) and 4.6.1 (Neon.1) maintenance buildsLakshmi Shanmugam7-7/+7
Updated pom files.
2016-06-28Bug 496465 - Prep for 4.7 (Oxygen) and 4.6.1 (Neon.1) maintenance buildsLakshmi Shanmugam3-4/+4
Updated parent pom and other pom files.
2016-06-28v4700Arun Thondapu3-4/+4
2016-06-27Bug 496639 - GTK: dialog on top of full-screen shell is not shownIan Pun1-0/+8
Any new shell windows that are set to modal will spawn above the full-screen window when setVisible() is called. Change-Id: I95cc1226decd4e51f994c12a08a2c7dca504baed Signed-off-by: Ian Pun <ipun@redhat.com>
2016-06-27Bug 493666 - [win32][HiDPI] Images in Browser widget not scaledNiraj Modi2-2/+3
Change-Id: I144a8f82898e23cc205ad323d1ee4516cae5ee17 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2016-06-27Bug 495909 - [GTK3.20+]Eric Williams3-107/+21
test_setTopItemLorg_eclipse_swt_widgets_TreeItem() fails This reverts commit 7e5f98bb2b5f6f1dadb9ec6a9723c4817caab045. Change-Id: I3e3a3fbb8df3a5e9f4da6385b19a35afc08339fa Signed-off-by: Eric Williams <ericwill@redhat.com>
2016-06-27Bug 495909 - [GTK3.20+]Alexander Kurtakov1-1/+0
Test_setTopItemLorg_eclipse_swt_widgets_TreeItem() fails Fix compile warning. Change-Id: I1277bfc864411df472286042486a31713b54e4a9 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-24Bug 489025 - [mylyn][gtk3] Task list does not show task iconLev Ufimtsev2-3/+7
Icons were not rendered on first load. The cause was some renderers were set to -1x-1 on first load, which triggered some renderers to be set 0x0 instead of initial size. The fix is compare to max(size, 0). Change-Id: I6f3ba20259dc949c97ca475b8c87cae96636dcc3 Signed-off-by: Lev Ufimtsev <lufimtse@redhat.com>
2016-06-23Bug 496302 - [GTK2] Group computeSize returns current size instead ofEugen Neufeld2-1/+13
minimal Change-Id: I0dc3d65c625fc631cb60133be9a72a34a5aef347 Signed-off-by: Eugen Neufeld <eneufeld@eclipsesource.com>
2016-06-23Bug 495909 - [GTK3.20+]Ian Pun3-20/+107
test_setTopItemLorg_eclipse_swt_widgets_TreeItem() fails Referring to bug Bug 461354, I used a topIndex variable to keep track of the top item. Check to see if there has been any scrolling changes done by the user, and if not, return the topIndex variable. We can keep track of scrolling changes by using a cachedAdjustment variable with a currentAdjustment variable grabbed with GTK functions. This optimization has also been adapted on the Table widget. Tested on GTK 2, 3.14, .16, .18, and .20. Change-Id: Icf5ebbf3b075ab06f54914c1c753041c9205f820 Signed-off-by: Ian Pun <ipun@redhat.com>
2016-06-17v4624Arun Thondapu1-1/+1
2016-06-17v4624Arun Thondapu3-4/+4
2016-06-17Bug 487493 - Use varargs in List#setItemsAlexander Kurtakov6-10/+10
Fix warnings in tests and update examples/snippets to use the new shorter syntax. Change-Id: Ia37a4e1cfd78324938f61e1b3312b8866e377718 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-16Bug 495729 - Add test class for ScrolledCompositeIan Pun2-1/+268
ScrolledComposite class now has a test case that covers all testable methods. Change-Id: I2b40110f306a54cc8bc876a971e184f4edd3c7ee Signed-off-by: Ian Pun <ipun@redhat.com>
2016-06-16Bug 487493 - Use varargs in List#setItemsAlexander Kurtakov3-5/+5
Allow new syntax features for SWT API users. Change-Id: I9131d34f684f30c3c0123be38b67b9966141b59d Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-15Bug 496158 - Remove useless function binding in GLXAlexander Kurtakov4-316/+4
As these functions are not used they just increase code and binaries size and make it harder to look at what's needed to use GTK 3.18 built-in GL draw. Change-Id: Ia6c2d15a2be00faac8c497e5566d1a220adfd61b Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-15Bug 496153 - Remove useless non-X11 branch in Control.setEnabledAlexander Kurtakov1-5/+1
There is code guarded with if (!OS.GDK_WINDOWING_X11 ()). Such a check is useless nowadays because on GTK3 it will check whether the x11 backend has been compiled which is always true as GTK3 supports multiple backends compiled in (difference with GTK2). And on GTK2 there are no non X11 backends working. Helps when checking Wayland/Broadway issues to not be confused by such potential branches. Change-Id: Ifa20cf71c0c5fbd1da3544c18c005d224ae7ca2c Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-10Bug 494540 - [GTK] Automated testing script for running swt jUnit onLev Ufimtsev2-0/+165
multiple versions of gtk This patch introduces the ability to run the SWT JUnit tests across multiple versions of GTK. To do so, navigate to the eclipse.platform.swt/tests/org.eclipse.swt.tests/ directory and run the gtk_version_tests.sh script. For more information, see the script content and: https://wiki.eclipse.org/SWT/Devel/Gtk/JUnitTests#Running_jUnit_tests_across_multiple_versions_of_GTK Change-Id: Id62171c4456e285a0f0d2f13dee1f1410df9f664 Signed-off-by: Lev Ufimtsev <lufimtse@redhat.com>
2016-06-10Bug 461354: [GTK] Find a better solution for inserting elements intoEric Williams7-10/+87
Table/Tree/List Fetching the topIndex after the user scrolls works perfectly fine. The use case that fails is when setTopIndex() is called followed by a call to getTopIndex(). The bug is exhibited by setting and fetching the topIndex programmatically (not through the UI). The fix for this is to keep track of the topIndex using a variable. The idea is to use GTK API to fetch the topIndex when the user has scrolled with the UI, and use the topIndex variable when it has been set programmatically. This patch fixes 3 of the 8 failing test cases on CentOS. See bug 493357. Change-Id: Id9b12cd85ce121e4ecdd41fe3b27e803f89dfaa4 Signed-off-by: Eric Williams <ericwill@redhat.com>
2016-06-10Bug 495797 - [GTK3] [GTK3.14] Spinner.getBackground() not acquiring theIan Pun1-7/+3
correct color compared to setBackground() The overwritten getContextBackground() method on Spinner class will now not use super.getContextBackground() even if its under GTK3.16, fixing this issue. Patch has been tested on GTK2, GTK3, GTK3.14, GTK3.16 and GTK3.18 Change-Id: Ia57a578e214b1fa0a92c973228bdeec9b641131c Signed-off-by: Ian Pun <ipun@redhat.com>
2016-06-09Bug 495413 - [GTK3] Replace deprecated gtk_adjustment_value_changed Ian Pun5-3/+27
gtk_adjustment_value_changed() is now only called when GTK version is less than 3.18 and has also been set as a dynamic function. Patch has been tested on both GTK3 and GTK2 Change-Id: Ib8c6e3d78f9a11154c62e2c8982a2957ee6fc548 Signed-off-by: Ian Pun <ipun@redhat.com>
2016-06-09Bug 495180 - [GTK] Spinner.getTextLimit() returns 0xFFFF instead ofIan Pun1-2/+2
Spinner.LIMIT Changed Spinner.LIMIT from to 0x7FFFFFFF to 0xFFFF (65536). Also changed getTextLimit() to use Spinner.LIMIT instead of 0xFFFF if limit == 0. Change-Id: I8fe833b7af4b9284658ea385bd064f700a337138 Signed-off-by: Ian Pun <ipun@redhat.com>
2016-06-08Bug 487160: [GTK3] Using ScrolledComposite in a multi-page WizardEric Williams1-0/+20
results in improper sizing of widgets This bug is caused by getClientArea() returning the wrong size for a child Composite, after setBounds() has been called on the parent. In Control/Composite.setBounds(), the parent Composite/SwtFixed container has its size adjusted by swt_fixed_resize(). In GTK this is supposed to "trickle down" to the container's children and adjust their sizes as well. GTK3 caches sizes, so setting a size on the parent and fetching the child's size shortly thereafter might not always return the updated size. The fix is to allocate the size of the parent right away in swt_fixed_resize(). This causes the sizing machinery to trigger a lot earlier and update the size accordingly, prevent SWT from fetching the wrong size and making a miscalculation. Tested on GTK3.20, 3.18, 3.16, 3.14, and 2.24. No additional AllNonBrowser JUnit test failures on GTK3 or GTK2. Change-Id: I1cadd7a81de5d0f4fceb039a03ff5870992c2d19 Signed-off-by: Eric Williams <ericwill@redhat.com>
2016-06-08Bug 494958 - Add color tab to ControlExampleIan Pun3-7/+254
I have added a new "Color" tab into ControlExample that displays all available colors to use in the format Name, Type, RGB, and the actual color. The colors used are from SWT.java and are put into a hash table with the id as its key and the name as its value. I was able to get the RGB color codes by building a method called getRGBColor(), which grabs the Color object using Display.getSystemColor() and then building the string using the getRed(), getBlue(), and getGreen() methods from the color object. The colortab class extends from the Tab class, but a lot of the methods added were from the Tables class. I also overloaded the createControlGroup() method to create a custom Parameters group (located on the right side of the example group). This allowed me to remove a lot of unnecessary controls for my color table as they are not relevant. Change-Id: I7f650ceada799dfe0252155efa18cf2ff78b2910 Signed-off-by: Ian Pun <ipun@redhat.com>
2016-06-08Bug 495209 - Add test class for Spinner widgetIan Pun2-1/+177
Created a Spinner test class. The test goes through all methods from the Spinner class except for copy(), cut(), and paste() as they don't have any functionality with the Spinner widget that I'm aware of. Change-Id: I0c604cb6161661cd696b3b503777de12fc70e841 Signed-off-by: Ian Pun <ipun@redhat.com>
2016-06-07Bug 487757 ScrolledComposite is empty if it is hidden before showingLev Ufimtsev2-1/+62
Deal with bug where for Gtk3.8+, ScrolledComposites appear empty or internal widgets don't get sized properly. When resizing shell, widgets appear or grow into correct size. The issue is that upon widget creation ZERO_HEIGHT/WIDTH is assigned to widget's state (createWidget()); then if you call setVisible(false), setVisible(true) before a layout operation, in the setVisible(true) call, the widget is never shown. In Gtk3.8+ hidden widgets have a size of 0x0, and as such allocation is not done correctly until you manually re-size the parent. To resolve the issue we check if widget is not HIDDEN on SWT side, but is hidden on GTK side. If it is, then show it. This correctly initializes layout of internal widgets. Change-Id: Ifa07fa0845fb8d951a8fbbca7296c0387b0b946f Signed-off-by: Lev Ufimtsev <lufimtse@redhat.com>
2016-06-03v4623v4623hR4_6I20160606-1100I20160603-1000Arun Thondapu1-1/+1
2016-06-03Bug 495358 - [HiDPI][GTK] GlyphMetrics#width is not scaled by TextLayoutSravan Kumar Lakkimsetti1-1/+1
Change-Id: I8af93a7134d72c4199899c54a5e4f5da65c14146 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>

Back to the top