You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2022/12/27 15:47:57 UTC
[netbeans] branch master updated: Fix missing ICON_RESOURCE in git tag actions
This is an automated email from the ASF dual-hosted git repository.
matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new baf42fa10b Fix missing ICON_RESOURCE in git tag actions
new 5f2e1382bc Merge pull request #5155 from Atrament666/fix_git_tag_actions_icon_resources
baf42fa10b is described below
commit baf42fa10b8e8ef49a7d726b50ec00853d38a9fc
Author: VladimĂr Machat <ma...@gmail.com>
AuthorDate: Mon Dec 26 22:36:43 2022 +0000
Fix missing ICON_RESOURCE in git tag actions
---
.../src/org/netbeans/modules/git/ui/tag/CreateTagAction.java | 10 ++++++++++
.../src/org/netbeans/modules/git/ui/tag/ManageTagsAction.java | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/ide/git/src/org/netbeans/modules/git/ui/tag/CreateTagAction.java b/ide/git/src/org/netbeans/modules/git/ui/tag/CreateTagAction.java
index 995bea1d5f..ed519c18eb 100644
--- a/ide/git/src/org/netbeans/modules/git/ui/tag/CreateTagAction.java
+++ b/ide/git/src/org/netbeans/modules/git/ui/tag/CreateTagAction.java
@@ -48,6 +48,16 @@ import org.openide.util.NbBundle;
public class CreateTagAction extends SingleRepositoryAction {
private static final Logger LOG = Logger.getLogger(CreateTagAction.class.getName());
+ private static final String ICON_RESOURCE = "org/netbeans/modules/git/resources/icons/tag.png"; //NOI18N
+
+ public CreateTagAction() {
+ super(ICON_RESOURCE);
+ }
+
+ @Override
+ protected String iconResource() {
+ return ICON_RESOURCE;
+ }
@Override
protected void performAction (File repository, File[] roots, VCSContext context) {
diff --git a/ide/git/src/org/netbeans/modules/git/ui/tag/ManageTagsAction.java b/ide/git/src/org/netbeans/modules/git/ui/tag/ManageTagsAction.java
index 7341b94efb..906c67fa5f 100644
--- a/ide/git/src/org/netbeans/modules/git/ui/tag/ManageTagsAction.java
+++ b/ide/git/src/org/netbeans/modules/git/ui/tag/ManageTagsAction.java
@@ -47,6 +47,16 @@ import org.openide.util.NbBundle;
public class ManageTagsAction extends SingleRepositoryAction {
private static final Logger LOG = Logger.getLogger(ManageTagsAction.class.getName());
+ private static final String ICON_RESOURCE = "org/netbeans/modules/git/resources/icons/tags.png"; //NOI18N
+
+ public ManageTagsAction() {
+ super(ICON_RESOURCE);
+ }
+
+ @Override
+ protected String iconResource() {
+ return ICON_RESOURCE;
+ }
@Override
protected void performAction (File repository, File[] roots, VCSContext context) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists