Changeset 2475 for branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure.Manager
- Timestamp:
- 11/10/09 16:52:52 (15 years ago)
- Location:
- branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure.Manager
- Files:
-
- 5 added
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure.Manager/PluginAction.cs
r2472 r2475 25 25 using System.Diagnostics; 26 26 27 namespace HeuristicLab.PluginInfrastructure. GUI{27 namespace HeuristicLab.PluginInfrastructure.Manager { 28 28 [Flags] 29 29 enum ManagerAction { … … 57 57 58 58 public string GetInverseActionString() { 59 switch (action) {59 switch (action) { 60 60 case ManagerAction.Install: 61 61 return "Don't install"; -
branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure.Manager/PluginDescription.cs
r2472 r2475 25 25 using System.Xml; 26 26 27 namespace HeuristicLab.PluginInfrastructure. GUI{27 namespace HeuristicLab.PluginInfrastructure.Manager { 28 28 class PluginDescription { 29 29 private string name; -
branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure.Manager/PluginTag.cs
r2472 r2475 24 24 using System.Text; 25 25 26 namespace HeuristicLab.PluginInfrastructure. GUI{26 namespace HeuristicLab.PluginInfrastructure.Manager { 27 27 28 28 [Flags] 29 enum PluginState { 29 enum PluginState { 30 30 Installed = 1, 31 31 Available = 2, … … 43 43 internal PluginDescription PluginDescription { 44 44 get { return pluginDescription; } 45 set { 45 set { 46 46 pluginDescription = value; 47 47 pluginDependencies = GeneratePluginDependencies(pluginDescription); … … 135 135 return "Plugin: " + plugin.Name + "\n" + 136 136 "Version: " + plugin.Version + "\n" + 137 "Build: " + plugin.BuildDate + "\n\n" +137 "Build: " + plugin.BuildDate + "\n\n" + 138 138 (dependencies.Length != 0 ? "Requires: \n" + dependencies + "\n" : "") + 139 139 (dependents.Length != 0 ? "Used by:\n" + dependents + "\n" : "") + … … 149 149 return "plugin: " + plugin.Name + "\n" + 150 150 "Version: " + plugin.Version + "\n" + 151 "Build: " +plugin.BuildDate +"\n" +151 "Build: " + plugin.BuildDate + "\n" + 152 152 "Installed from: " + plugin.Source + "\n" + 153 153 "Requires: \n" + dependencies; … … 156 156 private string GenerateUpgradeDetails(PluginDescription upgrade) { 157 157 string dependencies = ""; 158 foreach (string dependency in upgrade.Dependencies) {158 foreach (string dependency in upgrade.Dependencies) { 159 159 dependencies += dependency + "\n"; 160 160 } 161 161 return "plugin: " + upgrade.Name + "\n" + 162 "Current version: " + plugin.Version + " (" +plugin.BuildDate+") will be upgraded to new version: " + upgrade.Version + " ("+upgrade.BuildDate+")\n"+162 "Current version: " + plugin.Version + " (" + plugin.BuildDate + ") will be upgraded to new version: " + upgrade.Version + " (" + upgrade.BuildDate + ")\n" + 163 163 "Upgraded from: " + upgrade.Source + "\n" + 164 164 "Requires: \n" + dependencies; … … 183 183 internal List<PluginTag> GetDependentTags() { 184 184 List<PluginTag> dependentTags = new List<PluginTag>(); 185 foreach (PluginTag tag in allTags) {185 foreach (PluginTag tag in allTags) { 186 186 if (tag.pluginDependencies.Contains(pluginName)) { 187 187 if (!dependentTags.Contains(tag)) { … … 201 201 internal List<PluginTag> GetDependencyTags() { 202 202 List<PluginTag> dependencyTags = new List<PluginTag>(); 203 foreach (PluginTag tag in allTags) {203 foreach (PluginTag tag in allTags) { 204 204 if (pluginDependencies.Contains(tag.pluginName)) { 205 205 if (!dependencyTags.Contains(tag)) { … … 228 228 229 229 public override int GetHashCode() { 230 if (pluginVersion != null) {230 if (pluginVersion != null) { 231 231 return pluginName.GetHashCode() + pluginVersion.GetHashCode(); 232 232 } else return pluginName.GetHashCode();
Note: See TracChangeset
for help on using the changeset viewer.