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