Skip to content

Add IntelliJ runners for Create GUI Form and Open GUI Builder#4948

Merged
shai-almog merged 2 commits into
masterfrom
feature/intellij-gui-form-runners
May 14, 2026
Merged

Add IntelliJ runners for Create GUI Form and Open GUI Builder#4948
shai-almog merged 2 commits into
masterfrom
feature/intellij-gui-form-runners

Conversation

@shai-almog
Copy link
Copy Markdown
Collaborator

@shai-almog shai-almog commented May 14, 2026

Summary

  • Adds two IntelliJ Maven run configurations to the bundled workspace.xml (the one that gets dropped into every generated project's .idea/):
    • Create GUI Formcn1:create-gui-form with className=$Prompt$ and guiType=Form
    • Open GUI Buildercn1:guibuilder with className=$Prompt$
  • Both go under the existing Tools folder alongside Generate Native Interfaces, Codename One Settings, Update Codename One.
  • $Prompt$ is IntelliJ's built-in macro that pops up a dialog asking for the value at run time, so users no longer need to hand-edit the run config or type a full Maven command to create a form or open the GUI builder for a specific class.
  • Mirrors the same two configurations into the initializr's IntelliJ template at scripts/initializr/common/src/main/resources/idea.zip so projects generated from start.codenameone.com also pick them up.

Suggested by a community member on the forum.

Test plan

  • Generate a fresh CN1 project via the initializr and confirm the new runners appear in the Tools group in IntelliJ.
  • Run Create GUI Form, enter a fully-qualified class name in the prompt, and verify the form sources are generated.
  • Run Open GUI Builder, enter the class name of an existing GUI form, and verify the GUI builder launches against it.
  • Sanity-check that opening the regenerated idea.zip in any unzip tool still lists the same five files (encodings.xml, debugger.xml, workspace.xml, misc.xml, compiler.xml).

🤖 Generated with Claude Code

Expose the existing cn1:create-gui-form and cn1:guibuilder Maven
goals as IntelliJ run configurations in the bundled workspace.xml,
under the Tools folder. The className parameter is wired to the
$Prompt$ macro so IntelliJ asks for it on each invocation; guiType
defaults to Form for create-gui-form.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented May 14, 2026

Compared 16 screenshots: 16 matched.
✅ JavaScript-port screenshot tests passed.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

✅ Continuous Quality Report

Test & Coverage

Static Analysis

  • SpotBugs [Report archive]
    • ByteCodeTranslator: 0 findings (no issues)
    • android: 0 findings (no issues)
    • codenameone-maven-plugin: 0 findings (no issues)
    • core-unittests: 0 findings (no issues)
    • ios: 0 findings (no issues)
  • PMD: 0 findings (no issues) [Report archive]
  • Checkstyle: 0 findings (no issues) [Report archive]

Generated automatically by the PR CI workflow.

…a.zip

The initializr ships its own .idea/ template inside scripts/initializr/
common/src/main/resources/idea.zip. Keep the bundled workspace.xml in
that template in sync with the maven-plugin copy by adding the same
two run configurations (cn1:create-gui-form with className=$Prompt$
and guiType=Form; cn1:guibuilder with className=$Prompt$) under the
Tools folder.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented May 14, 2026

Compared 105 screenshots: 105 matched.
✅ Native iOS screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 266 seconds

Build and Run Timing

Metric Duration
Simulator Boot 80000 ms
Simulator Boot (Run) 1000 ms
App Install 17000 ms
App Launch 13000 ms
Test Execution 323000 ms

Detailed Performance Metrics

Metric Duration
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 native encode 1491.000 ms
Base64 CN1 encode 1655.000 ms
Base64 encode ratio (CN1/native) 1.110x (11.0% slower)
Base64 native decode 976.000 ms
Base64 CN1 decode 1652.000 ms
Base64 decode ratio (CN1/native) 1.693x (69.3% slower)
Base64 SIMD encode 603.000 ms
Base64 encode ratio (SIMD/native) 0.404x (59.6% faster)
Base64 encode ratio (SIMD/CN1) 0.364x (63.6% faster)
Base64 SIMD decode 655.000 ms
Base64 decode ratio (SIMD/native) 0.671x (32.9% faster)
Base64 decode ratio (SIMD/CN1) 0.396x (60.4% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 73.000 ms
Image createMask (SIMD on) 12.000 ms
Image createMask ratio (SIMD on/off) 0.164x (83.6% faster)
Image applyMask (SIMD off) 208.000 ms
Image applyMask (SIMD on) 101.000 ms
Image applyMask ratio (SIMD on/off) 0.486x (51.4% faster)
Image modifyAlpha (SIMD off) 184.000 ms
Image modifyAlpha (SIMD on) 80.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.435x (56.5% faster)
Image modifyAlpha removeColor (SIMD off) 229.000 ms
Image modifyAlpha removeColor (SIMD on) 115.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.502x (49.8% faster)
Image PNG encode (SIMD off) 1358.000 ms
Image PNG encode (SIMD on) 1190.000 ms
Image PNG encode ratio (SIMD on/off) 0.876x (12.4% faster)
Image JPEG encode 818.000 ms

@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented May 14, 2026

Compared 106 screenshots: 106 matched.

Native Android coverage

  • 📊 Line coverage: 11.37% (6288/55313 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 9.03% (31129/344567), branch 3.91% (1282/32768), complexity 5.01% (1574/31420), method 8.77% (1290/14701), class 14.81% (295/1992)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 11.37% (6288/55313 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 9.03% (31129/344567), branch 3.91% (1282/32768), complexity 5.01% (1574/31420), method 8.77% (1290/14701), class 14.81% (295/1992)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6327 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.ClassReader – 0.00% (0/1519 lines covered)
      • kotlin.collections.kotlin.collections.CollectionsKt___CollectionsKt – 0.00% (0/1148 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.MethodWriter – 0.00% (0/923 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/730 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/623 lines covered)
      • org.jacoco.agent.rt.internal_b6258fc.asm.org.jacoco.agent.rt.internal_b6258fc.asm.Frame – 0.00% (0/564 lines covered)
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysJvmKt – 0.00% (0/495 lines covered)
      • kotlinx.coroutines.kotlinx.coroutines.JobSupport – 0.00% (0/423 lines covered)

Benchmark Results

Detailed Performance Metrics

Metric Duration
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 native encode 862.000 ms
Base64 CN1 encode 106.000 ms
Base64 encode ratio (CN1/native) 0.123x (87.7% faster)
Base64 native decode 1002.000 ms
Base64 CN1 decode 230.000 ms
Base64 decode ratio (CN1/native) 0.230x (77.0% faster)
Image encode benchmark status skipped (SIMD unsupported)

@github-actions
Copy link
Copy Markdown
Contributor

Cloudflare Preview

@shai-almog
Copy link
Copy Markdown
Collaborator Author

shai-almog commented May 14, 2026

Compared 102 screenshots: 102 matched.
✅ Native iOS Metal screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 164 seconds

Build and Run Timing

Metric Duration
Simulator Boot 77000 ms
Simulator Boot (Run) 0 ms
App Install 22000 ms
App Launch 5000 ms
Test Execution 278000 ms

Detailed Performance Metrics

Metric Duration
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 native encode 1777.000 ms
Base64 CN1 encode 1913.000 ms
Base64 encode ratio (CN1/native) 1.077x (7.7% slower)
Base64 native decode 1389.000 ms
Base64 CN1 decode 1381.000 ms
Base64 decode ratio (CN1/native) 0.994x (0.6% faster)
Base64 SIMD encode 846.000 ms
Base64 encode ratio (SIMD/native) 0.476x (52.4% faster)
Base64 encode ratio (SIMD/CN1) 0.442x (55.8% faster)
Base64 SIMD decode 676.000 ms
Base64 decode ratio (SIMD/native) 0.487x (51.3% faster)
Base64 decode ratio (SIMD/CN1) 0.490x (51.0% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 162.000 ms
Image createMask (SIMD on) 83.000 ms
Image createMask ratio (SIMD on/off) 0.512x (48.8% faster)
Image applyMask (SIMD off) 224.000 ms
Image applyMask (SIMD on) 104.000 ms
Image applyMask ratio (SIMD on/off) 0.464x (53.6% faster)
Image modifyAlpha (SIMD off) 136.000 ms
Image modifyAlpha (SIMD on) 77.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.566x (43.4% faster)
Image modifyAlpha removeColor (SIMD off) 320.000 ms
Image modifyAlpha removeColor (SIMD on) 81.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.253x (74.7% faster)
Image PNG encode (SIMD off) 1958.000 ms
Image PNG encode (SIMD on) 1223.000 ms
Image PNG encode ratio (SIMD on/off) 0.625x (37.5% faster)
Image JPEG encode 646.000 ms

@shai-almog shai-almog merged commit fad364b into master May 14, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant