Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Guidance on SWING components(Newbie looking for guidance on recording swing UI interactions)
Guidance on SWING components [message #1767614] Fri, 07 July 2017 15:16 Go to next message
Vaidhy Kumar is currently offline Vaidhy KumarFriend
Messages: 2
Registered: July 2017
Junior Member
I work on a eclipse rcp based software. It has also about 30% of UI based on swing dialogs,Jpanel etc. RCPPT does a great job on all the SWT/eclipse stuff but SWING is not supported. if I were to write a custom command, I am looking for guidance on how do I approach the problem. Should I find the active swing dialog and recursively search for other swing components under it? I like the elegance of get-label kind of commands. Is it easy to add support to swing via a custom command?
Re: Guidance on SWING components [message #1769168 is a reply to message #1767614] Thu, 27 July 2017 08:51 Go to previous message
Viktoria Dlugopolskaya is currently offline Viktoria DlugopolskayaFriend
Messages: 124
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:Random Exit code 13 while running maven suite
Next Topic:Tests with SWING components
Goto Forum:
  


Current Time: Sat Apr 27 01:50:00 GMT 2024

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

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

Back to the top