editElementButton.setText("change element type"); //$NON-NLS-1$
editElementButton.setDescription("Change the element type to another type"); //$NON-NLS-1$
editElementButton.setIconId(PluginImage.EDIT_ICON.getImageKey());
data.getDomainSpecificContextButtons().add(editElementButton);
CustomContext customContext = new CustomContext();
customContext.putProperty("org.activiti.designer.changetype.pictogram", pe);
if (bo instanceof Task) {
addTaskButtons(editElementButton, (Task) bo, customContext);
} else if (bo instanceof Gateway) {
addGatewayButtons(editElementButton, (Gateway) bo, customContext);