Changeset 17687 for branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Plugin.cs.frame
- Timestamp:
- 07/19/20 19:07:40 (4 years ago)
- Location:
- branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views
- Property svn:mergeinfo changed
-
branches/1837_Sliding Window GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Plugin.cs.frame
r10681 r17687 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2013Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Text; 25 25 using HeuristicLab.PluginInfrastructure; 26 using System.Runtime.InteropServices; 27 using System.IO; 26 28 27 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Views { 28 [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.Views","Provides views for symbolic data analysis problem classes.", "3.4. 5.$WCREV$")]30 [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.Views","Provides views for symbolic data analysis problem classes.", "3.4.12.$WCREV$")] 29 31 [PluginFile("HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.dll", PluginFileType.Assembly)] 30 32 [PluginFile("displayModelFrame.html", PluginFileType.Data)] … … 37 39 [PluginDependency("HeuristicLab.Data", "3.3")] 38 40 [PluginDependency("HeuristicLab.Data.Views", "3.3")] 39 [PluginDependency("HeuristicLab.EPPlus", " 3.1")]41 [PluginDependency("HeuristicLab.EPPlus", "4.0.3")] 40 42 [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding", "3.4")] 41 43 [PluginDependency("HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views", "3.4")] 42 44 [PluginDependency("HeuristicLab.MainForm", "3.3")] 43 45 [PluginDependency("HeuristicLab.MainForm.WindowsForms", "3.3")] 44 [PluginDependency("HeuristicLab.MathJax", "1. 1")]46 [PluginDependency("HeuristicLab.MathJax", "1.2")] 45 47 [PluginDependency("HeuristicLab.Optimization","3.3")] 46 48 [PluginDependency("HeuristicLab.Problems.DataAnalysis", "3.4")] 47 49 [PluginDependency("HeuristicLab.Problems.DataAnalysis.Symbolic", "3.4")] 48 50 public class HeuristicLabProblemsDataAnalysisSymbolicViewsPlugin : PluginBase { 51 // HeuristicLab is marked with zone identifier 'Internet' after download. 52 // This propagates to all extracted files and can be checked in the file properties. 53 // IE prevents execution of MathJax JavaScript inside of untrusted html 54 // Therefore we need to programmatically unblock the displayModelFrame.html file before extracting. 55 // see http://engram404.net/programmatically-unblocking-downloaded-files/ 56 57 // for removing the Zone.Identifier alternative NTFS stream (effectively unblocking the file) 58 [DllImport("kernel32.dll", SetLastError = true)] 59 private static extern bool DeleteFile(string lpFileName); 60 61 public override void OnLoad() { 62 base.OnLoad(); 63 64 // unblock mathjax.zip () 65 DeleteFile(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "displayModelFrame.html:Zone.Identifier")); 66 } 49 67 } 50 68 }
Note: See TracChangeset
for help on using the changeset viewer.