本文整理汇总了C#中MonoDevelop.Projects.ProjectFileRenamedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ProjectFileRenamedEventArgs类的具体用法?C# ProjectFileRenamedEventArgs怎么用?C# ProjectFileRenamedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProjectFileRenamedEventArgs类属于MonoDevelop.Projects命名空间,在下文中一共展示了ProjectFileRenamedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: IdeApp_Workspace_FileRenamedInProject
void IdeApp_Workspace_FileRenamedInProject (object sender, ProjectFileRenamedEventArgs e)
{
foreach (var file in e) {
if (file.OldName.FileName == file.NewName.FileName) {
//a directory filename changed
var oldDir = file.OldName.ParentDirectory;
var newDir = file.NewName.ParentDirectory;
if (!newDir.ToString ().Contains ("Resources")) {
return;
}
while (oldDir.FileName == newDir.FileName) {
oldDir = oldDir.ParentDirectory;
newDir = newDir.ParentDirectory;
}
ClearOwnFileErrors (oldDir);
CheckDirectoryName (newDir);
} else {
ClearOwnFileErrors (file.OldName);
CheckProjectFileName (file.ProjectFile);
}
}
}
开发者ID:taiste,项目名称:ViewInAndroidStudio,代码行数:27,代码来源:StartupHandler.cs
示例2: OnFileRenamedInProject
protected override void OnFileRenamedInProject(ProjectFileRenamedEventArgs e)
{
UpdateParseCache ();
base.OnFileRenamedInProject (e);
}
开发者ID:gavin-norman,项目名称:Mono-D,代码行数:6,代码来源:DProject.cs
示例3: HandleRename
static void HandleRename (ProjectFileRenamedEventArgs e)
{
foreach (ProjectFileEventInfo args in e) {
var file = args.ProjectFile;
var tool = GetGenerator (file.Generator);
if (tool == null)
continue;
}
}
开发者ID:riverans,项目名称:monodevelop,代码行数:9,代码来源:CustomToolService.cs
示例4: OnFileRenamed
void OnFileRenamed (object sender, ProjectFileRenamedEventArgs args)
{
foreach (ProjectFileRenamedEventInfo fargs in args) {
RemoveFile (fargs.OldName);
FileEntry file = AddFile (fargs.NewName);
// CheckModifiedFiles won't detect new files, so parsing
// must be manyally signaled
QueueParseJob (file);
}
}
开发者ID:okrmartin,项目名称:monodevelop,代码行数:10,代码来源:ProjectCodeCompletionDatabase.cs
示例5: OnFileRenamedInProject
protected override void OnFileRenamedInProject (ProjectFileRenamedEventArgs e)
{
base.OnFileRenamedInProject (e);
if (Loading)
return;
if (e.ProjectFile.BuildAction == MonoDroidBuildAction.AndroidResource)
QueueResgenUpdate ();
//if renaming the file to "AndroidManifest.xml", and the manifest element is not in use, set it as a convenience
else if (AndroidManifest.IsNullOrEmpty && e.NewName.ToRelative (BaseDirectory) == "AndroidManifest.xml")
AndroidManifest = e.NewName;
//track manifest file renames or things will break
else if (AndroidManifest == e.OldName)
AndroidManifest = e.NewName;
}
开发者ID:stewartwhaley,项目名称:monodevelop,代码行数:15,代码来源:MonoDroidProject.cs
示例6: FileRenamed
static void FileRenamed (object sender, ProjectFileRenamedEventArgs e)
{
bool changed = false;
foreach (ProjectFileRenamedEventInfo args in e) {
foreach (NavigationHistoryItem point in history) {
DocumentNavigationPoint dp = point.NavigationPoint as DocumentNavigationPoint;
changed &= (dp != null && dp.HandleRenameEvent (args.OldName, args.NewName));
}
}
if (changed)
OnHistoryChanged ();
}
开发者ID:RainsSoft,项目名称:playscript-monodevelop,代码行数:12,代码来源:NavigationHistoryService.cs
示例7: HandleFileRenamed
private void HandleFileRenamed(ProjectFileRenamedEventArgs args)
{
foreach (var info in args) {
RemoveFile(new ProjectFile(info.OldName));
AddFile(new ProjectFile(info.NewName), info.Project);
}
}
开发者ID:rafaelsteil,项目名称:monodevelop-project-linker,代码行数:7,代码来源:ProjectLinkerManager.cs
示例8: OnFileRenamedInProject
/// <summary>
/// Raises the FileRenamedInProject event.
/// </summary>
protected virtual void OnFileRenamedInProject (ProjectFileRenamedEventArgs e)
{
if (FileRenamedInProject != null) {
FileRenamedInProject (this, e);
}
}
开发者ID:okrmartin,项目名称:monodevelop,代码行数:9,代码来源:Project.cs
示例9: OnFileRenamedInProject
void OnFileRenamedInProject (object s, ProjectFileRenamedEventArgs args)
{
if (loading) return;
foreach (ProjectFileRenamedEventInfo e in args) {
if (e.ProjectFile.BuildAction != BuildAction.Compile)
continue;
if (RemoveSourceFile (e.OldName))
AddSourceFile (e.NewName);
}
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:12,代码来源:MonoSolutionItemHandler.cs
示例10: ExecuteFileRenamedAction
private void ExecuteFileRenamedAction(ProjectFileRenamedEventArgs args)
{
if (sourceProject == null) {
return;
}
HandleFileRenamed(args);
SaveTargetProjects();
}
开发者ID:rafaelsteil,项目名称:monodevelop-project-linker,代码行数:10,代码来源:ProjectLinkerManager.cs
示例11: OnFileRenamedInProject
void OnFileRenamedInProject (object s, ProjectFileRenamedEventArgs e)
{
if (loading) return;
if (e.ProjectFile.BuildAction != BuildAction.Compile)
return;
if (RemoveSourceFile (e.OldName))
AddSourceFile (e.NewName);
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:10,代码来源:MonoSolutionItemHandler.cs
示例12: OnFileRenamedInProject
protected override void OnFileRenamedInProject(ProjectFileRenamedEventArgs e)
{
base.OnFileRenamedInProject (e);
foreach (ProjectFileRenamedEventInfo item in e)
if (item.ProjectFile.Subtype == Subtype.Code && item.ProjectFile.BuildAction == BuildAction.Compile)
typescript.ShimHost.UpdateScript (typescript.GetFilePath (item.OldName), null);
// FIXME: make sure that adding, removing and then adding the same file still works (as "remove" does not really remove it).
foreach (ProjectFileRenamedEventInfo item in e)
if (item.ProjectFile.Subtype == Subtype.Code && item.ProjectFile.BuildAction == BuildAction.Compile)
typescript.ShimHost.AddScript (typescript.GetFilePath (item.NewName), File.ReadAllText (typescript.GetFilePath (item.NewName)));
}
开发者ID:atsushieno,项目名称:md-typescript,代码行数:11,代码来源:TypeScriptProject.cs
示例13: OnFileRenamedInProject
protected override void OnFileRenamedInProject(ProjectFileRenamedEventArgs e)
{
//e.
//if (e.OldName == MainSource)
// MainSource = e.NewName;
//base.OnFileRenamedInProject(e);
}
开发者ID:tjhei,项目名称:md-haxebinding,代码行数:7,代码来源:HaxeProject.cs
示例14: OnRenameFile
void OnRenameFile (object sender, ProjectFileRenamedEventArgs args)
{
foreach (ProjectFileEventInfo e in args) {
ITreeBuilder tb = Context.GetTreeBuilder (e.ProjectFile);
if (tb != null) tb.Update ();
}
}
开发者ID:nomit007,项目名称:monodevelop,代码行数:7,代码来源:ProjectNodeBuilder.cs
示例15: OnFileRenamedInProject
internal protected virtual void OnFileRenamedInProject (ProjectFileRenamedEventArgs e)
{
next.OnFileRenamedInProject (e);
}
开发者ID:sushihangover,项目名称:monodevelop,代码行数:4,代码来源:ProjectExtension.cs
示例16: NotifyFileRenamedInProject
internal void NotifyFileRenamedInProject (ProjectFileRenamedEventArgs args)
{
SetDirty ();
NotifyModified ("Files");
OnFileRenamedInProject (args);
}
开发者ID:okrmartin,项目名称:monodevelop,代码行数:6,代码来源:Project.cs
示例17: OnRenameFile
void OnRenameFile (object sender, ProjectFileRenamedEventArgs e)
{
ITreeBuilder tb = Context.GetTreeBuilder (e.ProjectFile);
if (tb != null) tb.Update ();
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:5,代码来源:ProjectNodeBuilder.cs
示例18: OnFileRenamedInProject
protected override void OnFileRenamedInProject(ProjectFileRenamedEventArgs e)
{
NeedsFullRebuild = true;
//FIXME: Bug when renaming files..the new file won't be reachable somehow.. see https://bugzilla.xamarin.com/show_bug.cgi?id=13360
var fi = Files.GetType().GetField("files",BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.GetField);
var files = fi.GetValue (Files) as Dictionary<FilePath, ProjectFile>;
/*foreach (var pf in e){
// The old file won't be removed from that internal files dictionary - so go enforce this!
files.Remove (pf.OldName);
var ast = LocalFileCache.GetModuleByFileName (pf.OldName);
if (ast == null)
continue;
LocalFileCache.Remove (ast, true);
ast.FileName = pf.NewName.ToString ();
if (ast.OptionalModuleStatement == null) {
string parsedDir = null;
foreach (var dir in LocalFileCache.ParsedDirectories)
if (ast.FileName.StartsWith (dir)) {
parsedDir = dir;
break;
}
ast.ModuleName = DModule.GetModuleName (parsedDir, ast);
}
LocalFileCache.AddOrUpdate (ast);
}*/
base.OnFileRenamedInProject(e);
}
开发者ID:foerdi,项目名称:Mono-D,代码行数:31,代码来源:AbstractDProject.cs
示例19: OnFileRenamedInProject
protected override void OnFileRenamedInProject (ProjectFileRenamedEventArgs e)
{
base.OnFileRenamedInProject (e);
if (!Loading && e.ProjectFile.BuildAction == MonoDroidBuildAction.AndroidResource)
QueueResgenUpdate ();
}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:6,代码来源:MonoDroidProject.cs
示例20: OnFileRenamedInProject
protected override void OnFileRenamedInProject (ProjectFileRenamedEventArgs e)
{
IDELogger.Log ("MonobjcProject::OnFileRenamedInProject '{0}'", e);
this.ResolverHandler.ClearCache();
this.XcodeHandler.ClearXcodeProject();
base.OnFileRenamedInProject (e);
}
开发者ID:Monobjc,项目名称:monobjc-monodevelop,代码行数:9,代码来源:MonobjcProject.cs
注:本文中的MonoDevelop.Projects.ProjectFileRenamedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论