private Widget getSetterLabel() { HorizontalPanel horiz = new HorizontalPanel(); if (model.state == ActionCallMethod.TYPE_UNDEFINED) { Image edit = DroolsGuvnorImages.INSTANCE.AddFieldToFact(); edit.setAltText(Constants.INSTANCE.AddAnotherFieldToThisSoYouCanSetItsValue()); edit.setTitle(Constants.INSTANCE.AddAnotherFieldToThisSoYouCanSetItsValue()); edit.addClickHandler( new ClickHandler() { public void onClick(ClickEvent event) { Widget w = (Widget) event.getSource(); showAddFieldPopup(w); } }); horiz.add( new SmallLabel( HumanReadable.getActionDisplayName("call") + " [" + model.variable + "]")); // NON-NLS if (!this.readOnly) { horiz.add(edit); } } else { horiz.add( new SmallLabel( HumanReadable.getActionDisplayName("call") + " [" + model.variable + "." + model.methodName + "]")); // NON-NLS } return horiz; }