6 changed files with 61 additions and 16 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Project; |
||||
|
||||
namespace ICSharpCode.AspNet.Mvc |
||||
{ |
||||
public abstract class IsMvcFolderSelectedConditionEvaluator : IConditionEvaluator |
||||
{ |
||||
public bool IsValid(object owner, Condition condition) |
||||
{ |
||||
if (IsProjectNode(owner)) { |
||||
return false; |
||||
} |
||||
var directoryNode = owner as DirectoryNode; |
||||
return directoryNode != null; |
||||
} |
||||
|
||||
bool IsProjectNode(object owner) |
||||
{ |
||||
return owner is ProjectNode; |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue