Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/10/09 16:52:52 (15 years ago)
Author:
gkronber
Message:

worked on plugin infrastructure refactoring. #799

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  
    2525using System.Diagnostics;
    2626
    27 namespace HeuristicLab.PluginInfrastructure.GUI {
     27namespace HeuristicLab.PluginInfrastructure.Manager {
    2828  [Flags]
    2929  enum ManagerAction {
     
    5757
    5858    public string GetInverseActionString() {
    59       switch(action) {
     59      switch (action) {
    6060        case ManagerAction.Install:
    6161          return "Don't install";
  • branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure.Manager/PluginDescription.cs

    r2472 r2475  
    2525using System.Xml;
    2626
    27 namespace HeuristicLab.PluginInfrastructure.GUI {
     27namespace HeuristicLab.PluginInfrastructure.Manager {
    2828  class PluginDescription {
    2929    private string name;
  • branches/PluginInfrastructure Refactoring/HeuristicLab.PluginInfrastructure.Manager/PluginTag.cs

    r2472 r2475  
    2424using System.Text;
    2525
    26 namespace HeuristicLab.PluginInfrastructure.GUI {
     26namespace HeuristicLab.PluginInfrastructure.Manager {
    2727
    2828  [Flags]
    29   enum PluginState { 
     29  enum PluginState {
    3030    Installed = 1,
    3131    Available = 2,
     
    4343    internal PluginDescription PluginDescription {
    4444      get { return pluginDescription; }
    45       set { 
     45      set {
    4646        pluginDescription = value;
    4747        pluginDependencies = GeneratePluginDependencies(pluginDescription);
     
    135135      return "Plugin: " + plugin.Name + "\n" +
    136136      "Version: " + plugin.Version + "\n" +
    137       "Build: " +plugin.BuildDate + "\n\n" +
     137      "Build: " + plugin.BuildDate + "\n\n" +
    138138      (dependencies.Length != 0 ? "Requires: \n" + dependencies + "\n" : "") +
    139139      (dependents.Length != 0 ? "Used by:\n" + dependents + "\n" : "") +
     
    149149      return "plugin: " + plugin.Name + "\n" +
    150150      "Version: " + plugin.Version + "\n" +
    151       "Build: "+plugin.BuildDate +"\n" +
     151      "Build: " + plugin.BuildDate + "\n" +
    152152      "Installed from: " + plugin.Source + "\n" +
    153153      "Requires: \n" + dependencies;
     
    156156    private string GenerateUpgradeDetails(PluginDescription upgrade) {
    157157      string dependencies = "";
    158       foreach(string dependency in upgrade.Dependencies) {
     158      foreach (string dependency in upgrade.Dependencies) {
    159159        dependencies += dependency + "\n";
    160160      }
    161161      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" +
    163163      "Upgraded from: " + upgrade.Source + "\n" +
    164164      "Requires: \n" + dependencies;
     
    183183    internal List<PluginTag> GetDependentTags() {
    184184      List<PluginTag> dependentTags = new List<PluginTag>();
    185       foreach(PluginTag tag in allTags) {
     185      foreach (PluginTag tag in allTags) {
    186186        if (tag.pluginDependencies.Contains(pluginName)) {
    187187          if (!dependentTags.Contains(tag)) {
     
    201201    internal List<PluginTag> GetDependencyTags() {
    202202      List<PluginTag> dependencyTags = new List<PluginTag>();
    203       foreach(PluginTag tag in allTags) {
     203      foreach (PluginTag tag in allTags) {
    204204        if (pluginDependencies.Contains(tag.pluginName)) {
    205205          if (!dependencyTags.Contains(tag)) {
     
    228228
    229229    public override int GetHashCode() {
    230       if(pluginVersion != null) {
     230      if (pluginVersion != null) {
    231231        return pluginName.GetHashCode() + pluginVersion.GetHashCode();
    232232      } else return pluginName.GetHashCode();
Note: See TracChangeset for help on using the changeset viewer.