Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED]Is it possible to concatenate strings to select a value from a combo or vector ?(#strings #concatenate #combo #vector #select_item)
[SOLVED]Is it possible to concatenate strings to select a value from a combo or vector ? [message #1716398] Thu, 03 December 2015 13:44 Go to next message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

Hi Folks,
I have the following line that return a number in random way

invoke-static -pluginId org.eclipse.core.runtime -className java.util.concurrent.ThreadLocalRandom -methodName current | invoke nextInt 10]


I'd like to use the results to select data so I need to change the strings
"values[value from the code line]".


I think to solve it using procedures and global variables anyway I's like to know is exist a quick method.
Thank you guys in advance.


"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova

[Updated on: Thu, 03 December 2015 14:02]

Report message to a moderator

Re: Is it possible to concatenate strings ? [message #1716403 is a reply to message #1716398] Thu, 03 December 2015 14:00 Go to previous message
Angelo Luciani is currently offline Angelo LucianiFriend
Messages: 129
Registered: September 2015
Location: Milan
Senior Member

Solved I use a concat method

show-alert[get-view "External Identification Codes" | get-table | get-combo|get-property [ concat [concat "values[" [invoke-static -pluginId org.eclipse.core.runtime -className java.util.concurrent.ThreadLocalRandom -methodName current | invoke nextInt 10]]"]" ] -raw ]


"Ce sont les petits désirs qui rendent un jeune homme hardi."
Giovanni Giacomo Casanova
Previous Topic:How to take a screenshot containing a menu
Next Topic:Is there an ECL command to stop running a script?
Goto Forum:
  


Current Time: Thu Mar 28 20:38:16 GMT 2024

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

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

Back to the top