|
64 | 64 | </Menu> |
65 | 65 |
|
66 | 66 | </Menus> |
67 | | - |
68 | | - <!--Buttons section. --> |
69 | | - <!--This section defines the elements the user can interact with, like a menu command or a button |
70 | | - or combo box in a toolbar. --> |
| 67 | + |
| 68 | + <!-- Parenting of buttons is done in the CommandPlacements section --> |
71 | 69 | <Buttons> |
72 | | - <!--To define a menu group you have to specify its ID, the parent menu and its display priority. |
73 | | - The command is visible and enabled by default. If you need to change the visibility, status, etc, you can use |
74 | | - the CommandFlag node. |
75 | | - You can add more than one CommandFlag node e.g.: |
76 | | - <CommandFlag>DefaultInvisible</CommandFlag> |
77 | | - <CommandFlag>DynamicVisibility</CommandFlag> |
78 | | - If you do not want an image next to your command, remove the Icon node /> --> |
79 | | - |
80 | | - <Button guid="guidGitHubCmdSet" id="addConnectionCommand" priority="0x0100" type="Button"> |
81 | | - <Parent guid="guidGitHubCmdSet" id="idGitHubMenuGroup" /> |
| 70 | + |
| 71 | + <Button guid="guidGitHubCmdSet" id="addConnectionCommand" type="Button"> |
82 | 72 | <Icon guid="guidImages" id="logo" /> |
83 | 73 | <CommandFlag>IconIsMoniker</CommandFlag> |
84 | 74 | <Strings> |
85 | 75 | <ButtonText>&Connect to GitHub</ButtonText> |
86 | 76 | </Strings> |
87 | 77 | </Button> |
88 | 78 |
|
89 | | - <Button guid="guidGitHubCmdSet" id="showGitHubPaneCommand" priority="0x0100" type="Button"> |
90 | | - <Parent guid="guidSHLMainMenu" id="IDG_VS_WNDO_OTRWNDWS1" /> |
| 79 | + <Button guid="guidGitHubCmdSet" id="showGitHubPaneCommand" type="Button"> |
91 | 80 | <Icon guid="guidImages" id="logo" /> |
92 | 81 | <CommandFlag>IconIsMoniker</CommandFlag> |
93 | 82 | <Strings> |
|
96 | 85 | </Button> |
97 | 86 |
|
98 | 87 | <!--- Toolbar buttons --> |
99 | | - <Button guid="guidGitHubToolbarCmdSet" id="backCommand" priority="0x0100" type="Button"> |
100 | | - <Parent guid="guidGitHubToolbarCmdSet" id="idGitHubToolbarMenuGroup" /> |
| 88 | + <Button guid="guidGitHubToolbarCmdSet" id="backCommand" type="Button"> |
101 | 89 | <Icon guid="guidImages" id="arrow_left" /> |
102 | 90 | <CommandFlag>IconIsMoniker</CommandFlag> |
103 | 91 | <Strings> |
104 | 92 | <ButtonText></ButtonText> |
105 | 93 | </Strings> |
106 | 94 | </Button> |
107 | 95 |
|
108 | | - <Button guid="guidGitHubToolbarCmdSet" id="forwardCommand" priority="0x0101" type="Button"> |
109 | | - <Parent guid="guidGitHubToolbarCmdSet" id="idGitHubToolbarMenuGroup" /> |
| 96 | + <Button guid="guidGitHubToolbarCmdSet" id="forwardCommand" type="Button"> |
110 | 97 | <Icon guid="guidImages" id="arrow_right" /> |
111 | 98 | <CommandFlag>IconIsMoniker</CommandFlag> |
112 | 99 | <Strings> |
113 | 100 | <ButtonText></ButtonText> |
114 | 101 | </Strings> |
115 | 102 | </Button> |
116 | 103 |
|
117 | | - <Button guid="guidGitHubToolbarCmdSet" id="pullRequestCommand" priority="0x0102" type="Button"> |
118 | | - <Parent guid="guidGitHubToolbarCmdSet" id="idGitHubToolbarMenuGroup" /> |
| 104 | + <Button guid="guidGitHubToolbarCmdSet" id="pullRequestCommand" type="Button"> |
119 | 105 | <Icon guid="guidImages" id="pullrequest" /> |
120 | 106 | <CommandFlag>IconIsMoniker</CommandFlag> |
121 | 107 | <Strings> |
122 | 108 | <ButtonText></ButtonText> |
123 | 109 | </Strings> |
124 | 110 | </Button> |
125 | 111 |
|
126 | | - <Button guid="guidGitHubToolbarCmdSet" id="refreshCommand" priority="0x0110" type="Button"> |
127 | | - <Parent guid="guidGitHubToolbarCmdSet" id="idGitHubToolbarMenuGroup1" /> |
| 112 | + <Button guid="guidGitHubToolbarCmdSet" id="refreshCommand" type="Button"> |
128 | 113 | <Icon guid="guidImages" id="refresh" /> |
129 | 114 | <CommandFlag>IconIsMoniker</CommandFlag> |
130 | 115 | <Strings> |
131 | 116 | <ButtonText></ButtonText> |
132 | 117 | </Strings> |
133 | 118 | </Button> |
134 | 119 |
|
135 | | - <Button guid="guidContextMenuSet" id="openLinkCommand" priority="0x0100" type="Button"> |
136 | | - <Parent guid="guidContextMenuSet" id="idGitHubContextSubMenuGroup"/> |
| 120 | + <Button guid="guidContextMenuSet" id="openLinkCommand" type="Button"> |
137 | 121 | <Icon guid="guidImages" id="link_external" /> |
138 | 122 | <CommandFlag>IconIsMoniker</CommandFlag> |
139 | 123 | <CommandFlag>DefaultInvisible</CommandFlag> |
|
143 | 127 | </Strings> |
144 | 128 | </Button> |
145 | 129 |
|
146 | | - <Button guid="guidContextMenuSet" id="copyLinkCommand" priority="0x0101" type="Button"> |
147 | | - <Parent guid="guidContextMenuSet" id="idGitHubContextSubMenuGroup"/> |
| 130 | + <Button guid="guidContextMenuSet" id="copyLinkCommand" type="Button"> |
148 | 131 | <Icon guid="guidImages" id="clippy" /> |
149 | 132 | <CommandFlag>IconIsMoniker</CommandFlag> |
150 | 133 | <CommandFlag>DefaultInvisible</CommandFlag> |
|
158 | 141 | </Commands> |
159 | 142 |
|
160 | 143 | <CommandPlacements> |
| 144 | + |
| 145 | + <!-- context menu --> |
161 | 146 | <CommandPlacement guid="guidContextMenuSet" id="idGitHubContextMenuGroup" priority="0x1000"> |
162 | 147 | <Parent guid="GUID_XAML_EDITOR" id="ID_XAML_CTXT"/> |
163 | 148 | </CommandPlacement> |
|
173 | 158 | <CommandPlacement guid="guidContextMenuSet" id="idGitHubContextMenuGroup" priority="0x1000"> |
174 | 159 | <Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_CODEWIN"/> |
175 | 160 | </CommandPlacement> |
| 161 | + |
| 162 | + <!-- open and copy link to GitHub commands --> |
| 163 | + <CommandPlacement guid="guidContextMenuSet" id="openLinkCommand" priority="0x100"> |
| 164 | + <Parent guid="guidContextMenuSet" id="idGitHubContextSubMenuGroup"/> |
| 165 | + </CommandPlacement> |
| 166 | + |
| 167 | + <CommandPlacement guid="guidContextMenuSet" id="copyLinkCommand" priority="0x101"> |
| 168 | + <Parent guid="guidContextMenuSet" id="idGitHubContextSubMenuGroup"/> |
| 169 | + </CommandPlacement> |
| 170 | + |
| 171 | + <!-- Standard toolbar commands --> |
| 172 | + <CommandPlacement guid="guidGitHubToolbarCmdSet" id="backCommand" priority="0x100"> |
| 173 | + <Parent guid="guidGitHubToolbarCmdSet" id="idGitHubToolbarMenuGroup"/> |
| 174 | + </CommandPlacement> |
| 175 | + |
| 176 | + <CommandPlacement guid="guidGitHubToolbarCmdSet" id="forwardCommand" priority="0x101"> |
| 177 | + <Parent guid="guidGitHubToolbarCmdSet" id="idGitHubToolbarMenuGroup"/> |
| 178 | + </CommandPlacement> |
| 179 | + |
| 180 | + <CommandPlacement guid="guidGitHubToolbarCmdSet" id="refreshCommand" priority="0x110"> |
| 181 | + <Parent guid="guidGitHubToolbarCmdSet" id="idGitHubToolbarMenuGroup1"/> |
| 182 | + </CommandPlacement> |
| 183 | + |
| 184 | + <!-- Feature commands (open pull requests, etc) --> |
| 185 | + <CommandPlacement guid="guidGitHubToolbarCmdSet" id="pullRequestCommand" priority="0x102"> |
| 186 | + <Parent guid="guidGitHubToolbarCmdSet" id="idGitHubToolbarMenuGroup"/> |
| 187 | + </CommandPlacement> |
| 188 | + |
| 189 | + <!-- Show GitHub pane command --> |
| 190 | + <CommandPlacement guid="guidGitHubCmdSet" id="showGitHubPaneCommand" priority="0x0100"> |
| 191 | + <Parent guid="guidSHLMainMenu" id="IDG_VS_WNDO_OTRWNDWS1"/> |
| 192 | + </CommandPlacement> |
| 193 | + |
| 194 | + <!-- Add Connection (Team Explorer) command --> |
| 195 | + <CommandPlacement guid="guidGitHubCmdSet" id="addConnectionCommand" priority="0x0100"> |
| 196 | + <Parent guid="guidGitHubCmdSet" id="idGitHubMenuGroup"/> |
| 197 | + </CommandPlacement> |
| 198 | + |
176 | 199 | </CommandPlacements> |
177 | 200 |
|
178 | 201 | <Symbols> |
|
0 commit comments