~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Main/Base/Project/Src/Internal/ConditionEvaluators/CombineOpenEvaluator.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 ICSharpCode.Core;
 
6
using ICSharpCode.SharpDevelop.Project;
 
7
 
 
8
namespace ICSharpCode.SharpDevelop
 
9
{
 
10
        /// <summary>
 
11
        /// Tests if a solution is open.
 
12
        /// </summary>
 
13
        /// <example title="Test if a solution is opened">
 
14
        /// &lt;Condition name = "SolutionOpen"&gt;
 
15
        /// </example>
 
16
        public class SolutionOpenConditionEvaluator : IConditionEvaluator
 
17
        {
 
18
                public bool IsValid(object caller, Condition condition)
 
19
                {
 
20
                        return (ProjectService.OpenSolution != null);
 
21
                }
 
22
        }
 
23
}