[svn] r7273: vs-plugin/trunk/Nemerle.VsIntegration:
NemerleConstants.cs Project/NemerleProjectNode.cs
IT
svnadmin at nemerle.org
Tue Jan 16 04:19:20 CET 2007
Log:
Fixed the Solution Explorer bug for single project solution.
Author: IT
Date: Tue Jan 16 04:19:18 2007
New Revision: 7273
Modified:
vs-plugin/trunk/Nemerle.VsIntegration/NemerleConstants.cs
vs-plugin/trunk/Nemerle.VsIntegration/Project/NemerleProjectNode.cs
Modified: vs-plugin/trunk/Nemerle.VsIntegration/NemerleConstants.cs
==============================================================================
--- vs-plugin/trunk/Nemerle.VsIntegration/NemerleConstants.cs (original)
+++ vs-plugin/trunk/Nemerle.VsIntegration/NemerleConstants.cs Tue Jan 16 04:19:18 2007
@@ -55,11 +55,11 @@
/// <summary>
/// Indexes to the embedded NemerleImageList.bmp image list.
/// </summary>
- public enum ImageListIndex
+ public static class ImageListIndex
{
- NemerleSource = 0,
- NemerleProject = 1,
- NemerleForm = 2
+ public const int NemerleSource = 0;
+ public const int NemerleProject = 1;
+ public const int NemerleForm = 2;
}
}
}
Modified: vs-plugin/trunk/Nemerle.VsIntegration/Project/NemerleProjectNode.cs
==============================================================================
--- vs-plugin/trunk/Nemerle.VsIntegration/Project/NemerleProjectNode.cs (original)
+++ vs-plugin/trunk/Nemerle.VsIntegration/Project/NemerleProjectNode.cs Tue Jan 16 04:19:18 2007
@@ -157,7 +157,7 @@
// Needed since ProjectNode.ImageIndex returns
// ProjectNode.ImageName.Application.
- public override int ImageIndex { get { return HierarchyNode.NoImage; } }
+ public override int ImageIndex { get { return NemerleConstants.ImageListIndex.NemerleProject; } }
public override Guid ProjectGuid { get { return typeof(NemerleProjectFactory).GUID; } }
public override string ProjectType { get { return NemerleConstants.LanguageName; } }
internal override object Object { get { return VSProject; } }
@@ -171,13 +171,6 @@
#region Overridden Methods
- // We have to override ImageIndex to be called.
- public override object GetIconHandle(bool open)
- {
- return PackageUtilities.GetIntPointerFromImage(
- NemerleProjectNode.NemerleImageList.Images[(int)NemerleConstants.ImageListIndex.NemerleProject]);
- }
-
public override int Close()
{
if (null != Site)
More information about the svn
mailing list