|
Lines 318-329
var exports = {};
Link Here
|
| 318 |
commandService.addCommand(addBranchCommand, "object"); |
318 |
commandService.addCommand(addBranchCommand, "object"); |
| 319 |
|
319 |
|
| 320 |
var removeBranchCommand = new mCommands.Command({ |
320 |
var removeBranchCommand = new mCommands.Command({ |
| 321 |
name: "Remove", // "Remove Branch" |
321 |
name: "Delete", // "Delete Branch" |
| 322 |
tooltip: "Remove the local branch from the repository", |
322 |
tooltip: "Delete the local branch from the repository", |
| 323 |
imageClass: "core-sprite-delete", |
323 |
imageClass: "core-sprite-delete", |
| 324 |
id: "eclipse.removeBranch", |
324 |
id: "eclipse.removeBranch", |
| 325 |
callback: function(item) { |
325 |
callback: function(item) { |
| 326 |
if(confirm("Are you sure you want to remove branch " + item.Name+"?")) |
326 |
if(confirm("Are you sure you want to delete branch " + item.Name+"?")) |
| 327 |
serviceRegistry.getService("orion.git.provider").then( |
327 |
serviceRegistry.getService("orion.git.provider").then( |
| 328 |
function(service) { |
328 |
function(service) { |
| 329 |
service.removeBranch(item.Location).then( |
329 |
service.removeBranch(item.Location).then( |
|
Lines 341-352
var exports = {};
Link Here
|
| 341 |
commandService.addCommand(removeBranchCommand, "object"); |
341 |
commandService.addCommand(removeBranchCommand, "object"); |
| 342 |
|
342 |
|
| 343 |
var removeRemoteBranchCommand = new mCommands.Command({ |
343 |
var removeRemoteBranchCommand = new mCommands.Command({ |
| 344 |
name: "Remove", // "Remove Remote Branch", |
344 |
name: "Delete", // "Delete Remote Branch", |
| 345 |
tooltip: "Remove the remote tracking branch from the repository", |
345 |
tooltip: "Delete the remote tracking branch from the repository", |
| 346 |
imageClass: "core-sprite-delete", |
346 |
imageClass: "core-sprite-delete", |
| 347 |
id: "eclipse.removeRemoteBranch", |
347 |
id: "eclipse.removeRemoteBranch", |
| 348 |
callback: function(item) { |
348 |
callback: function(item) { |
| 349 |
if(confirm("You're going to remove remote branch " + item.Name+" and push the change.\n\nAre you sure?")) |
349 |
if(confirm("You're going to delete remote branch " + item.Name+" and push the change.\n\nAre you sure?")) |
| 350 |
exports.getDefaultSshOptions(serviceRegistry).then(function(options){ |
350 |
exports.getDefaultSshOptions(serviceRegistry).then(function(options){ |
| 351 |
var func = arguments.callee; |
351 |
var func = arguments.callee; |
| 352 |
serviceRegistry.getService("orion.git.provider").then(function(gitService) { |
352 |
serviceRegistry.getService("orion.git.provider").then(function(gitService) { |
|
Lines 357-363
var exports = {};
Link Here
|
| 357 |
function(jsonData){ |
357 |
function(jsonData){ |
| 358 |
if (jsonData.Result.Severity == "Ok") |
358 |
if (jsonData.Result.Severity == "Ok") |
| 359 |
dojo.hitch(explorer, explorer.changedItem)(item.parent); |
359 |
dojo.hitch(explorer, explorer.changedItem)(item.parent); |
| 360 |
}, func, "Remove Remote Branch"); |
360 |
}, func, "Delete Remote Branch"); |
| 361 |
}); |
361 |
}); |
| 362 |
}); |
362 |
}); |
| 363 |
}); |
363 |
}); |
|
Lines 396-407
var exports = {};
Link Here
|
| 396 |
commandService.addCommand(addRemoteCommand, "object"); |
396 |
commandService.addCommand(addRemoteCommand, "object"); |
| 397 |
|
397 |
|
| 398 |
var removeRemoteCommand = new mCommands.Command({ |
398 |
var removeRemoteCommand = new mCommands.Command({ |
| 399 |
name: "Remove", // "Remove Remote", |
399 |
name: "Delete", // "Delete Remote", |
| 400 |
tooltip: "Remove the remote from the repository", |
400 |
tooltip: "Delete the remote from the repository", |
| 401 |
imageClass: "core-sprite-delete", |
401 |
imageClass: "core-sprite-delete", |
| 402 |
id: "eclipse.removeRemote", |
402 |
id: "eclipse.removeRemote", |
| 403 |
callback: function(item) { |
403 |
callback: function(item) { |
| 404 |
if(confirm("Are you sure you want to remove remote " + item.Name+"?")) |
404 |
if(confirm("Are you sure you want to delete remote " + item.Name+"?")) |
| 405 |
serviceRegistry.getService("orion.git.provider").then( |
405 |
serviceRegistry.getService("orion.git.provider").then( |
| 406 |
function(service) { |
406 |
function(service) { |
| 407 |
service.removeRemote(item.Location).then( |
407 |
service.removeRemote(item.Location).then( |
|
Lines 1156-1162
var exports = {};
Link Here
|
| 1156 |
|
1156 |
|
| 1157 |
var resetIndexCommand = new mCommands.Command({ |
1157 |
var resetIndexCommand = new mCommands.Command({ |
| 1158 |
name : "Reset", |
1158 |
name : "Reset", |
| 1159 |
tooltip: "Reset your active branch to the state of the selected branch. Remove all staged and unstaged changes.", |
1159 |
tooltip: "Reset your active branch to the state of the selected branch. Discard all staged and unstaged changes.", |
| 1160 |
imageClass: "git-sprite-refresh", |
1160 |
imageClass: "git-sprite-refresh", |
| 1161 |
spriteClass: "gitCommandSprite", |
1161 |
spriteClass: "gitCommandSprite", |
| 1162 |
id : "eclipse.orion.git.resetIndex", |
1162 |
id : "eclipse.orion.git.resetIndex", |
|
Lines 1670-1677
var exports = {};
Link Here
|
| 1670 |
commandService.addCommand(initGitRepositoryCommand, "dom"); |
1670 |
commandService.addCommand(initGitRepositoryCommand, "dom"); |
| 1671 |
|
1671 |
|
| 1672 |
var deleteCommand = new mCommands.Command({ |
1672 |
var deleteCommand = new mCommands.Command({ |
| 1673 |
name: "Remove", // "Remove Clone" |
1673 |
name: "Delete", // "Delete Repository" |
| 1674 |
tooltip: "Remove the repository", |
1674 |
tooltip: "Delete the repository", |
| 1675 |
imageClass: "core-sprite-delete", |
1675 |
imageClass: "core-sprite-delete", |
| 1676 |
id: "eclipse.git.deleteClone", |
1676 |
id: "eclipse.git.deleteClone", |
| 1677 |
visibleWhen: function(item) { |
1677 |
visibleWhen: function(item) { |