Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
8b6b890
Support Native Image for Edge
tnikolai2 Apr 19, 2025
a439809
[Win32] Adjust tooltip to fit in one monitor #557
amartya4256 Apr 14, 2025
3d51493
[win32] Fix DnD across multiple monitors
akoch-yatta Mar 31, 2025
0a57c25
Convert DPIUtilTests to JUnit 5
akurtakov Apr 22, 2025
dd0e08f
[win32] Wrapper for existing image handles
akoch-yatta Apr 16, 2025
8d8eb96
Convert Printer* tests to JUnit 5
akurtakov Apr 23, 2025
792cc41
Release GtkPrinterOptionWidget
akurtakov Apr 23, 2025
bce8357
Preserved width/height on scaleUp/Down a Rectangle
akoch-yatta Apr 16, 2025
11b4c40
[GTK] Stop using DPIUtil (take 1)
akurtakov Apr 24, 2025
09a8f9a
[GTK] Stop using DPIUtil (take 2)
akurtakov Apr 24, 2025
d27e8c6
Use proper classloader for finding SVGRasterizer #1965 #2049
HeikoKlare Apr 23, 2025
7f26590
[win32] Refactoring as Image#imageProvider != null
akoch-yatta Apr 17, 2025
cd7e03b
[win32] Use consistent font zoom retrieval
akoch-yatta Apr 2, 2025
a827f9e
Move ImageData scaling logic to Image #62
amartya4256 Apr 22, 2025
08844dd
[win32] Handle all scaled font via SWTFontProvider
akoch-yatta Apr 2, 2025
75c0bc2
[Win32] Ensure consistent image data returned for data-based images
HeikoKlare Apr 3, 2025
8b5f32b
Replace usages of new Image(device, width, height) for Composite
ShahzaibIbrahim Apr 8, 2025
67de2f2
[win32] Fetch Font#handle through SWTFontProvider
akoch-yatta Mar 31, 2025
54a4a8e
[win32] Fix GC font for composite
akoch-yatta Apr 25, 2025
795eccc
[win32] Move and fix some Image initialization checks
akoch-yatta Apr 28, 2025
88c5c4e
[win32] Move of unified code from Wrapper to Image
akoch-yatta Apr 27, 2025
b5f91ba
Stop reexporting SWT spies from swt.tools bundle
akurtakov Apr 29, 2025
0b06ea9
Use the native device zoom when getting the handle for a cursor #2057
fedejeanne Apr 28, 2025
0167475
Destroy correct temporary handle when loading image data
fedejeanne Apr 30, 2025
d37f285
[win32] Delegate handle destruction to ImageHandle
akoch-yatta Apr 29, 2025
071da51
Extend ImageGcDrawer to support transparency
akoch-yatta Apr 28, 2025
d712320
Use ImageGcDrawer for smooth scaling of ImageData
akoch-yatta Apr 28, 2025
a491ec4
Fix svg fragment build
akurtakov May 1, 2025
d267b15
Fix Jenkinsfile to not ust strip but trim
akurtakov May 1, 2025
f3944f0
[Build] Activate javadoc generation and 'bree-libs' profile
HannesWell May 1, 2025
ea059c1
Fix javadoc errors
HannesWell May 1, 2025
fd68b05
Support disabling the GTK SessionManagerDBus via environment variables
HannesWell Apr 24, 2025
e71274c
Force qualifier updates
merks May 2, 2025
3f18980
Refine custom @field and @method javadoc tag heads
HannesWell May 2, 2025
878f7b3
Enable javadoc validation of examples in workspace
HannesWell May 2, 2025
cdffabb
[Build] Extend list of kept builds but reduce artifacts kept
HannesWell May 2, 2025
d4a6eb7
[Build] Pack swt-download zip after it was signed
HannesWell Apr 26, 2025
784614a
[win32] Prevent loop with fix swt.autoScale value
akoch-yatta May 5, 2025
192dc00
Do not use DPIUtil.getNativeDeviceZoom() to get the cursor handle #2057
fedejeanne May 5, 2025
741dd5a
Remove hue from ImageColorTransformer#forHSB #2060
HeikoKlare May 5, 2025
d28a201
Revert "Preserved width/height on scaleUp/Down a Rectangle"
HeikoKlare May 5, 2025
13f57c1
Edge: Ensure #getText() works even when javascript is disabled
sratz May 5, 2025
2024feb
[Win32] Add explicit supported OS version check and set to build 14393
HeikoKlare Apr 23, 2025
252e9f6
[Win32] Remove obsolete checks for non-supported Windows versions #2011
HeikoKlare Apr 23, 2025
42e154c
v4969r14
May 5, 2025
6d4dc1c
Artifacts due to rounding errors in StyledText
ShahzaibIbrahim Apr 29, 2025
be95610
Fix for normal monitor
ShahzaibIbrahim May 5, 2025
334e7a3
[GTK] Simplify Tree/Table
akurtakov May 5, 2025
ed397b1
[GTK] Remove more *InPixels method
akurtakov May 5, 2025
857e234
[GTK] Even more *InPixel method removal
akurtakov May 6, 2025
aae5714
Remove unused Font constructor
fedejeanne May 5, 2025
4bdad71
Remove SWT spies
laeubi May 3, 2025
efa3353
[win32] Adapt/copy all handles on Image copy
akoch-yatta May 6, 2025
3705f03
[win32] Utilize temporary image handles
akoch-yatta May 6, 2025
5c1f52f
[win32] Improve GC init for ImageGcDrawer
akoch-yatta May 6, 2025
b061c51
[win32] Encapsulate Font handle with win32_getHandle
ShahzaibIbrahim May 5, 2025
f78ef78
[win32] Create Font handles on demand
ShahzaibIbrahim May 5, 2025
7b21d9a
Simplify and modernize ImageLoader and other graphic related tests
HannesWell May 6, 2025
79e3d7d
[Win32] Move OS-version-related functionality to OsVersion class
HeikoKlare May 5, 2025
1ead383
v4969r15
May 6, 2025
f1b04f5
Fix surefire warnings in build
akurtakov May 6, 2025
71709bc
Deactivate toggling test for the Edge browser
fedejeanne May 7, 2025
c86bf83
Remove unused constructors in Color
fedejeanne May 6, 2025
17ed881
[Win32] Do not initialize font when already disposed
HeikoKlare May 7, 2025
73272ca
[win32] Remove Image#initialNativeZoom
akoch-yatta Apr 2, 2025
948c7c1
[win32] Fix for Image disablement
akoch-yatta May 7, 2025
f64d1a6
[win32] Fix double buffer paint with ImageGcDrawer
akoch-yatta May 7, 2025
4989164
[GTK] Fix webkit download on GTK 4
akurtakov May 7, 2025
2035f5e
v4969r16
May 8, 2025
992b595
Transform the field DPIUtil.autoScaleMethodSetting to a constant
fedejeanne May 7, 2025
c71e22b
Remove unused constructors in Font
fedejeanne May 7, 2025
ea6ce22
[GTK] Fix Combo.getSelection on GTK 4
akurtakov May 8, 2025
cd5fc23
Deprecate Image(Rectangle) constructor and replace usages
ShahzaibIbrahim May 2, 2025
89cee02
[win32] Reduce calls to Image#win32_getHandle(int)
akoch-yatta May 7, 2025
187082a
Remove dummy assert message in Combo tests
akurtakov May 8, 2025
74bcab3
[Gtk4] Use gtk_widget_set_visible to replace gtk_widget_hide/show #228
fedejeanne May 7, 2025
0277be5
v4969r17
May 12, 2025
c48ff5a
Preserve handles of images when changing zooms #2139
fedejeanne May 12, 2025
70bba22
Add a snippet to demonstrate icon disablement algorithms
killingerm May 9, 2025
02cc5b5
[Edge] Add fallback when WebView2 runtime is not present #2000
HeikoKlare Apr 25, 2025
f911cf7
Enable check for using GC on Image in unsupported use cases
ShahzaibIbrahim Apr 30, 2025
d335b1f
[win32] Choose best Image handle drawing with GC
akoch-yatta May 9, 2025
4bce157
Remove DPIUtil.getDeviceZoom() in test which just prints to console
arunjose696 May 13, 2025
7bfa6ee
Edge: Fix URI_FOR_CUSTOM_TEXT_PAGE in case of case mismatch
sratz May 13, 2025
e9bbf6a
[GTK4] Implement Combo.paste
akurtakov May 13, 2025
40829e1
[win32] Allow disablement of autoscale per Widget
akoch-yatta Feb 3, 2025
6937e39
[GTK4] Stop Shell.bringToTop from crashing on Gtk 4.x
akurtakov May 13, 2025
b56b5da
Remove needless SuppressWarning in a test
akurtakov May 14, 2025
5c78393
Convert TypedEvent tests to JUnit 5
akurtakov May 14, 2025
534c213
Do not show warnings for missing javadoc in examples
akurtakov May 14, 2025
d658775
Fit tooltip of the tree on a single monitor #62
amartya4256 May 12, 2025
052825c
Avoid source bundle for org.eclipse.swt.tools.base
merks May 16, 2025
aa76291
SWT Javadoc bash for 4.36
deepika-u May 19, 2025
1a472e5
Revert "Replace usages of new Image(device, width, height)..." #2162
fedejeanne May 19, 2025
1d49f9e
Simplify Spinner test
akurtakov May 20, 2025
0693454
Use text block in SnippetExplorer
akurtakov May 20, 2025
0fc42bf
[GTK] Fix Spinner [get|set]TextLimit on GTK 4
akurtakov May 21, 2025
4492b9b
v4969r18
May 21, 2025
604bf98
[win32] Adapt GC zoom when using plain images
akoch-yatta May 23, 2025
3c8c230
[Win32] Initialize copied image provider wrapper on correct image #2188
HeikoKlare May 28, 2025
cb916d1
Update release version for 4.37 (#2195)
eclipse-releng-bot Jun 3, 2025
6f3cb89
Configure SWT build scripts for 4.37
MohananRahul Jun 2, 2025
04cd3bc
Version bump(s) for 4.37 stream
eclipse-platform-bot Jun 4, 2025
4ebc563
v4970r1
Jun 4, 2025
cce552a
Bump EnricoMi/publish-unit-test-result-action from 2.19.0 to 2.20.0
dependabot[bot] Jun 4, 2025
159ea0e
[Build] Fix formatting and typos in Jenkins pipeline
HannesWell Jun 5, 2025
e71aa43
[Build] Use Eclipse Platform Bot to commit built SWT binaries
HannesWell Jun 5, 2025
938e8e0
[GTK] Safeguard ATK to not be used on GTK 4.x
akurtakov May 27, 2025
7018ce2
Streamline SnippetLauncher
akurtakov Jun 4, 2025
03e404b
Use Maven 3.9.10 in GHAs
akurtakov Jun 6, 2025
a7bf803
Remove unused apifilters
akurtakov Jun 6, 2025
dd96672
Reduce visibility of test classes in Win32 fragment
HeikoKlare Jun 6, 2025
817426b
Fix setTextContainingScript Test #1843
amartya4256 May 21, 2025
7e2d06c
Version bump for 4.37 stream
HeikoKlare Jun 6, 2025
dc53ad4
Incorrect Zoom Level Applied When Dragging
ShahzaibIbrahim May 21, 2025
6f23ce0
Replace getDeviceZoom() call in ImageTransfer class
arunjose696 May 16, 2025
68d44fb
Version bump for 4.37 stream
HeikoKlare Jun 6, 2025
d64567b
Remove obsolete API filters for SWTEventListener
HeikoKlare Jun 6, 2025
d21c15b
Sporadically failing Browser Tests logging #1466
amartya4256 May 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/junit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
done

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@afb2984f4d89672b2f9d9c13ae23d53779671984 # v2.19.0
uses: EnricoMi/publish-unit-test-result-action@3a74b2957438d0b6e2e61d67b05318aa25c9e6c6 # v2.20.0
id: test-results
with:
commit: ${{ github.event.workflow_run.head_sha }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9
maven-version: 3.9.10
- name: Build
env:
GTK_XCFLAGS: '-Wno-deprecated-declarations'
Expand All @@ -72,7 +72,7 @@ jobs:
--threads 1C
-DforkCount=1
'-Dnative=${{ matrix.config.native }}'
-Papi-check
-Papi-check -Pjavadoc
'-Dtycho.baseline.replace=none'
--fail-at-end
-DskipNativeTests=false
Expand Down
43 changes: 21 additions & 22 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def runOnNativeBuildAgent(String platform, Closure body) {

/** Returns the download URL of the JDK against whose C headers (in the 'include/' folder) and native libraries the SWT natives are compiled.*/
def getNativeJdkUrl(String os, String arch) { // To update the used JDK version update the URL template below
if('win32'.equals(os) && 'aarch64'.equals(arch)) {
if ('win32'.equals(os) && 'aarch64'.equals(arch)) {
// Temporary workaround until there are official Temurin GA releases for Windows on ARM that can be consumed through JustJ
dir("${WORKSPACE}/repackage-win32.aarch64-jdk") {
sh """
Expand All @@ -71,7 +71,7 @@ def getNativeJdkUrl(String os, String arch) { // To update the used JDK version
}

def getLatestGitTag() {
return sh(script: 'git describe --abbrev=0 --tags --match v[0-9][0-9][0-9][0-9]*', returnStdout: true).strip()
return sh(script: 'git describe --abbrev=0 --tags --match v[0-9][0-9][0-9][0-9]*', returnStdout: true).trim()
}

def getSWTVersions() { // must be called from the repository root
Expand All @@ -86,10 +86,10 @@ def Set NATIVES_CHANGED = []

pipeline {
options {
skipDefaultCheckout() // Specialiced checkout is performed below
skipDefaultCheckout() // Specialized checkout is performed below
timestamps()
timeout(time: 180, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr:'5'))
buildDiscarder(logRotator(numToKeepStr: 'master'.equals(env.BRANCH_NAME) ? '20' : '5', artifactNumToKeepStr: 'master'.equals(env.BRANCH_NAME) ? '3' : '1' ))
disableConcurrentBuilds(abortPrevious: true)
}
agent {
Expand All @@ -116,32 +116,31 @@ pipeline {
script {
def authorMail = sh(script: 'git log -1 --pretty=format:"%ce" HEAD', returnStdout: true)
echo 'HEAD commit author: ' + authorMail
if ('[email protected]'.equals(authorMail) && !params.forceNativeBuilds) {
// Prevent endless build-loops due to self triggering because of a previous automated build of SWT-natives and the associated updates.
def buildBotMail = '[email protected]'
if (buildBotMail.equals(authorMail) && !params.forceNativeBuilds) {
// Prevent endless build-loops due to self triggering because of a previous automated build of natives and the associated updates.
currentBuild.result = 'ABORTED'
error('Abort build only triggered by automated SWT-natives update.')
}
}
sh '''
sh """
java -version
git version
git lfs version
git config --global user.email '${buildBotMail}'
git config --global user.name 'Eclipse Platform Bot'
git config --unset core.hooksPath # Jenkins disables hooks by default as security feature, but we need the hooks for LFS
git lfs update # Install Git LFS hooks in repository, which has been skipped due to the initially nulled hookspath
git lfs pull
git fetch --all --tags --quiet
git remote set-url --push origin [email protected]:eclipse-platform/eclipse.platform.swt.git
'''
"""
}
}
}
}
stage('Check if SWT-binaries build is needed') {
steps {
dir('eclipse.platform.swt') {
sh'''
java -version
git config --global user.email '[email protected]'
git config --global user.name 'Eclipse Releng Bot'
'''
script {
def allWS = ['cocoa', 'gtk', 'win32']
def libraryFilePattern = [ 'cocoa' : 'libswt-*.jnilib', 'gtk' : 'libswt-*.so', 'win32' : 'swt-*.dll' ]
Expand All @@ -157,9 +156,9 @@ pipeline {
'''
def sourceFoldersProps = readProperties(file: 'nativeSourceFolders.properties')
def sources = sourceFoldersProps.collectEntries{ k, src -> [ k, src.split(',').collect{ f -> '\'' + f + '\''}.join(' ') ] }
for(ws in allWS) {
for (ws in allWS) {
def diff = sh(script: "git diff HEAD ${swtTag} ${sources.src_common} ${sources['src_' + ws]}", returnStdout: true)
if (!diff.strip().isEmpty()) {
if (!diff.trim().isEmpty()) {
NATIVES_CHANGED += ws
}
}
Expand All @@ -175,7 +174,7 @@ pipeline {
sed -i -e "s/rev=${versions.rev}/rev=${versions.new_rev}/g" \
'bundles/org.eclipse.swt/Eclipse SWT/common/library/make_common.mak'
"""
for(ws in allWS) {
for (ws in allWS) {
if (NATIVES_CHANGED.contains(ws)) {
sh """
# Delete native binaries to be replaced by subsequent binaries build
Expand Down Expand Up @@ -239,7 +238,7 @@ pipeline {
script {
def (ws, os, arch) = env.PLATFORM.split('\\.')
dir("jdk-download-${ws}.${arch}") {
// Fetch the JDK, which provides the C header-files and shared native libraries, against which the natives are build.
// Fetch the JDK, which provides the C header files and shared native libraries against which the native code is built.
sh "curl ${getNativeJdkUrl(os, arch)} | tar -xzf - include/ lib/"
stash name:"jdk.resources.${ws}.${arch}", includes: "include/,lib/"
deleteDir()
Expand Down Expand Up @@ -350,8 +349,8 @@ pipeline {
dir('eclipse.platform.swt') {
sh '''
mvn clean verify \
--batch-mode --threads 1C -V -U -e -DforkCount=0 \
-Papi-check \
--batch-mode --threads 1C -V -U -e \
-Pbree-libs -Papi-check -Pjavadoc \
-Dcompare-version-with-baselines.skip=false \
-Dorg.eclipse.swt.tests.junit.disable.test_isLocal=true \
-Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true
Expand Down Expand Up @@ -382,11 +381,11 @@ pipeline {
sshagent(['github-bot-ssh']) {
dir('eclipse.platform.swt') {
sh """
# Check for the master-branch as late as possible to have as much of the same behaviour as possible
# Check for the master-branch as late as possible to have as much of the same behavior as possible
if [[ '${BRANCH_NAME}' == master ]] || [[ '${BRANCH_NAME}' =~ R[0-9]+_[0-9]+(_[0-9]+)?_maintenance ]]; then
if [[ ${params.skipCommit} != true ]]; then

# Don't rebase and just fail in case another commit has been pushed to the master/maintanance branch in the meantime
# Don't rebase and just fail in case another commit has been pushed to the master/maintenance branch in the meantime
git push origin HEAD:refs/heads/${BRANCH_NAME}
git push origin refs/tags/${getLatestGitTag()}

Expand Down
2 changes: 1 addition & 1 deletion binaries/.settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
org.eclipse.jdt.core.compiler.problem.invalidJavadoc=error
org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=disabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=disabled
org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
Expand Down
Loading