static private GetIdString ( IUnresolvedEntity member ) : string | ||
member | IUnresolvedEntity | |
return | string |
public void Open(INamedElement element) { var member = element as IUnresolvedEntity; if (member == null) { var entity = element as IMember; if (entity != null) { member = entity.UnresolvedMember; } } if (member == null) { var entity = element as IType; if (entity != null) { member = entity.GetDefinition().Parts [0]; } } if (member == null) { return; } var url = AssemblyBrowserWidget.GetIdString(member); try { widget.Open(url); } catch (Exception e) { LoggingService.LogError("Error while navigating to " + url, e); MessageService.ShowException(e, GettextCatalog.GetString("{0} could not be opened", url), GettextCatalog.GetString("Error while opening assembly")); } }
public void Open(INamedElement element) { var member = element as IUnresolvedEntity; if (member == null) { var entity = element as IMember; if (entity != null) { member = entity.UnresolvedMember; } } if (member == null) { var entity = element as IType; if (entity != null) { member = entity.GetDefinition().Parts [0]; } } if (member == null) { return; } var url = AssemblyBrowserWidget.GetIdString(member); widget.Open(url); }