public IEditorNavigationType CreateEditorNavigationType(JavaEditorNavigationTypeDefinition definition, string type, IEnumerable <IEditorNavigationType> baseTypes) { var navigationType = new EditorNavigationType(definition, type, baseTypes); _navigationTypes.Add(type, navigationType); return(navigationType); }
IEditorNavigationType IJavaEditorNavigationTypeRegistryService.CreateEditorNavigationType(JavaEditorNavigationTypeDefinition definition, string type, IEnumerable<IEditorNavigationType> baseTypes) { Contract.Requires<ArgumentNullException>(definition != null); Contract.Requires<ArgumentNullException>(type != null); Contract.Ensures(Contract.Result<IEditorNavigationType>() != null); throw new NotImplementedException(); }
public EditorNavigationType(JavaEditorNavigationTypeDefinition definition, string type, IEnumerable<IEditorNavigationType> baseTypes) { if (type == null) throw new ArgumentNullException(); baseTypes = baseTypes ?? EmptyNavigationTypes; if (baseTypes.Contains(null)) throw new ArgumentException(); if (baseTypes.Any(b => b.IsOfType(type))) throw new ArgumentException(); this.Type = type; this.BaseTypes = baseTypes.ToArray(); this.Definition = definition; }
public EditorNavigationType(JavaEditorNavigationTypeDefinition definition, string type, IEnumerable <IEditorNavigationType> baseTypes) { if (type == null) { throw new ArgumentNullException(); } baseTypes = baseTypes ?? EmptyNavigationTypes; if (baseTypes.Contains(null)) { throw new ArgumentException(); } if (baseTypes.Any(b => b.IsOfType(type))) { throw new ArgumentException(); } this.Type = type; this.BaseTypes = baseTypes.ToArray(); this.Definition = definition; }
public IEditorNavigationType CreateEditorNavigationType(JavaEditorNavigationTypeDefinition definition, string type, IEnumerable<IEditorNavigationType> baseTypes) { var navigationType = new EditorNavigationType(definition, type, baseTypes); _navigationTypes.Add(type, navigationType); return navigationType; }
IEditorNavigationType IJavaEditorNavigationTypeRegistryService.CreateEditorNavigationType(JavaEditorNavigationTypeDefinition definition, string type, IEnumerable <IEditorNavigationType> baseTypes) { Contract.Requires <ArgumentNullException>(definition != null); Contract.Requires <ArgumentNullException>(type != null); Contract.Ensures(Contract.Result <IEditorNavigationType>() != null); throw new NotImplementedException(); }