Skip to content

Commit 12d0062

Browse files
author
slavara
committed
Small cleanup...
1 parent a160577 commit 12d0062

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

QuickNavigate/Forms/ClassModelExplorerForm.cs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,23 @@ protected override void Dispose(bool disposing)
3838
protected void InitializeContextMenu()
3939
{
4040
ContextMenuStrip = new ContextMenuStrip();
41-
ContextMenuStrip.Items.Add(new ToolStripMenuItem("&Goto Position Or Line", PluginBase.MainForm.FindImage("67"),
42-
OnGotoLineOrPosition)
41+
ContextMenuStrip.Items.Add(new ToolStripMenuItem("&Goto Position Or Line", PluginBase.MainForm.FindImage("67"), OnGotoLineOrPosition)
4342
{
4443
ShortcutKeyDisplayString = "G"
4544
});
46-
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Show in Quick &Outline",
47-
PluginBase.MainForm.FindImage("315|16|0|0"), OnShowInQuickOutline)
45+
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Show in Quick &Outline", PluginBase.MainForm.FindImage("315|16|0|0"), OnShowInQuickOutline)
4846
{
4947
ShortcutKeyDisplayString = "O"
5048
});
51-
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Show in &Class Hierarchy",
52-
PluginBase.MainForm.FindImage("99|16|0|0"), OnShowInClassHierarchy)
49+
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Show in &Class Hierarchy", PluginBase.MainForm.FindImage("99|16|0|0"), OnShowInClassHierarchy)
5350
{
5451
ShortcutKeyDisplayString = "C"
5552
});
56-
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Show in &Project Manager", PluginBase.MainForm.FindImage("274"),
57-
OnShowInProjectManager)
53+
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Show in &Project Manager", PluginBase.MainForm.FindImage("274"), OnShowInProjectManager)
5854
{
5955
ShortcutKeyDisplayString = "P"
6056
});
61-
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Show in &File Explorer", PluginBase.MainForm.FindImage("209"),
62-
OnShowInFileExplorer)
57+
ContextMenuStrip.Items.Add(new ToolStripMenuItem("Show in &File Explorer", PluginBase.MainForm.FindImage("209"), OnShowInFileExplorer)
6358
{
6459
ShortcutKeyDisplayString = "F"
6560
});

QuickNavigate/PluginMain.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ void CreateMenuItems()
179179
PluginBase.MainForm.RegisterShortcutItem(ShortcutId.ClassHierarchy, classHierarchyItem);
180180
editorClassHierarchyItem = new ToolStripMenuItem("Class Hierarchy", image, ShowClassHierarchy);
181181
PluginBase.MainForm.EditorMenu.Items.Insert(8, editorClassHierarchyItem);
182-
var item = new ToolStripMenuItem("Recent Files", null, ShowRecentFiles);
182+
var item = new ToolStripMenuItem("Recent Files", PluginBase.MainForm.FindImage("209"), ShowRecentFiles);
183183
PluginBase.MainForm.RegisterShortcutItem(ShortcutId.RecentFiles, item);
184184
menu.DropDownItems.Add(item);
185-
item = new ToolStripMenuItem("Recent Projects", null, ShowRecentProjets);
185+
item = new ToolStripMenuItem("Recent Projects", PluginBase.MainForm.FindImage("274"), ShowRecentProjets);
186186
PluginBase.MainForm.RegisterShortcutItem(ShortcutId.RecentProjects, item);
187187
menu.DropDownItems.Add(item);
188188
}

0 commit comments

Comments
 (0)