Skip to content

Commit 6e25b8e

Browse files
committed
Update to current script parameter syntax
1 parent 1fe6f73 commit 6e25b8e

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

src/main/resources/script_templates/Intro/Greeting.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// @String name
2-
// @OUTPUT String greeting
1+
#@ String name
2+
#@output String greeting
33

44
// A JavaScript script with parameters.
55
// It is the duty of the scripting framework to harvest

src/main/resources/script_templates/Intro/Widgets.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
// @boolean(label = "boolean") pBoolean
2-
// @byte(label = "byte") pByte
3-
// @char(label = "char") pChar
4-
// @double(label = "double") pDouble
5-
// @float(label = "float") pFloat
6-
// @int(label = "int") pInt
7-
// @long(label = "long") pLong
8-
// @short(label = "short") pShort
9-
// @Boolean(label = "Boolean") oBoolean
10-
// @Byte(label = "Byte") oByte
11-
// @Character(label = "Character") oCharacter
12-
// @Double(label = "Double") oDouble
13-
// @Float(label = "Float") oFloat
14-
// @Integer(label = "Integer") oInteger
15-
// @Long(label = "Long") oLong
16-
// @Short(label = "Short") oShort
17-
// @int(min = 0, max = 1000) boundedInteger
18-
// @double(min = 0.2, max = 1000.7, stepSize = 12.34) boundedDouble
19-
// @BigInteger bigInteger
20-
// @BigDecimal bigDecimal
21-
// @String string
22-
// @File file
23-
// @ColorRGB color
24-
// @OUTPUT String result
1+
#@ boolean (label="boolean") pBoolean
2+
#@ byte (label="byte") pByte
3+
#@ char (label="char") pChar
4+
#@ double (label="double") pDouble
5+
#@ float (label="float") pFloat
6+
#@ int (label="int") pInt
7+
#@ long (label="long") pLong
8+
#@ short (label="short") pShort
9+
#@ Boolean (label="Boolean") oBoolean
10+
#@ Byte (label="Byte") oByte
11+
#@ Character (label="Character") oCharacter
12+
#@ Double (label="Double") oDouble
13+
#@ Float (label="Float") oFloat
14+
#@ Integer (label="Integer") oInteger
15+
#@ Long (label="Long") oLong
16+
#@ Short (label="Short") oShort
17+
#@ int (min=0, max=1000) boundedInteger
18+
#@ double (min=0.2, max=1000.7, stepSize=12.34) boundedDouble
19+
#@ BigInteger bigInteger
20+
#@ BigDecimal bigDecimal
21+
#@ String string
22+
#@ File file
23+
#@ ColorRGB color
24+
#@output String result
2525

2626
// A JavaScript script exercising various parameter types.
2727
// It is the duty of the scripting framework to harvest

0 commit comments

Comments
 (0)