Changeset 13656 for branches/WebJobManager/HeuristicLab.Scripting
- Timestamp:
- 03/07/16 10:18:05 (9 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Scripting/3.3/Script.cs
r13218 r13656 24 24 using System.CodeDom.Compiler; 25 25 using System.Collections.Generic; 26 using System.Drawing;27 26 using System.IO; 28 27 using System.Linq; … … 30 29 using System.Text; 31 30 using HeuristicLab.Common; 32 using HeuristicLab.Common.Resources;33 31 using HeuristicLab.Core; 34 32 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 39 37 public abstract class Script : NamedItem, IProgrammableItem { 40 38 #region Fields & Properties 41 public static new Image StaticItemImage { 42 get { return VSImageLibrary.Script; } 43 } 39 44 40 45 41 [Storable] 46 42 private string code; 47 public string Code { 43 public string Code 44 { 48 45 get { return code; } 49 set { 46 set 47 { 50 48 if (value == code) return; 51 49 code = value; … … 55 53 56 54 private CompilerErrorCollection compileErrors; 57 public CompilerErrorCollection CompileErrors { 55 public CompilerErrorCollection CompileErrors 56 { 58 57 get { return compileErrors; } 59 private set { 58 private set 59 { 60 60 compileErrors = value; 61 61 OnCompileErrorsChanged(); -
branches/WebJobManager/HeuristicLab.Scripting/3.3/VariableStore.cs
r12012 r13656 25 25 using HeuristicLab.Collections; 26 26 using HeuristicLab.Common; 27 using HeuristicLab.Common.Resources;28 27 using HeuristicLab.Core; 29 28 using HeuristicLab.Persistence.Core; … … 36 35 public class VariableStore : ObservableDictionary<string, object>, IItem { 37 36 #region Properties 38 public virtual string ItemName { 37 public virtual string ItemName 38 { 39 39 get { return ItemAttribute.GetName(GetType()); } 40 40 } 41 public virtual string ItemDescription { 41 public virtual string ItemDescription 42 { 42 43 get { return ItemAttribute.GetDescription(GetType()); } 43 44 } 44 public Version ItemVersion { 45 public Version ItemVersion 46 { 45 47 get { return ItemAttribute.GetVersion(GetType()); } 46 48 } 47 public static Image StaticItemImage { 48 get { return VSImageLibrary.Class; } 49 } 50 public virtual Image ItemImage { 49 50 public virtual Image ItemImage 51 { 51 52 get { return ItemAttribute.GetImage(GetType()); } 52 53 } … … 65 66 try { 66 67 dict[kvp.Key] = CloneByPersistence(kvp.Value); 67 } catch (PersistenceException pe) { 68 } 69 catch (PersistenceException pe) { 68 70 throw new NotSupportedException(string.Format(@"VariableStore: Variable ""{0}"" could not be cloned.", kvp.Key), pe); 69 71 }
Note: See TracChangeset
for help on using the changeset viewer.