for ( Object operationObj : operationNodes ) {
Element operationNode = (Element) operationObj;
String id = XmlDom4JHelper.getNodeText( "id", operationNode, "" ); //$NON-NLS-1$ //$NON-NLS-2$
String perspective = XmlDom4JHelper.getNodeText( "perspective", operationNode, "" ); //$NON-NLS-1$ //$NON-NLS-2$
if ( StringUtils.isNotEmpty( id ) ) {
PluginOperation operation = new PluginOperation( id );
if ( StringUtils.isNotEmpty( perspective ) ) {
operation.setPerspective( perspective );
}
contentInfo.addOperation( operation );
}
}