|
|
@ -22,13 +22,12 @@ namespace ICSharpCode.SharpDevelop.Refactoring |
|
|
|
public override bool IsEnabledForFile(string fileName) |
|
|
|
public override bool IsEnabledForFile(string fileName) |
|
|
|
{ |
|
|
|
{ |
|
|
|
string extension = Path.GetExtension(fileName); |
|
|
|
string extension = Path.GetExtension(fileName); |
|
|
|
if (extension.Equals(".cs", StringComparison.InvariantCultureIgnoreCase)) |
|
|
|
if (extension == null) { |
|
|
|
return true; |
|
|
|
|
|
|
|
else if (extension.Equals(".vb", StringComparison.InvariantCultureIgnoreCase)) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return extension.Equals(".cs", StringComparison.InvariantCultureIgnoreCase) || |
|
|
|
|
|
|
|
extension.Equals(".vb", StringComparison.InvariantCultureIgnoreCase); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#region FindUnusedUsingDeclarations
|
|
|
|
#region FindUnusedUsingDeclarations
|
|
|
|
protected class PossibleTypeReference |
|
|
|
protected class PossibleTypeReference |
|
|
|