Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Side by Side Diff: experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/Automation/OAVSProjectItem.cs

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /// Copyright (c) Microsoft Corporation. All rights reserved.
2
3 using System;
4 using System.Diagnostics.CodeAnalysis;
5 using System.Runtime.InteropServices;
6 using EnvDTE;
7 using VSLangProj;
8
9 namespace Microsoft.VisualStudio.Project.Automation
10 {
11 /// <summary>
12 /// Represents a language-specific project item
13 /// </summary>
14 [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCor rectly", MessageId = "OAVS")]
15 [ComVisible(true), CLSCompliant(false)]
16 public class OAVSProjectItem : VSProjectItem
17 {
18 #region fields
19 private FileNode fileNode;
20 #endregion
21
22 #region ctors
23 public OAVSProjectItem(FileNode fileNode)
24 {
25 this.FileNode = fileNode;
26 }
27 #endregion
28
29 #region VSProjectItem Members
30
31 public virtual EnvDTE.Project ContainingProject
32 {
33 get { return fileNode.ProjectMgr.GetAutomationObject() a s EnvDTE.Project; }
34 }
35
36 public virtual ProjectItem ProjectItem
37 {
38 get { return fileNode.GetAutomationObject() as ProjectIt em; }
39 }
40
41 public virtual DTE DTE
42 {
43 get { return (DTE)this.fileNode.ProjectMgr.Site.GetServi ce(typeof(DTE)); }
44 }
45
46 public virtual void RunCustomTool()
47 {
48 this.FileNode.RunGenerator();
49 }
50
51 #endregion
52
53 #region public properties
54 /// <summary>
55 /// File Node property
56 /// </summary>
57 public FileNode FileNode
58 {
59 get
60 {
61 return fileNode;
62 }
63 set
64 {
65 fileNode = value;
66 }
67 }
68 #endregion
69
70 }
71 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698