~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Main/Core/Project/Src/AddInTree/AddIn/DefaultDoozers/StringDoozer.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using System.Collections;
 
6
 
 
7
namespace ICSharpCode.Core
 
8
{
 
9
        /// <summary>
 
10
        /// Creates a string.
 
11
        /// </summary>
 
12
        /// <attribute name="text" use="required">
 
13
        /// The string to return.
 
14
        /// </attribute>
 
15
        /// <returns>
 
16
        /// The string specified by 'text', passed through the StringParser.
 
17
        /// </returns>
 
18
        public class StringDoozer : IDoozer
 
19
        {
 
20
                /// <summary>
 
21
                /// Gets if the doozer handles codon conditions on its own.
 
22
                /// If this property return false, the item is excluded when the condition is not met.
 
23
                /// </summary>
 
24
                public bool HandleConditions {
 
25
                        get {
 
26
                                return false;
 
27
                        }
 
28
                }
 
29
                
 
30
                public object BuildItem(BuildItemArgs args)
 
31
                {
 
32
                        return StringParser.Parse(args.Codon.Properties["text"]);
 
33
                }
 
34
        }
 
35
}