/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. using System;
  15. using System.ComponentModel;
  16. using System.Runtime.InteropServices;
  17. using Microsoft.VisualStudio.Project;
  18. namespace Microsoft.IronStudio.Project {
  19. [ComVisible(true), CLSCompliant(false)]
  20. [Guid(CommonConstants.FileNodePropertiesGuid)]
  21. public class CommonFileNodeProperties : SingleFileGeneratorNodeProperties {
  22. public CommonFileNodeProperties(HierarchyNode node)
  23. : base(node) { }
  24. #region properties
  25. //Hide Build Action property from the property inspector
  26. [Browsable(false)]
  27. public override BuildAction BuildAction {
  28. get {
  29. return base.BuildAction;
  30. }
  31. set {
  32. base.BuildAction = value;
  33. }
  34. }
  35. //Hide Custom Tool property from the property inspector
  36. [Browsable(false)]
  37. public override string CustomTool {
  38. get {
  39. return base.CustomTool;
  40. }
  41. set {
  42. base.CustomTool = value;
  43. }
  44. }
  45. //Hide Custom Tool Namespace property from the property inspector
  46. [Browsable(false)]
  47. public override string CustomToolNamespace {
  48. get {
  49. return base.CustomToolNamespace;
  50. }
  51. set {
  52. base.CustomToolNamespace = value;
  53. }
  54. }
  55. #endregion
  56. }
  57. }