本文整理汇总了C#中MonoDevelop.Projects.WorkspaceItemEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# WorkspaceItemEventArgs类的具体用法?C# WorkspaceItemEventArgs怎么用?C# WorkspaceItemEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WorkspaceItemEventArgs类属于MonoDevelop.Projects命名空间,在下文中一共展示了WorkspaceItemEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OnCloseWorkspace
protected override void OnCloseWorkspace (object sender, WorkspaceItemEventArgs e)
{
base.OnCloseWorkspace (sender, e);
IdeApp.ProjectOperations.CurrentSelectedSolutionItem = null;
IdeApp.ProjectOperations.CurrentSelectedWorkspaceItem = null;
IdeApp.ProjectOperations.CurrentSelectedItem = null;
}
开发者ID:pabloescribanoloza,项目名称:monodevelop,代码行数:7,代码来源:ProjectSolutionPad.cs
示例2: OnWorkspaceItemLoaded
static void OnWorkspaceItemLoaded (object sender, WorkspaceItemEventArgs e)
{
string fileToLoad = GetUserTasksFilename (e.Item);
userTasks.BeginTaskUpdates ();
try {
// Load User Tasks from xml file
if (File.Exists (fileToLoad)) {
XmlDataSerializer serializer = new XmlDataSerializer (new DataContext ());
List<Task> ts = (List<Task>) serializer.Deserialize (fileToLoad, typeof(List<Task>));
foreach (Task t in ts) {
t.WorkspaceObject = e.Item;
userTasks.Add (t);
}
}
}
catch (Exception ex) {
LoggingService.LogWarning ("Could not load user tasks: " + fileToLoad, ex);
}
finally {
userTasks.EndTaskUpdates ();
}
}
开发者ID:head-thrash,项目名称:monodevelop,代码行数:23,代码来源:TaskService.cs
示例3: OnEntryRemoved
void OnEntryRemoved (object sender, WorkspaceItemEventArgs e)
{
ITreeBuilder tb = Context.GetTreeBuilder (e.Item);
if (tb != null)
tb.Remove ();
}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:6,代码来源:WorkspaceNodeBuilder.cs
示例4: OnEntryAdded
void OnEntryAdded (object sender, WorkspaceItemEventArgs e)
{
ITreeBuilder tb = Context.GetTreeBuilder (e.Item.ParentWorkspace);
if (tb != null) {
tb.AddChild (e.Item, true);
tb.Expanded = true;
}
}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:8,代码来源:WorkspaceNodeBuilder.cs
示例5: OnSolutionUnloaded
void OnSolutionUnloaded (object sender, WorkspaceItemEventArgs e)
{
if (e.Item is Solution) {
RegistryInfo reg;
if (solutions.TryGetValue ((Solution) e.Item, out reg)) {
var nav = tree.BuilderContext.GetTreeBuilder (reg);
if (nav != null)
nav.Remove ();
}
}
}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:11,代码来源:ExtensionModelBrowserWidget.cs
示例6: OnWorkspaceItemUnloaded
void OnWorkspaceItemUnloaded (object s, WorkspaceItemEventArgs args)
{
if (ContainsTarget (args.Item, currentSolutionItem))
CurrentSelectedSolutionItem = null;
if (ContainsTarget (args.Item, currentWorkspaceItem))
CurrentSelectedWorkspaceItem = null;
if ((currentItem is IBuildTarget) && ContainsTarget (args.Item, ((IBuildTarget)currentItem)))
CurrentSelectedItem = null;
}
开发者ID:nocache,项目名称:monodevelop,代码行数:9,代码来源:ProjectOperations.cs
示例7: OnWorkspaceItemRemoved
static void OnWorkspaceItemRemoved (object s, WorkspaceItemEventArgs args)
{
Unload (args.Item);
}
开发者ID:Poiros,项目名称:monodevelop,代码行数:4,代码来源:ProjectDomService.cs
示例8: OnWorkspaceItemUnloaded
void OnWorkspaceItemUnloaded (object sender, WorkspaceItemEventArgs e)
{
foreach (var sln in e.Item.GetAllSolutions ())
loadedSlns.Remove (sln);
comments.RemoveItemTasks (e.Item, true);
}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:6,代码来源:CommentTasksView.cs
示例9: OnCloseWorkspace
protected virtual void OnCloseWorkspace (object sender, WorkspaceItemEventArgs e)
{
treeView.RemoveChild (e.Item);
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:4,代码来源:SolutionPad.cs
示例10: OnOpenWorkspace
protected virtual void OnOpenWorkspace (object sender, WorkspaceItemEventArgs e)
{
treeView.AddChild (e.Item);
}
开发者ID:transformersprimeabcxyz,项目名称:monodevelop-1,代码行数:4,代码来源:SolutionPad.cs
示例11: OnWorkspaceItemUnloaded
void OnWorkspaceItemUnloaded (object sender, WorkspaceItemEventArgs e)
{
comments.RemoveItemTasks (e.Item, true);
var solution = e.Item as Solution;
if (solution != null) {
loadedSlns.Remove (solution);
foreach (Project p in solution.GetAllProjects ()) {
projectTags.Remove (p);
}
}
}
开发者ID:zenek-y,项目名称:monodevelop,代码行数:13,代码来源:CommentTasksView.cs
示例12: OnEntryChanged
void OnEntryChanged (object sender, WorkspaceItemEventArgs e)
{
UpdateTests ();
}
开发者ID:telebovich,项目名称:monodevelop,代码行数:4,代码来源:WorkspaceTestGroup.cs
示例13: OnCombineOpened
void OnCombineOpened(object sender, WorkspaceItemEventArgs args)
{
try {
Solution sol = args.Item as Solution;
if (sol != null && sol.StartupItem != null)
fb.CurrentDir = sol.StartupItem.BaseDirectory;
} catch {
fb.CurrentDir = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
}
}
开发者ID:FreeBSD-DotNet,项目名称:monodevelop,代码行数:10,代码来源:FileScout.cs
示例14: OnWorkspaceItemUnloaded
void OnWorkspaceItemUnloaded (object sender, WorkspaceItemEventArgs e)
{
foreach (var sln in e.Item.GetAllSolutions ()) {
if (loadedSlns.Remove (sln))
sln.SolutionItemAdded -= HandleSolutionItemAdded;
}
comments.RemoveItemTasks (e.Item, true);
}
开发者ID:riverans,项目名称:monodevelop,代码行数:8,代码来源:CommentTasksView.cs
示例15: OnWorkspaceItemUnloaded
static void OnWorkspaceItemUnloaded (object sender, WorkspaceItemEventArgs e)
{
// Save UserTasks to xml file
SaveUserTasks (e.Item);
// Remove solution tasks
errors.RemoveItemTasks (e.Item, true);
userTasks.RemoveItemTasks (e.Item, true);
}
开发者ID:head-thrash,项目名称:monodevelop,代码行数:10,代码来源:TaskService.cs
示例16: OnWorkspaceItemLoaded
void OnWorkspaceItemLoaded (object sender, WorkspaceItemEventArgs e)
{
comments.BeginTaskUpdates ();
try {
LoadWorkspaceItemContents (e.Item);
}
finally {
comments.EndTaskUpdates ();
}
}
开发者ID:Tak,项目名称:monodevelop-novell,代码行数:10,代码来源:CommentTasksView.cs
示例17: OnOpenCombine
void OnOpenCombine (object sender, WorkspaceItemEventArgs e)
{
treeView.LoadTree (e.Item);
}
开发者ID:nocache,项目名称:monodevelop,代码行数:4,代码来源:ClassBrowserPadWidget.cs
示例18: OnWorkspaceItemAdded
static void OnWorkspaceItemAdded (object s, WorkspaceItemEventArgs args)
{
Load (args.Item);
}
开发者ID:Poiros,项目名称:monodevelop,代码行数:4,代码来源:ProjectDomService.cs
示例19: OnCloseCombine
void OnCloseCombine (object sender, WorkspaceItemEventArgs e)
{
treeView.Clear ();
}
开发者ID:nocache,项目名称:monodevelop,代码行数:4,代码来源:ClassBrowserPadWidget.cs
示例20: HandleWorkspaceItemLoaded
void HandleWorkspaceItemLoaded (object sender, WorkspaceItemEventArgs e)
{
if (ownerProjects != null)
return;
UpdateOwnerProjects (e.Item.GetAllItems<DotNetProject> ());
}
开发者ID:ZZHGit,项目名称:monodevelop,代码行数:6,代码来源:PathedDocumentTextEditorExtension.cs
注:本文中的MonoDevelop.Projects.WorkspaceItemEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论