本文整理汇总了C#中MergableMenu类的典型用法代码示例。如果您正苦于以下问题:C# MergableMenu类的具体用法?C# MergableMenu怎么用?C# MergableMenu使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MergableMenu类属于命名空间,在下文中一共展示了MergableMenu类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddOtherResourceItems
private void AddOtherResourceItems(MergableMenu menu, string path)
{
bool addLibrary = project.IsLibraryAsset(path);
if (!project.UsesInjection)
menu.Add(Insert,0);
menu.Add(Execute,0);
if (!project.UsesInjection)
menu.Add(AddLibrary,2,addLibrary);
if (addLibrary)
menu.Add(LibraryOptions,2);
AddFileItems(menu,path);
}
示例2: AddProjectOutputItems
private void AddProjectOutputItems(MergableMenu menu, ProjectOutputNode node)
{
if (node.FileExists)
{
menu.Add(Open, 0);
menu.Add(Execute, 0);
menu.Add(ShellMenu, 0);
AddFileItems(menu, node.BackingPath);
}
else menu.Add(NoProjectOutput, 0);
}
示例3: AddFileItems
private void AddFileItems(MergableMenu menu, string path)
{
AddFileItems(menu, path, true);
}
示例4: AddCssItems
private void AddCssItems(MergableMenu menu, string path)
{
if (project.Language != "as3")
{
AddGenericFileItems(menu, path);
return;
}
bool alwaysCompile = project.IsCompileTarget(path);
menu.Add(Open, 0);
menu.Add(Execute, 0);
menu.Add(ShellMenu, 0);
menu.Add(AlwaysCompile, 2, alwaysCompile);
AddFileItems(menu, path);
}
示例5: AddSwfItems
private void AddSwfItems(MergableMenu menu, string path)
{
bool addLibrary = project.HasLibraries && project.IsLibraryAsset(path);
menu.Add(Open, 0);
menu.Add(Execute, 0);
menu.Add(ShellMenu, 0);
menu.Add(Insert, 0);
if (addLibrary)
{
LibraryAsset asset = project.GetAsset(path);
if (asset.SwfMode == SwfAssetMode.Library) menu.Add(Insert, 0);
}
if (project.HasLibraries) menu.Add(AddLibrary, 2, addLibrary);
if (addLibrary) menu.Add(LibraryOptions, 2);
AddFileItems(menu, path);
}
示例6: AddClasspathItems
private void AddClasspathItems(MergableMenu menu)
{
menu.Add(AddMenu, 0);
menu.Add(Browse, 0);
menu.Add(FindInFiles, 0);
menu.Add(ShellMenu, 0);
menu.Add(Paste, 1);
}
示例7: AddActionScriptItems
private void AddActionScriptItems(MergableMenu menu, string path)
{
bool alwaysCompile = project.IsCompileTarget(path);
menu.Add(Open, 0);
menu.Add(Execute, 0);
menu.Add(ShellMenu, 0);
menu.Add(AlwaysCompile, 2, alwaysCompile);
menu.Add(CopyClassName, 4);
AddFileItems(menu, path);
}
示例8: AddCompileTargetItems
private void AddCompileTargetItems(MergableMenu menu, string path, bool isFolder)
{
CompileTargetType result = project.AllowCompileTarget(path, isFolder);
if (result != CompileTargetType.None)
{
bool isMain = false;
if ((result & CompileTargetType.DocumentClass) > 0)
{
isMain = project.IsDocumentClass(path);
if (isMain) menu.Add(DocumentClass, 2, true);
else menu.Add(SetDocumentClass, 2, false);
}
if (!isMain && (result & CompileTargetType.AlwaysCompile) > 0)
{
menu.Add(AlwaysCompile, 2, project.IsCompileTarget(path));
}
if (!isFolder) menu.Add(CopyClassName, 2);
}
}
示例9: AddCssItems
private void AddCssItems(MergableMenu menu, string path)
{
if (project.Language == "as3") AddClassItems(menu, path);
else AddGenericFileItems(menu, path);
}
示例10: AddFolderItems
private void AddFolderItems(MergableMenu menu, string path)
{
menu.Add(AddMenu, 0);
menu.Add(Browse, 0);
menu.Add(FindInFiles, 0);
menu.Add(CommandPrompt, 0);
if (Win32.ShouldUseWin32()) menu.Add(ShellMenu, 0);
AddCompileTargetItems(menu, path, true);
bool addLibrary = project.IsLibraryAsset(path);
menu.Add(AddLibrary, 2, addLibrary);
if (addLibrary) menu.Add(LibraryOptions, 2);
if (projectTree.SelectedPaths.Length == 1 && project.IsCompilable)
{
DirectoryNode node = projectTree.SelectedNode as DirectoryNode;
if (node.InsideClasspath == node) menu.Add(RemoveSourcePath, 2, true);
else if (node != null && (node.InsideClasspath == null || node.InsideClasspath is ProjectNode))
{
menu.Add(AddSourcePath, 2, false);
}
}
AddFileItems(menu, path, true);
}
示例11: AddClassItems
private void AddClassItems(MergableMenu menu, string path)
{
menu.Add(Open, 0);
menu.Add(Execute, 0);
menu.Add(FindAndReplace, 0);
if (Win32.ShouldUseWin32()) menu.Add(ShellMenu, 0);
AddCompileTargetItems(menu, path, false);
AddFileItems(menu, path);
}
示例12: AddInvalidClassPathNodes
private void AddInvalidClassPathNodes(MergableMenu menu, string path)
{
menu.Add(RemoveSourcePath, 2, true);
}
示例13: AddClasspathItems
private void AddClasspathItems(MergableMenu menu, string path)
{
menu.Add(AddMenu, 0);
menu.Add(Browse, 0);
menu.Add(FindInFiles, 0);
menu.Add(CommandPrompt, 0);
if (Win32.ShouldUseWin32()) menu.Add(ShellMenu, 0);
menu.Add(Paste, 1);
menu.Add(RemoveSourcePath, 2, true);
AddHideItems(menu, path, 3);
}
示例14: AddGenericFileItems
private void AddGenericFileItems(MergableMenu menu, string path)
{
menu.Add(Open,0);
menu.Add(Execute,0);
AddFileItems(menu,path);
}
示例15: AddExportItems
private void AddExportItems(MergableMenu menu, ExportNode node)
{
// it DOES make sense to allow insert of assets inside the injection target!
if (project.UsesInjection && project.GetRelativePath(node.ContainingSwfPath) != project.InputPath) return;
if (node is ClassExportNode) menu.Add(Open, 0);
menu.Add(Insert, 0);
}