Changeset 10358 for branches/HLScript/HeuristicLab.CodeEditor
- Timestamp:
- 01/20/14 17:33:22 (11 years ago)
- Location:
- branches/HLScript
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HLScript
- Property svn:mergeinfo changed
/trunk/sources (added) merged: 10346,10348,10355
- Property svn:mergeinfo changed
-
branches/HLScript/HeuristicLab.CodeEditor/3.3/CodeEditor.cs
r10332 r10358 306 306 public void AddAssembly(Assembly a) { 307 307 ShowMessage("Loading " + a.GetName().Name + "..."); 308 if ( assemblies.Contains(a))309 return;310 var reference = projectContentRegistry.GetProjectContentForReference(a.GetName().Name, a.Location);311 projectContent.AddReferencedContent(reference);312 assemblies.Add(a);308 if (!assemblies.Contains(a)) { 309 var reference = projectContentRegistry.GetProjectContentForReference(a.GetName().Name, a.Location); 310 projectContent.AddReferencedContent(reference); 311 assemblies.Add(a); 312 } 313 313 ShowMessage("Ready"); 314 314 } 315 315 public void RemoveAssembly(Assembly a) { 316 316 ShowMessage("Unloading " + a.GetName().Name + "..."); 317 if ( !assemblies.Contains(a))318 return;319 var content = projectContentRegistry.GetExistingProjectContent(a.Location);320 if (content != null) {321 projectContent.ReferencedContents.Remove(content);322 projectContentRegistry.UnloadProjectContent(content);317 if (assemblies.Contains(a)) { 318 var content = projectContentRegistry.GetExistingProjectContent(a.Location); 319 if (content != null) { 320 projectContent.ReferencedContents.Remove(content); 321 projectContentRegistry.UnloadProjectContent(content); 322 } 323 323 } 324 324 ShowMessage("Ready");
Note: See TracChangeset
for help on using the changeset viewer.