Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/20/14 17:33:22 (10 years ago)
Author:
jkarder
Message:

#2136:

  • refactored HLScriptGeneration to separate outputs from different running HL scripts.
  • added persistence support for HLScripts and fixed cloning
  • added code completion for all types in the currently loaded assemblies
  • merged trunk changes
Location:
branches/HLScript
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HLScript

  • branches/HLScript/HeuristicLab.CodeEditor/3.3/CodeEditor.cs

    r10332 r10358  
    306306    public void AddAssembly(Assembly a) {
    307307      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      }
    313313      ShowMessage("Ready");
    314314    }
    315315    public void RemoveAssembly(Assembly a) {
    316316      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        }
    323323      }
    324324      ShowMessage("Ready");
Note: See TracChangeset for help on using the changeset viewer.