Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-10-18Bug 267981 - SWT.Border Checkbox not working in ControlExample for theXi Yan9-9/+11
DateTime Widget Reverting border-related changes as per comment 6. Bump version to 3.106.300 for SWT examples. Change-Id: I5dbe39b06ecb1d6277dd445639b508d6cf3140ca Signed-off-by: Xi Yan <xixiyan@redhat.com>
2018-09-22Suppress restriction in test snippets.Alexander Kurtakov1-0/+1
Change-Id: I410b09f8c7c2c326d1750fdc801f9c5a234d9483 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-09-19Bump versions for 4.10 stream.Alexander Kurtakov2-2/+2
Change-Id: Ie6cd01ef133af2634204dd34a8e8bf6707281bc2 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-09-14Bug 536766 - Drop 32 bit support in 4.10Sravan Kumar Lakkimsetti2-11/+0
Change-Id: I4bd55029efb18daad6efbe8172892b9911a6dc71 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
2018-09-05Bug 538531 - POM version change for 4.10 releaseSravan Kumar Lakkimsetti5-5/+5
Change-Id: I22a7fa1170509c771d1284173aa708bf8ca6bee6 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
2018-08-21Bug 530393 - EPL 2.0 update for SWT for swt.example plug-insLars Vogel578-1724/+3448
This updates files to EPL 2.0. As this repo contains also LGPL code, I added only files containing 'Eclipse Public License 2.0' via: git grep --name-only 'Eclipse Public License 2.0' | xargs git add Regex used for replacement: find . -type f ! -name "*.exsd" ! -name "org.eclipse.jdt.ui.prefs" -exec sed -i 's/Eclipse Public License v1.0/Eclipse Public License 2.0/g' {} + find . -type f ! -name "*.exsd" ! -name "org.eclipse.jdt.ui.prefs" -exec sed -i -E 's/([[:blank:]]*[^[:blank:]])*([[:blank:]]*)http:\/\/www.eclipse.org\/legal\/epl-v10.html/\1\2https:\/\/www.eclipse.org\/legal\/epl-2.0\/\ \1\ \1\2SPDX-License-Identifier: EPL-2.0/' {} + # Get rid of the All rights reserved find . -type f ! -name "*.exsd" ! -name "org.eclipse.jdt.ui.prefs" ! -name "pom.xml" -exec sed -i -E 's/([[:blank:]]*[^[:blank:]])*([[:blank:]]*)(All rights reserved. )/\1\n\1\2/' {} + Change-Id: Ifad89e954b50112a71c30842130e558d171631f6 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-08-20Bug 530393 - EPL 2.0 for exsd in SWTLars Vogel1-3/+6
Only one exsd present in SWT. Regex used: find . -type f -name "*.exsd" -exec sed -i -E 's/http:\/\/www.eclipse.org\/legal\/epl-v10.html\&quot;\&gt;http:\/\/www.eclipse.org\/legal\/epl-v10.html\&lt;\/a\&gt;/https:\/\/www.eclipse.org\/legal\/epl-2.0\&quot;\&gt;https:\/\/www.eclipse.org\/legal\/epl-v20.html\&lt;\/a\&gt;\/\n\nSPDX-License-Identifier: EPL-2.0/' {} + find . -type f -name "*.exsd" | xargs sed -i 's/Eclipse Public License v1.0/Eclipse Public License 2.0/g' find . -type f -name "*.exsd" -exec sed -i -E 's/([[:blank:]]*[^[:blank:]])*([[:blank:]]*)(All rights reserved. )/\1\n\1\2/' {} + Change-Id: Ib27dc3787b5afdffac273cc764907696ad6f9f3e Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-08-14Bug 515502 - [HiDPI][Win10] SWT to receive/handle DPI changeI20180814-0900Niraj Modi1-0/+263
notification from OS Change-Id: Ic0b851b76cbd5b270f4d4337de6ac6f2fb81812c Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2018-07-18Bug 536024 [Win32][GTK] Show calendar week in SWT.CALENDAR AddedChristoph Luder2-3/+12
SWT.CALENDAR_WEEKNUMBERS constant ControlExample-DateTime: added checkbox to enable week numbers Snippet250: Adapted to show week numbers [GTK] DateTime - set GTK_CALENDAR_SHOW_WEEK_NUMBERS, if SWT.CALENDAR_WEEKNUMBERS is set [win32] DateTime - set MCS_WEEKNUMBERS style, if SWT.CALENDAR_WEEKNUMBERS is set - added OS.DTM_SETMCSTYLE (sets the style of the date and time picker) Change-Id: I5c35de0df3706d0fedae7374d67d6e7fe2f10c94 Signed-off-by: Christoph Luder <christoph.luder@gmail.com>
2018-06-11Bug 267981 - SWT.Border Checkbox not working in ControlExample for theXi Yan7-23/+45
DateTime Widget Disabled DROP_DOWN for TIME/CALENDAR styles, disabled BORDER check button for inapplicable widgets. Change-Id: Ia9695bb6a74c886cffaa01540e45e84e732e804b Signed-off-by: Xi Yan <xixiyan@redhat.com>
2018-06-05Bug 535318 - Update license to EPL-2.0 for platform.swt in about.htmlLars Vogel7-106/+174
Change-Id: I4526c5c3c2967d58e0e83f4d3eccfeabc268cff3 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-06-01Version 4.9 update in plaform.set as prep for the EPL 2.0 updateI20180601-0900Lars Vogel12-12/+12
Change-Id: I3ad44261dffe9d6d9097eb2c66a49ed31a57df25 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-05-29Bug 535191 - POM version change for 4.9 releaseAlexander Kurtakov5-5/+5
Change-Id: Icf2788319e154102ecb1002b3e9783824e709266 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-04-26Bug 232501 - Snippet to compute browser sizeLucas Bullen1-0/+70
Change-Id: Ib12e18cbdb4a0b1773a74c8818d4f0ca3469266a Signed-off-by: Lucas Bullen <lbullen@redhat.com>
2018-04-13Bug 533124 - Allow multi line text in CTabFolder.I20180413-2000ncazottes1-0/+57
CTabFolderRenderer with flag that take into account carriage return for multi line. Addition of Snippet371. Addition of Javadoc on CTabItem.setText. Addition of same cross platform behavior relating to the drop-down menu for additional tabs. Change-Id: Ib45891dcc90727830262887745c8ec1ad9be451d Signed-off-by: ncazottes <nicolas@cazottes.net>
2018-04-13Bug 533252 - Iterate over entrySet inLars Vogel1-21/+23
org.eclipse.swt.examples.controlexample.ColorTab Change-Id: Iffd49a876ba34081eaf69c1f906c90fae363a4e8 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-03-10Bug 248075 fix problem with date and +/- buttonslaeubi1-0/+1
Change-Id: I5e9e32caaf5b3a176f2fec3b210e6882f1ff2f3f Signed-off-by: laeubi <laeubi@laeubi-soft.de>
2018-03-07Bug 532063: Replace calls to getAverageCharWidth() withI20180307-0800Lakshmi Shanmugam6-8/+9
getAverageCharacterWidth() in SWT Update snippets and examples with the new API Change-Id: I68a61091f07c60978f60e99f1fd76da2b51537e9
2018-02-24Bug 531633 - Replace usage of System.getProperty("file.separator")Karsten Thoms2-4/+5
Change-Id: I609d4b7e6415a113e2afcf790cc72d9a7c6199c0 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-02-12Bug 248075 - DateTime does not support localizationlaeubi1-0/+54
Change-Id: Icf7d3a72d33b05e7b1d8f36a3e2d03a542cbb6b5 Signed-off-by: laeubi <laeubi@laeubi-soft.de>
2018-02-06Bug 530764 - Improve readability of Snippet19Lars Vogel1-22/+21
Change-Id: Ided3343821270cb4ea760c423756886dce1c8713 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-01-26Bug 530166 - [Sonar] Performance - Method invokes inefficient NumberLars Vogel2-11/+11
constructor; use static valueOf instead Sonar reports issues in org.eclipse.swt.examples, which should be fixed Change-Id: Ic55348a56f75991dcb2d9147add97e8c47610e85 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-01-19Bug 529979 - [sonar] Resolve "Write to static field from instance meth."René Purrio2-5/+4
Change-Id: I5d188d56aa3c916d15c6084769d8b23d2ad68486 Signed-off-by: René Purrio <rpurrio@itemis.de>
2018-01-16Bug 517401 - [GTK] ControlExample NPE when selecting listener afterAlexander Kurtakov1-2/+2
opened shell Decrease shellCount on shell disposal not only when closing all shells. Change-Id: I84823a71a5c4656ba9d927a79498b69349a9f413 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-15Bug 529811 - Convert ole win32 examples to Java 8Alexander Kurtakov7-167/+231
Convert ole win32 examples to Java 8 to kep it in sync with rest of swt git repo. Change-Id: I88be7760b3d98a159a9404e985b8a1f16d3d9df8 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-01-07Bug 529494 - Convert to StringBuilderAlexander Kurtakov19-64/+65
Change-Id: Ic959ed6d7ae7aa50da85837105570b2b69ae66d3 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-12-20Bug 528746 - [performance] Added getOffsetAtPoint(Point)Karsten Thoms1-6/+8
The IAE thrown in getOffsetAtLocation(Point) can degrade performance when occurring too often. The new method will return -1 when no character is at the specified location, which performs better. Deprecated getOffsetAtLocation(Point) in favor to getOffsetAtPoint(Point). Change-Id: Ia6bc87d4fb5d2c00330b5efa1ed523169da360a8 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-12-12Bug 527738 [Webkit2] implement setUrl(...POST..) support. (snippet 330)Roland Grunberg1-39/+71
When setURL contains POST data, bypass the Webkit2 API and use the Java API (HttpURLConnection) to perform the request. Set the URL globally so that when calling setText with the response string, any relative paths can be resolved using the base URL. This implementation does not currently support Webkit configured proxies and there may be issues with detecting various signals/listeners that operate on request/response objects given that these are handled by the Java side. Tested against Snippet330. --- Leo's modifications: Patchest 9 notes: - Added g_bytes_unref() to prevent memory leakage. - Making g_bytes_* dynamic otherwise we'll get jvm crash on gtk2. (g_byte* introduced in glib 2.32, but gtk2 only has glib 2.26(ish)). - Move data type conversion logic into one place. (html converted where it's used) - Reduced size of if statment, it was scary. - Add scope to code for clarity. - Don't touch this.postData & this.headers, they're only used by webkit1. Webkit2 shouldn't touch what it doesn't use. - Added if (Webkit1) guards around variables only used by webkit1. - Refactoring. - Avoid passing null value to webkit_web_view_load_bytes(.) if connection is not HTML. - Instead of passing empty array to encoding type, pass array with only a single 0. - Modified Snippet330.java to include some more examples for better testing and learning. - Verified: - against (modified) Snippet330 - jUnit tests. (w1/w2) ... Patchset 15: - Added counter support to setText(..) as a long setURI() could override a setText() call. Change-Id: Ic93747083af6af9933af3ca52149a1fb6e894d2c Signed-off-by: Roland Grunberg <rgrunber@redhat.com> Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-11-30Bug 527935 - Add Automatic-Module-Name to MANIFEST.MF in SWT repoAlexander Kurtakov11-8/+15
Change-Id: I7ac7f58b3c252b6baabaacae3ac4d3b197b76ba3 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-11-24Bug 527565 - [Webkit2] Ensure all Browser Snippets work (popup bloker)Leo Ufimtsev1-1/+1
minor change to snippet to point to a website that has actual popups. Change-Id: I3b7a3cc927aec95530c219c61c44deef004710d6 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
2017-11-09Bug 527018 - [refactoring] Replace use of Number constructors by valueOfKarsten Thoms4-8/+8
Change-Id: Ic80547adfda217ced4174be7efb43392ac69b786 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-10-31Bug 522020 - Customize different line spacing of StyledText withangelozerr2-0/+109
LineSpacingProvider Change-Id: I49be88a44178db1dc5a540a5cb5f3ede02f5688f Signed-off-by: angelozerr <angelo.zerr@gmail.com>
2017-09-27Bug 525264 - Use foreach in snippets and examplesAlexander Kurtakov1-4/+2
Change-Id: I083db281df708346964203015bd9663bb8e943e1 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-09-26Bug 524692 - Use try-with-resources in examplesAlexander Kurtakov11-166/+92
Change-Id: I1e23f36c6eef2f6fc087478f6a6a85735bad7a7f Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-09-15Bug 522211 - Use valueOf instead of Number constructorKarsten Thoms6-27/+27
Change-Id: Ic45b2ab3338b364a26c38b29b4c5adcd6de54ec9 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-08-17Bug 521024 - [api] Provide helpers to use lambda expressions for BrowserAlexander Kurtakov9-134/+91
listeners Adapt tests and examples. Change-Id: I49288d44f25ec2c7f370bc1481f5dd09a35c31a4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-17Bug 521018 - [api] Provide helpers to use lambda expressions forAlexander Kurtakov1-8/+5
CTabFolder2Listener Adapt examples. Change-Id: I0374018542d1b4235748a410ed948b67dbd56cfd Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-16Bug 520983 - [api] Provide helpers to use lambda expressions forAlexander Kurtakov6-65/+35
ShellListener Update examples to use it. Change-Id: I0cc8a41343cda757084f4d06e812fbda0dac53bf Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-11Bug 520822 - [api] Provide helpers to use lambda expressions forAlexander Kurtakov4-85/+59
MenuListener Use the new API in examples and snippets. Change-Id: I0ce58b739e3b6f293b5895b97bc43a2fd95eacad Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-10Update service release of o.e.swt.examples.Alexander Kurtakov2-3/+3
For changes in Photon stream Change-Id: Ib50bd8307d08c269c3351b0415b21cf718f018bc Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-08-10Bug 512342 - [api] Provide helper methods to use lambda expressions forAlexander Kurtakov15-175/+120
ControlListener Use the new helper methods through out the swt codebase. Change-Id: Ide620b5e33829fd7aaa772f78427aa0e69bca094 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-06-29Bug 518900 - Show alpha values in ControlExample's color tabIan Pun2-4/+3
Colortab now shows alpha values. Change-Id: I95a6b8f93948556362fb00f74f5a87df6b8ff4d1 Signed-off-by: Ian Pun <ipun@redhat.com>
2017-06-29Bug 518542 - Remove XULRunner related code from SWT source repositoryLakshmi Shanmugam9-750/+3
Removed Mozilla specific snippets and updated classpath files. Change-Id: Id0cfc0a4d60c2d333384a44a2a5fd0de77f0f400
2017-06-26Bug 518542: Remove XULRunner related code from SWT source repositoryAlexander Kurtakov2-9/+9
Changed Snippet260 to use Webkit as it's the only cross platform browser backend supported now. Make TextEditor example to not specify browser type at all. Change-Id: I95c777763b386f57d16141f97194ee8c3ffa10b3 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-06-22Bug 518542: Remove XULRunner related code from SWT source repositoryAlexander Kurtakov1-10/+4
Remove Mozilla from Browser tab in ControlExample. Change-Id: If7f633ee0fa341ac3e25ead7e4d87f524247e695 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-06-22Bug 517929 - Update POMs in the master for 4.8 release Alexander Kurtakov5-5/+5
Point to 4.8 parent pom. Change-Id: Ib1077addbb229ec9a84eb11c1882fd13816e0fec Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-30Bug 510728 - [CSS] Allow styling of tree headers via CSSConrad Groth1-2/+76
This adjusts the Control Example to support the selection of the tree header foreground and background. Also added tests for table and tree header colors. Change-Id: Ia4f0e7e96919e10286bf146407d2e71d4dbfab23 Signed-off-by: Conrad Groth <info@conrad-groth.de>
2017-03-30Bug 509086 - Use lambda helper methods in org.eclipse.swt.examples -Lars Vogel5-1137/+704
Part 4 This change contains also renaming of several internal variables to avoid syntax errors because of redefinition of variables. Also changes SelectionAdapter type in FileViewer, Tab and TextEditor classes to SelectionListener Also several variable renames in /layoutexample/Tab Change-Id: Ie90714bd17f990a2d9e8c7c2a2dc02d1078478ce Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2017-03-30Bug 509086 - Use lambda helper methods in org.eclipse.swt.examples -Lars Vogel6-253/+123
Part 3 Removes also unused imports Change-Id: Iccfd0e997249e4582661f37aecc539e14cfbebd9 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2017-03-29Bug 514351 - Make Snippets use lambdas (2)Lars Vogel1-48/+48
Change for SelectionListener The two remaining snippets below define both abstract methods from SelectionListener and cannot be replaced with lambdas Snippet360.java Snippet96.java Change-Id: If48e3b2fcdeb36a65938f1624b25724ab603bbe8 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>

Back to the top