This is an automated email from the ASF dual-hosted git repository.
geertjan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-website.git
The following commit(s) were added to refs/heads/master by this push:
new b5afc22 Fixed some typos in "Publish to the Lookup" part.
new 06b3189 Merge pull request #475 from ftassy/patch-1
b5afc22 is described below
commit b5afc221b761ddc77df149e632b669caae9ae32f
Author: Florent Tassy <[email protected]>
AuthorDate: Sat Jun 6 16:24:01 2020 +0200
Fixed some typos in "Publish to the Lookup" part.
---
netbeans.apache.org/src/content/tutorials/nbm-quick-start.asciidoc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/netbeans.apache.org/src/content/tutorials/nbm-quick-start.asciidoc
b/netbeans.apache.org/src/content/tutorials/nbm-quick-start.asciidoc
index 409a93e..0b562d8 100644
--- a/netbeans.apache.org/src/content/tutorials/nbm-quick-start.asciidoc
+++ b/netbeans.apache.org/src/content/tutorials/nbm-quick-start.asciidoc
@@ -473,19 +473,19 @@ In this section, you publish a String into the Lookup of
the TopComponent. Whene
[start=1]
-1. In the "WordEditorCore" module, we publish a String whenever the user
clicks the "Filter!" button. To do so, change the constructor of the
"WordTopComponent" as follows:*private
link:http://bits.netbeans.org/dev/javadoc/org-openide-util-lookup/org/openide/util/lookup/InstanceContent.html[InstanceContent]
content;*
+1. In the "WordEditorCore" module, we publish a String whenever the user
clicks the "Filter!" button. To do so, change the constructor of the
"WordTopComponent" as follows:
[source,java]
----
-
+*private InstanceContent content;*
private WordTopComponent() {
initComponents();
setName(Bundle.CTL_WordTopComponent());
setToolTipText(Bundle.HINT_WordTopComponent());
*content = new InstanceContent();
-link:http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/TopComponent.html#associateLookup(org.openide.util.Lookup)[associateLookup](new
link:http://bits.netbeans.org/dev/javadoc/org-openide-util-lookup/org/openide/util/lookup/AbstractLookup.html[AbstractLookup](content));*
+ this.associateLookup(new AbstractLookup(content));*
}
----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists