PageRenderTime 21ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/IronPython_Main/Tools/IronStudio/IronStudio/IronStudio/Project/CommonFileNodeProperties.cs

#
C# | 65 lines | 41 code | 8 blank | 16 comment | 0 complexity | f0734c2cc29dd40d2ef514f411fdeec2 MD5 | raw file
 1/* ****************************************************************************
 2 *
 3 * Copyright (c) Microsoft Corporation. 
 4 *
 5 * This source code is subject to terms and conditions of the Apache License, Version 2.0. A 
 6 * copy of the license can be found in the License.html file at the root of this distribution. If 
 7 * you cannot locate the Apache License, Version 2.0, please send an email to 
 8 * ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 9 * by the terms of the Apache License, Version 2.0.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 * ***************************************************************************/
14
15using System;
16using System.ComponentModel;
17using System.Runtime.InteropServices;
18using Microsoft.VisualStudio.Project;
19
20namespace Microsoft.IronStudio.Project {
21    [ComVisible(true), CLSCompliant(false)]
22    [Guid(CommonConstants.FileNodePropertiesGuid)]
23    public class CommonFileNodeProperties : SingleFileGeneratorNodeProperties {
24
25        public CommonFileNodeProperties(HierarchyNode node)
26            : base(node) { }        
27
28        #region properties
29        
30        //Hide Build Action property from the property inspector
31        [Browsable(false)]
32        public override BuildAction BuildAction {
33            get {
34                return base.BuildAction;
35            }
36            set {
37                base.BuildAction = value;
38            }
39        }
40
41        //Hide Custom Tool property from the property inspector
42        [Browsable(false)]
43        public override string CustomTool {
44            get {
45                return base.CustomTool;
46            }
47            set {
48                base.CustomTool = value;
49            }
50        }
51
52        //Hide Custom Tool Namespace property from the property inspector
53        [Browsable(false)]
54        public override string CustomToolNamespace {
55            get {
56                return base.CustomToolNamespace;
57            }
58            set {
59                base.CustomToolNamespace = value;
60            }
61        }        
62
63        #endregion
64    }    
65}