Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/12/13 16:59:51 (11 years ago)
Author:
sforsten
Message:

#2022:

  • the properties of Item are cached
  • added solution file and build commands
Location:
branches/ImprovingItemListView
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ImprovingItemListView

    • Property svn:ignore set to
      *.suo
  • branches/ImprovingItemListView/HeuristicLab.Core/3.3/HeuristicLab.Core-3.3.csproj

    r9178 r9314  
    4141    <DebugType>full</DebugType>
    4242    <Optimize>false</Optimize>
    43     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     43    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    4444    <DefineConstants>DEBUG;TRACE</DefineConstants>
    4545    <ErrorReport>prompt</ErrorReport>
     
    5252    <DebugType>pdbonly</DebugType>
    5353    <Optimize>true</Optimize>
    54     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     54    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    5555    <DefineConstants>TRACE</DefineConstants>
    5656    <ErrorReport>prompt</ErrorReport>
     
    6363  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    6464    <DebugSymbols>true</DebugSymbols>
    65     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     65    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    6666    <DefineConstants>DEBUG;TRACE</DefineConstants>
    6767    <DebugType>full</DebugType>
     
    7171  </PropertyGroup>
    7272  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    73     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     73    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    7474    <DefineConstants>TRACE</DefineConstants>
    7575    <DocumentationFile>
     
    8383  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    8484    <DebugSymbols>true</DebugSymbols>
    85     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     85    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    8686    <DefineConstants>DEBUG;TRACE</DefineConstants>
    8787    <DebugType>full</DebugType>
     
    9191  </PropertyGroup>
    9292  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
    93     <OutputPath>$(SolutionDir)\bin\</OutputPath>
     93    <OutputPath>..\..\..\..\trunk\sources\bin\</OutputPath>
    9494    <DefineConstants>TRACE</DefineConstants>
    9595    <DocumentationFile>
     
    102102  </PropertyGroup>
    103103  <ItemGroup>
     104    <Reference Include="HeuristicLab.Collections-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
     105    <Reference Include="HeuristicLab.Common-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
     106    <Reference Include="HeuristicLab.Common.Resources-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
     107    <Reference Include="HeuristicLab.Persistence-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
     108    <Reference Include="HeuristicLab.PluginInfrastructure-3.3, Version=3.3.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL" />
    104109    <Reference Include="System" />
    105110    <Reference Include="System.Core">
     
    205210  </ItemGroup>
    206211  <ItemGroup>
    207     <ProjectReference Include="..\..\HeuristicLab.Collections\3.3\HeuristicLab.Collections-3.3.csproj">
    208       <Project>{958B43BC-CC5C-4FA2-8628-2B3B01D890B6}</Project>
    209       <Name>HeuristicLab.Collections-3.3</Name>
    210       <Private>False</Private>
    211     </ProjectReference>
    212     <ProjectReference Include="..\..\HeuristicLab.Common.Resources\3.3\HeuristicLab.Common.Resources-3.3.csproj">
    213       <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>
    214       <Name>HeuristicLab.Common.Resources-3.3</Name>
    215       <Private>False</Private>
    216     </ProjectReference>
    217     <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    218       <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>
    219       <Name>HeuristicLab.Common-3.3</Name>
    220       <Private>False</Private>
    221     </ProjectReference>
    222     <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj">
    223       <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project>
    224       <Name>HeuristicLab.Persistence-3.3</Name>
    225       <Private>False</Private>
    226     </ProjectReference>
    227     <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    228       <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
    229       <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
    230       <Private>False</Private>
    231     </ProjectReference>
    232   </ItemGroup>
    233   <ItemGroup>
    234212    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
    235213      <Visible>False</Visible>
  • branches/ImprovingItemListView/HeuristicLab.Core/3.3/Item.cs

    r7259 r9314  
    3232  [Item("Item", "Base class for all HeuristicLab items.")]
    3333  public abstract class Item : IItem {
     34    private string itemName;
    3435    public virtual string ItemName {
    35       get { return ItemAttribute.GetName(this.GetType()); }
     36      get {
     37        if (itemName == null) {
     38          itemName = ItemAttribute.GetName(this.GetType());
     39        }
     40        return itemName;
     41      }
    3642    }
     43    private string itemDescription;
    3744    public virtual string ItemDescription {
    38       get { return ItemAttribute.GetDescription(this.GetType()); }
     45      get {
     46        if (itemName == null) {
     47          itemName = ItemAttribute.GetDescription(this.GetType());
     48        }
     49        return itemName;
     50      }
    3951    }
     52    private Version itemVersion;
    4053    public Version ItemVersion {
    41       get { return ItemAttribute.GetVersion(this.GetType()); }
     54      get {
     55        if (itemVersion == null) {
     56          itemVersion = ItemAttribute.GetVersion(this.GetType());
     57        }
     58        return itemVersion;
     59      }
    4260    }
    4361    public static Image StaticItemImage {
    4462      get { return HeuristicLab.Common.Resources.VSImageLibrary.Class; }
    4563    }
     64    private Image itemImage;
    4665    public virtual Image ItemImage {
    47       get { return ItemAttribute.GetImage(this.GetType()); }
     66      get {
     67        if (itemImage == null) {
     68          itemImage = ItemAttribute.GetImage(this.GetType());
     69        }
     70        return itemImage;
     71      }
    4872    }
    4973
Note: See TracChangeset for help on using the changeset viewer.