super.init();
this.definition = (IDiagramNodeDefaultActionDef)super.definition;
final String actionId = this.definition.getActionId().content();
final String actionHandlerId = this.definition.getActionHandlerId().content();
final SapphireAction action = getAction( actionId );
this.label = this.definition.getLabel().localized( CapitalizationType.FIRST_WORD_ONLY, false );
this.description = this.definition.getLabel().localized( CapitalizationType.NO_CAPS, false );
if( actionHandlerId == null )
{
this.actionHandler = action.getFirstActiveHandler();
}
else
{
for( SapphireActionHandler h : action.getActiveHandlers() )
{
if( h.getId().equalsIgnoreCase( actionHandlerId ) )
{
this.actionHandler = h;
break;