Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Tests with SWING components(I would like to add support for testing swing components in my application. I know I have to create a custom command. I would like to set values for textfield and combobox. How do I approach the prob)
Tests with SWING components [message #1767621] Fri, 07 July 2017 17:51 Go to next message
Vaidhy Kumar is currently offline Vaidhy KumarFriend
Messages: 2
Registered: July 2017
Junior Member
I am new to RCPTT. I love this tool. I would like to add support for testing swing components in my application. I know I have to create a custom command. I would like to set values for textfield and combobox inside a swing container. How do I approach the problem? Please provide some guidance.
Re: Tests with SWING components [message #1769170 is a reply to message #1767621] Thu, 27 July 2017 08:52 Go to previous message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 109
Registered: March 2017
Senior Member
Hi Vaidhy,

I think this article can help you: https://www.eclipse.org/rcptt/documentation/userguide/ecl/new-command-guide/
Also, we have a repository with custom ECL commands for JavaFX controls here: https://github.com/xored/rcptt.extensions.ecl

The idea is to get access to your control from ECL command implementation
The following implementation can show you how to get your widget (FXCanvas in this example):
https://github.com/xored/rcptt.extensions.ecl/blob/master/runtime/plugins/org.eclipse.rcptt.extensions.ecl.impl/src/org/eclipse/rcptt/extensions/ecl/internal/commands/JfxCommandsService.java
You can check this test and see how custom commands can be used:
https://github.com/xored/rcptt.extensions.ecl/blob/master/tests/rcptt.extensions.ecl.jfx-tests/JfxCommands.test

Regards,
Viktoria
Previous Topic:Guidance on SWING components
Next Topic:The control "Next >" is disabled.
Goto Forum:
  


Current Time: Fri Jun 22 03:47:15 GMT 2018

Powered by FUDForum. Page generated in 0.01963 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top