Skip to content

Commit ff57190

Browse files
Merge pull request #6696 from mbien/git-add-missing-branch-icons
Add missing git create-branch and switch-branch toolbar icons.
2 parents 38dd456 + 2c1982d commit ff57190

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

ide/git/src/org/netbeans/modules/git/ui/branch/CreateBranchAction.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@
5050
public class CreateBranchAction extends SingleRepositoryAction {
5151

5252
private static final Logger LOG = Logger.getLogger(CreateBranchAction.class.getName());
53+
private static final String ICON_RESOURCE = "org/netbeans/modules/git/resources/icons/branch.png"; //NOI18N
54+
55+
public CreateBranchAction() {
56+
super(ICON_RESOURCE);
57+
}
58+
59+
@Override
60+
protected String iconResource() {
61+
return ICON_RESOURCE;
62+
}
5363

5464
@Override
5565
protected void performAction (File repository, File[] roots, VCSContext context) {

ide/git/src/org/netbeans/modules/git/ui/checkout/SwitchBranchAction.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@
4747
@ActionRegistration(displayName = "#LBL_SwitchBranchAction_Name")
4848
public class SwitchBranchAction extends AbstractCheckoutAction {
4949

50+
private static final String ICON_RESOURCE = "org/netbeans/modules/git/resources/icons/active_branch.png"; //NOI18N
51+
52+
public SwitchBranchAction() {
53+
super(ICON_RESOURCE);
54+
}
55+
56+
@Override
57+
protected String iconResource() {
58+
return ICON_RESOURCE;
59+
}
60+
5061
@Override
5162
protected void performAction (File repository, File[] roots, VCSContext context) {
5263
RepositoryInfo info = RepositoryInfo.getInstance(repository);

0 commit comments

Comments
 (0)