public Widget getModulesNewAssetMenu(String perspectiveType) {
if ( SOAPerspective.SOA_PERSPECTIVE.equals( perspectiveType ) ) {
return (new SOAServicesNewAssetMenu( clientFactory,
eventBus )).asWidget();
} else if ( AuthorPerspective.AUTHOR_PERSPECTIVE.equals( perspectiveType ) ) {
return (new PackagesNewAssetMenu( clientFactory,
eventBus )).asWidget();
} else {
//Default
return (new PackagesNewAssetMenu( clientFactory,
eventBus )).asWidget();
}
}