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

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