* @param required denotes whether this is a required field
* @return {@link HyperlinkedTextAttribute} widget set
*/
protected HyperlinkedTextAttribute createStepAttribute(Composite client, String attr, boolean required) {
// TODO: make this return a HyperlinkedComboAttribute?
HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
public void openHyperlink() {
XmlBackedHyperlinkProvider provider = new StepReferenceHyperlinkProvider(getConfigEditor()
.getTextViewer(), getInput(), attr);
provider.open(text.getText());
}
};
linkAttr.createAttribute(2);
return linkAttr;
}