Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add right click menu options to the code window #28

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments
Closed

Add right click menu options to the code window #28

GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

In NiftyPerforce/Connect.cs add these lines:

m_plugin.AddMenuCommand("Code Window", "NiftyPerforceEditItem", "P4 Edit",
"Opens the document for edit", 1, 1);
m_plugin.AddMenuCommand("Code Window", "NiftyPerforceRenameItem", "P4
Rename", "Renames the item", 1, 2);
m_plugin.AddMenuCommand("Code Window", "NiftyPerforceDiffItem", "P4 Diff",
"Diffs the selected item with the depot", 3, 3);
m_plugin.AddMenuCommand("Code Window", "NiftyPerforceRevisionHistoryItem",
"P4 Revision History", "Shows the revision history of the selected item",
6, 4);
m_plugin.AddMenuCommand("Code Window", "NiftyPerforceTimeLapseItem", "P4
Time lapse view", "Brings up the time lapse view", 7, 5);
m_plugin.AddMenuCommand("Code Window", "NiftyPerforceRevertItem", "P4
Revert", "Reverts the item", 4, 6);


Note with my other suggested change (issue 27) the first line would be:
m_plugin.AddMenuCommand("Code Window", "NiftyPerforceEditItem", "P4 Edit",
"Opens the document for edit", 1, 1, true);

Arieh.

Original issue reported on code.google.com by arieh.sc...@gmail.com on 14 Nov 2008 at 2:51

@GoogleCodeExporter
Copy link
Author

So, these would add these menu items to the filename tab in the MDI window?

Original comment by jim.tila...@gmail.com on 15 Nov 2008 at 5:11

@GoogleCodeExporter
Copy link
Author

No, that was "Easy MDI Document Window", "Code Window" is right clicking inside 
the
code window.

Original comment by arieh.sc...@gmail.com on 17 Nov 2008 at 3:57

@GoogleCodeExporter
Copy link
Author

Ok, there are context sensitive menu shortcuts to p4 on the MDI tabs now.

Original comment by jim.tila...@gmail.com on 30 Apr 2009 at 8:10

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant