This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 9ddbcda51e add a github star link to the welcome dialog. fixes #2888
     new 151b71a4a0 Merge pull request #2889 from bamaer/2888
9ddbcda51e is described below

commit 9ddbcda51ec6f013b367e73cc16ea38ebd524ea4
Author: Bart Maertens <[email protected]>
AuthorDate: Sat Apr 29 12:55:31 2023 +0200

    add a github star link to the welcome dialog. fixes #2888
---
 .../org/apache/hop/ui/hopgui/welcome/WelcomeWelcome.java   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/welcome/WelcomeWelcome.java 
b/ui/src/main/java/org/apache/hop/ui/hopgui/welcome/WelcomeWelcome.java
index 5b0cd64512..004b763c27 100644
--- a/ui/src/main/java/org/apache/hop/ui/hopgui/welcome/WelcomeWelcome.java
+++ b/ui/src/main/java/org/apache/hop/ui/hopgui/welcome/WelcomeWelcome.java
@@ -67,6 +67,20 @@ public class WelcomeWelcome {
 
   public static final String WEB_NAME_HOP_APACHE_ORG = "hop.apache.org";
   public static final String WEB_LINK_HOP_APACHE_ORG = 
"https://hop.apache.org/";;
+  public static final String WEB_NAME_GITHUB_STAR = "starring";
+  public static final String WEB_LINK_GITHUB_STAR = 
"https://github.com/apache/hop";;
+
+  @GuiWidgetElement(
+      id= "WelcomeWelcome.0900-github-star",
+      parentId = WELCOME_WELCOME_PARENT_ID,
+      type = GuiElementType.LINK,
+      label = "If you like Apache Hop, please consider <a>"
+              + WEB_NAME_GITHUB_STAR
+              + "</a> \u2B50 the project on github. \n"
+  )
+  public void githubStarLink(Event event){
+    handleWebLinkEvent(event, WEB_NAME_GITHUB_STAR, WEB_LINK_GITHUB_STAR);
+  }
 
   @GuiWidgetElement(
       id = "WelcomeWelcome.1000-homepage",

Reply via email to