From 4dca7f1ab1d8b66476fa45fd231ae8a543d74ca8 Mon Sep 17 00:00:00 2001 From: Chris2011 Date: Wed, 10 Oct 2018 21:25:41 +0200 Subject: [PATCH 1/3] #70 - Added Go To Declaration for methods inside strings of add_shortcode, register_activation_hook and register_deactivation_hook. --- .../wordpress/editor/navi/WordPressHyperlinkProviderExt.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/netbeans/modules/php/wordpress/editor/navi/WordPressHyperlinkProviderExt.java b/src/org/netbeans/modules/php/wordpress/editor/navi/WordPressHyperlinkProviderExt.java index 68522b6..33f96f7 100644 --- a/src/org/netbeans/modules/php/wordpress/editor/navi/WordPressHyperlinkProviderExt.java +++ b/src/org/netbeans/modules/php/wordpress/editor/navi/WordPressHyperlinkProviderExt.java @@ -78,7 +78,10 @@ public class WordPressHyperlinkProviderExt implements HyperlinkProviderExt { "add_filter", // NOI18N "remove_filter", // NOI18N "add_action", // NOI18N - "remove_action"); // NOI18N + "remove_action", // NOI18N + "register_activation_hook", // NOI18N + "register_deactivation_hook", // NOI18N + "add_shortcode"); // NOI18N private String target; private int startOffset; private int endOffset; From 608812fb14b2fed5ffd3a12dc47edcd591f5ff91 Mon Sep 17 00:00:00 2001 From: Chris2011 Date: Wed, 10 Oct 2018 21:25:59 +0200 Subject: [PATCH 2/3] #70 - Updated readme, added missing Hyperling navigation functions. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bb01873..432ac84 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,8 @@ This is very simple feature. If you input a plugin name (plugin_name)... This feature is available on the parameters of following functions: - add_filter, remove_filter - add_action, remove_action +- add_shortcode +- register_activation_hook, register_deactivation_hook Hold down Ctrl key on first or second parameter. If text color is changed to blue, Click there. Then caret position go to function. (first parameter is available when there are the same function names as parameter name : in this case, caret doesn't necessarily go to right position) From bd60fcffa6d7855389166b6521265078838b775e Mon Sep 17 00:00:00 2001 From: Chrizzly Date: Tue, 13 Jun 2023 21:23:22 +0200 Subject: [PATCH 3/3] Move WordPress folder to category PHP where it belongs to At the moment calling the "new file" wizard will show WordPress folder on each project type, which doesn't make sense. So I added the specific category where it belongs to, which is "PHP" in this case. So it will only show up in php projects. --- .../php/wordpress/resources/templates/package-info.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/org/netbeans/modules/php/wordpress/resources/templates/package-info.java b/src/org/netbeans/modules/php/wordpress/resources/templates/package-info.java index 456cda8..f2ad003 100644 --- a/src/org/netbeans/modules/php/wordpress/resources/templates/package-info.java +++ b/src/org/netbeans/modules/php/wordpress/resources/templates/package-info.java @@ -8,6 +8,7 @@ scriptEngine = "freemarker"), @TemplateRegistration( folder = "WordPress", + category = "PHP", iconBase = WordPress.WP_ICON_16, displayName = "#WordPress_Plugin_Template_DisplayName", content = "WpPlugin.php", @@ -15,6 +16,7 @@ scriptEngine = "freemarker"), @TemplateRegistration( folder = "WordPress", + category = "PHP", iconBase = WordPress.WP_ICON_16, displayName = "#WordPress_Plugin_Readme_DisplayName", content = "readme.txt", @@ -22,6 +24,7 @@ scriptEngine = "freemarker"), @TemplateRegistration( folder = "WordPress", + category = "PHP", iconBase = WordPress.WP_ICON_16, displayName = "#WordPress_Theme_Style_DisplayName", content = "style.css", @@ -29,6 +32,7 @@ scriptEngine = "freemarker"), @TemplateRegistration( folder = "WordPress", + category = "PHP", iconBase = WordPress.WP_ICON_16, displayName = "#WordPress_Child_Theme_Style_DisplayName", content = "child-style.css", @@ -36,6 +40,7 @@ scriptEngine = "freemarker"), @TemplateRegistration( folder = "WordPress", + category = "PHP", // iconBase = WordPress.WP_ICON_16, displayName = "#WordPress_Permalink_Htaccess_DisplayName", content = ".htaccess",