Mashups in Presto Wires : Customizing Wires : Update Labels and Icons for Custom Blocks in Wires : Block Labels
Block Labels
You can add configuration to change the default label for a custom Wires block within the macro that generates the block. Use the <presto:macro-meta> statement and add <block> and <label> wtihin <block>:
<macros xmlns="http://www.open-mashup.org/schemas/v1.0/EMML"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openmashup.org/schemas/v1.0/EMML/..
/schemas/EMMLPrestoSpec.xsd"
domain="myBlocks">

<macro name="helloWorld"
xmlns:presto="http://www.jackbe.com/v1.0/EMMLPrestoExtensions"
xmlns:macro="http://www.openmashup.org/schemas/v1.0/EMMLMacro">

<presto:macro-meta>
<block usage="Wires">
<label>Hello world!</label>
</block>
</presto:macro-meta>
....
</macro>
...
</macros>
Tip:  
Custom labels can be any text, including spaces, that is valid in XML. Characters that are XML delimiters, such as &, must be escaped.
It is a good practice to keep labels for custom blocks fairly short to ensure that they fit in the menu and do not take an excessive amount of space on the canvas. Length is less of an issue for custom property labels.
Copyright © 2013-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback