Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Jubula » Extending actions with "parameter" type
Extending actions with "parameter" type [message #1017214] Mon, 11 March 2013 04:05 Go to next message
Carlos Feal is currently offline Carlos Feal
Messages: 5
Registered: March 2013
Junior Member
Hi all,

I need to extend a component to add new actions. These actions must have a "parameter" type (as "store" group of actions).
Until now, when implementing extensions, the methods I've used in the server implementation class are of the type:

public void method1 (String param1, String param2, .. String paramN)

And the file componentConfiguration.xml I define input parameters as:
		<action name="actionName">
			<method>method1</method>			
			<param>
			<type>java.lang.String</type>
			</param>
			<param>
			<type>java.lang.String</type>
			</param>
                        ...
			<param>
			<type>java.lang.String</type>
			</param>
		</action>

If you need to return a String instead of void, how componentConfiguration.xml defined so that the String returned is a "parameter" type in Jubula?

The case is that I need to get the last line of a JEditorPane, and I don't want to extend functions (as substring). I want to do a specific action for the component JEditorPane.
Thanks a lot and sorry for my poor English
Re: Extending actions with "parameter" type [message #1017605 is a reply to message #1017214] Tue, 12 March 2013 03:27 Go to previous messageGo to next message
Carlos Feal is currently offline Carlos Feal
Messages: 5
Registered: March 2013
Junior Member
Sorry, when I say "parameter" type I mean "variable" type.
Re: Extending actions with "parameter" type [message #1020501 is a reply to message #1017605] Mon, 18 March 2013 06:17 Go to previous message
Alexandra Schladebeck is currently offline Alexandra Schladebeck
Messages: 1055
Registered: July 2009
Senior Member
Hi,

I think that this question would be best asked in the dev-list. Can you repost it there?

Thanks!
Alex
Previous Topic:scroll to invisible Component
Next Topic:Jubula 2.0 (Kepler Preview) and GUIdancer 7.0 have been released
Goto Forum:
  


Current Time: Thu Apr 17 23:50:08 EDT 2014

Powered by FUDForum. Page generated in 0.02056 seconds