Skip to content

Commit d6fdd74

Browse files
committed
use unmodified code
1 parent 82143e9 commit d6fdd74

12 files changed

+102
-102
lines changed

netbeans.apache.org/src/content/tutorials/nbm-copyfqn.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ In this section, we are introduced to our first explicitly invoked "Retouche" ta
257257
[start=1]
258258
1. Replace the "Hurray!" message in the ``actionPerformed`` method with this line: link:http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-java-source/org/netbeans/api/java/source/JavaSource.html#runUserActionTask(org.netbeans.api.java.source.Task,%20boolean)[javaSource.runUserActionTask]
259259

260-
[source,java,subs="macros,quotes"]
260+
[source,java,subs="verbatim,macros,quotes"]
261261
----
262262
263-
(new link:http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-java-source/org/netbeans/api/java/source/Task.html[Task]< link:https://bits.netbeans.org/dev/javadoc/org-netbeans-modules-java-source/org/netbeans/api/java/source/CompilationController.html[CompilationController]>());
263+
(new link:http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-java-source/org/netbeans/api/java/source/Task.html[Task]< link:https://bits.netbeans.org/dev/javadoc/org-netbeans-modules-java-source/org/netbeans/api/java/source/CompilationController.html[CompilationController]>());
264264
----
265265

266266
You should now see a lightbulb in the editor's left sidebar, as shown here:
@@ -279,7 +279,7 @@ Click the lightbulb in the editor. Alternatively, put the caret in the line and
279279
[start=2]
280280
1. Tweak the generated method slightly, by adding a ``true`` boolean to the end of the method, and letting the IDE wrap the snippet in a try/catch block. At the end, the result should be as follows:
281281

282-
[source,java,subs="quotes"]
282+
[source,java,subs="verbatim,quotes"]
283283
----
284284
285285
public void actionPerformed(ActionEvent ev) {
@@ -292,7 +292,7 @@ public void actionPerformed(ActionEvent ev) {
292292
} else {
293293
294294
*try {
295-
javaSource.runUserActionTask(new Task&lt;CompilationController&gt;() {
295+
javaSource.runUserActionTask(new Task<CompilationController>() {
296296
public void run(CompilationController arg0) throws Exception {
297297
throw new UnsupportedOperationException("Not supported yet.");
298298
}

netbeans.apache.org/src/content/tutorials/nbm-crud.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ public void resetFields() {
10211021
[start=2]
10221022
1. In the `` link:http://bits.netbeans.org/dev/javadoc/org-openide-awt/org/netbeans/spi/actions/AbstractSavable.html[AbstractSavable]`` , ensure that a return of ``null`` indicates that a new entry is saved, instead of an existing entry being updated:
10231023

1024-
[source,java,subs="quotes"]
1024+
[source,java,subs="verbatim,quotes"]
10251025
----
10261026
10271027
@Override

netbeans.apache.org/src/content/tutorials/nbm-emf.asciidoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ The other OSGi-related dependencies you see in the screenshot above were added b
338338
1. Create a new Java class named `LibraryNode`, which provides a new Node for the Library object, as well as a new Node for the Book object and Borrower object:
339339

340340

341-
[source,java,subs="macros"]
341+
[source,java,subs="verbatim,macros"]
342342
----
343343
344344
public class LibraryNode extends link:http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/AbstractNode.html[AbstractNode] {
@@ -348,7 +348,7 @@ public class LibraryNode extends link:http://bits.netbeans.org/dev/javadoc/org-o
348348
setDisplayName(library.getName());
349349
}
350350
351-
private static class BookOrBorrowerChildFactory extends link:http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/ChildFactory.html[ChildFactory]&lt;Object&gt; {
351+
private static class BookOrBorrowerChildFactory extends link:http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/ChildFactory.html[ChildFactory]<Object> {
352352
353353
private final Library library;
354354
@@ -358,7 +358,7 @@ public class LibraryNode extends link:http://bits.netbeans.org/dev/javadoc/org-o
358358
359359
@Override
360360
protected boolean createKeys(List list) {
361-
EList&lt;Book&gt; books = library.getBooks();
361+
EList<Book> books = library.getBooks();
362362
for (Book book : books) {
363363
list.add(book);
364364
}
@@ -399,13 +399,13 @@ public class LibraryNode extends link:http://bits.netbeans.org/dev/javadoc/org-o
399399
1. Create a new Java class named `LibraryChildFactory`, which is a factory class for creating new `LibraryNode`s:
400400

401401

402-
[source,java,subs="macros"]
402+
[source,java,subs="verbatim,macros"]
403403
----
404404
405405
public class LibraryChildFactory extends link:http://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/ChildFactory.html[ChildFactory]<Library> {
406406
407407
@Override
408-
protected boolean createKeys(List&lt;Library&gt; list) {
408+
protected boolean createKeys(List<Library> list) {
409409
410410
EXTLibraryFactory factory = EXTLibraryFactory.eINSTANCE;
411411

netbeans.apache.org/src/content/tutorials/nbm-javacc-parser.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ void recover (ParseException ex, int recoveryPoint) {
305305
Token t;
306306
do {
307307
t = getNextToken ();
308-
} while (t.kind != EOF &amp;&amp; t.kind != recoveryPoint);
308+
} while (t.kind != EOF && t.kind != recoveryPoint);
309309
}
310310
----
311311

@@ -894,7 +894,7 @@ image::images/javacc_72_add-fold-2.png[]
894894
Create a new `` link:http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-editor-fold/org/netbeans/spi/editor/fold/FoldManager.html[FoldManager]`` :
895895

896896

897-
[source,java,subs="macros"]
897+
[source,java,subs="verbatim,macros"]
898898
----
899899
900900
package org.simplejava.parser;
@@ -937,7 +937,7 @@ public class SJFoldManager implements link:http://bits.netbeans.org/dev/javadoc/
937937
offset = ts.offset();
938938
Token<SJTokenId> token = ts.token();
939939
SJTokenId id = token.id();
940-
if (id.name().equals("FORMAL_COMMENT") &amp;&amp; type == null) {
940+
if (id.name().equals("FORMAL_COMMENT") && type == null) {
941941
type = COMMENT_FOLD_TYPE;
942942
start = offset;
943943
try {

netbeans.apache.org/src/content/tutorials/nbm-nodesapi3.asciidoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,25 +271,25 @@ Note that in the code above, we create a node called ``CategoryNode`` . We will
271271
[source,java,subs="macros"]
272272
----
273273
274-
public class CategoryNode extends link:https://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/AbstractNode.html[AbstractNode] {
274+
public class CategoryNode extends link:https://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/AbstractNode.html[AbstractNode] {
275275
276276
/** Creates a new instance of CategoryNode */
277277
public CategoryNode( Category category ) {
278278
super( new MovieChildren(category), Lookups.singleton(category) );
279-
link:https://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Node.html#setDisplayName(java.lang.String)[setDisplayName(category.getName())];
280-
link:https://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Node.html#setDisplayName(java.lang.String)[setIconBaseWithExtension("org/netbeans/myfirstexplorer/marilyn_category.gif")];
279+
link:https://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Node.html#setDisplayName(java.lang.String)[setDisplayName(category.getName())];
280+
link:https://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Node.html#setDisplayName(java.lang.String)[setIconBaseWithExtension("org/netbeans/myfirstexplorer/marilyn_category.gif")];
281281
}
282282
283283
public PasteType link:https://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/AbstractNode.html#getDropType(java.awt.datatransfer.Transferable,%20int,%20int)[getDropType(Transferable t, final int action, int index)] {
284284
final Node dropNode = NodeTransfer.node( t,
285285
DnDConstants.ACTION_COPY_OR_MOVE+NodeTransfer.CLIPBOARD_CUT );
286286
if( null != dropNode ) {
287287
final Movie movie = (Movie)dropNode.getLookup().lookup( Movie.class );
288-
if( null != movie &amp;&amp; !this.equals( dropNode.getParentNode() )) {
288+
if( null != movie && !this.equals( dropNode.getParentNode() )) {
289289
return new PasteType() {
290290
public Transferable paste() throws IOException {
291291
getChildren().add( new Node[] { new MovieNode(movie) } );
292-
if( (action &amp; DnDConstants.ACTION_MOVE) != 0 ) {
292+
if( (action & DnDConstants.ACTION_MOVE) != 0 ) {
293293
dropNode.getParentNode().getChildren().remove( new Node[] {dropNode} );
294294
}
295295
return null;
@@ -415,9 +415,9 @@ public class MovieChildren extends link:https://bits.netbeans.org/dev/javadoc/or
415415
this.category = Category;
416416
}
417417
418-
protected java.util.List&lt;Node&gt; link:https://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Index.ArrayChildren.html#initCollection()[initCollection()] {
418+
protected java.util.List<Node> link:https://bits.netbeans.org/dev/javadoc/org-openide-nodes/org/openide/nodes/Index.ArrayChildren.html#initCollection()[initCollection()] {
419419
ArrayList childrenNodes = new ArrayList( items.length );
420-
for( int i=0; i &lt; items.length; i++ ) {
420+
for( int i=0; i < items.length; i++ ) {
421421
if( category.getName().equals( items[i][1] ) ) {
422422
Movie item = new Movie();
423423
item.setNumber(new Integer(items[i][0]));

netbeans.apache.org/src/content/tutorials/nbm-palette-api1.asciidoc

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ You need to create an XML file that defines the code snippet, together with a re
9494
[start=3]
9595
1. Define the ``package-info.java`` class as follows.
9696

97-
[source,java,subs="macros"]
97+
[source,java,subs="verbatim,macros"]
9898
----
9999
100100
link:http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-palette/org/netbeans/spi/palette/PaletteItemRegistration.html[@PaletteItemRegistration]
@@ -104,9 +104,9 @@ link:http://bits.netbeans.org/dev/javadoc/org-netbeans-spi-palette/org/netbeans/
104104
itemid = "BR",
105105
icon32 = "org/netbeans/modules/newsnippets1/BR32.png",
106106
icon16 = "org/netbeans/modules/newsnippets1/BR16.png",
107-
body = "&lt;br&gt;",
107+
body = "<br>",
108108
name = "New Line",
109-
tooltip = "&lt;br&gt;")
109+
tooltip = "<br>")
110110
package org.netbeans.modules.newsnippets1;
111111
112112
import org.netbeans.spi.palette.PaletteItemRegistration;
@@ -212,7 +212,7 @@ In this section, you create ``BR.java`` , which defines a code snippet for an H
212212
[start=2]
213213
1. Replace the default content of the ``BR.java`` file with the following:
214214

215-
[source,java,subs="macros"]
215+
[source,java,subs="verbatim,macros"]
216216
----
217217
218218
package org.netbeans.modules.newsnippets2;
@@ -228,7 +228,7 @@ public class BR implements link:http://bits.netbeans.org/dev/javadoc/org-openide
228228
}
229229
230230
private String createBody() {
231-
String Br = "&lt;br&gt;";
231+
String Br = "<br>";
232232
return Br;
233233
}
234234
@@ -358,26 +358,26 @@ The NetBeans Editor Palette Item DTD is used to declare the ``ActiveEditorDrop`
358358
Instead of the above, you can use the 1.1 DTD, where you can define the display name and tooltip without using a properties file. Below, only the difference with the previous XML file definition is highlighted:
359359

360360

361-
[source,xml,subs="quotes"]
361+
[source,xml,subs="verbatim,quotes"]
362362
----
363363
364-
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
365-
&lt;!DOCTYPE editor_palette_item PUBLIC "*-//NetBeans//Editor Palette Item 1.1//EN*"
366-
"https://netbeans.org/dtds/*editor-palette-item-1_1.dtd*"&gt;
364+
<?xml version="1.0" encoding="UTF-8"?>
365+
<!DOCTYPE editor_palette_item PUBLIC "*-//NetBeans//Editor Palette Item 1.1//EN*"
366+
"https://netbeans.org/dtds/*editor-palette-item-1_1.dtd*">
367367
368-
&lt;editor_palette_item version="1.0"&gt;
368+
<editor_palette_item version="1.0">
369369
370-
&lt;class name="org.netbeans.modules.newsnippets2.BR" /&gt;
370+
<class name="org.netbeans.modules.newsnippets2.BR" />
371371
372-
&lt;icon16 urlvalue="org/netbeans/modules/newsnippets2/resources/BR16.png" /&gt;
373-
&lt;icon32 urlvalue="org/netbeans/modules/newsnippets2/resources/BR32.png" /&gt;
372+
<icon16 urlvalue="org/netbeans/modules/newsnippets2/resources/BR16.png" />
373+
<icon32 urlvalue="org/netbeans/modules/newsnippets2/resources/BR32.png" />
374374
375-
*&lt;inline-description&gt;
376-
&lt;display-name&gt;New Line&lt;/display-name&gt;
377-
&lt;tooltip&gt; &lt;![CDATA[ &lt;br&gt; ]]&gt;&lt;/tooltip&gt;
378-
&lt;/inline-description&gt;*
375+
*<inline-description>
376+
<display-name>New Line</display-name>
377+
<tooltip> <![CDATA[ <br> ]]></tooltip>
378+
</inline-description>*
379379
380-
&lt;/editor_palette_item>
380+
</editor_palette_item>
381381
----
382382

383383
NOTE: You can choose either of the two approaches above, depending on your requirements.
@@ -542,7 +542,7 @@ private void evaluateInput() {
542542
[start=8]
543543
1. Hook your customizer into the ``ActiveEditorDrop`` implementation class as follows (only the lines that are changed are highlighted below):
544544

545-
[source,java,subs="macros,quotes"]
545+
[source,java,subs="verbatim,macros,quotes"]
546546
----
547547
548548
package org.netbeans.modules.newsnippets2;
@@ -562,7 +562,7 @@ public class BR implements link:https://bits.netbeans.org/dev/javadoc/org-openid
562562
private String createBody() {
563563
*comment = getComment();
564564
String Br = "<!-- " + comment + " -->"
565-
+ "\n &lt;br&gt;";*
565+
+ "\n <br>";*
566566
return Br;
567567
}
568568

netbeans.apache.org/src/content/tutorials/nbm-wizard.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ image::images/wizard_70_branding-1.png[]
497497
[source,java]
498498
----
499499
500-
CTL_NEXT=&amp;Advance >
500+
CTL_NEXT=&Advance >
501501
----
502502

503503
Other strings you might like to brand are as follows:

netbeans.apache.org/src/content/wiki/DevFaqDotSettingsFiles.asciidoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ Settings files are also useful if you are declaring some objects in a layer file
4141

4242
=== Example
4343

44-
[source,xml,subs="macros"]
44+
[source,xml,subs="verbatim,macros"]
4545
----
4646
47-
&lt;?xml version="1.0"?&gt;
48-
&lt;!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN"
49-
"link:http://www.netbeans.org/dtds/sessionsettings-1_0.dtd[http://www.netbeans.org/dtds/sessionsettings-1_0.dtd]"&gt;
50-
&lt;settings version="1.0"&gt;
51-
&lt;module name="org.netbeans.core.io.ui/1" spec="1.6"/&gt;
52-
&lt;instanceof class="org.openide.windows.TopComponent"/&gt;
53-
&lt;instanceof class="org.netbeans.core.io.ui.IOWindow$IOWindowImpl"/&gt;
54-
&lt;serialdata class="org.netbeans.core.io.ui.IOWindow$IOWindowImpl"&gt;
47+
<?xml version="1.0"?>
48+
<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN"
49+
"link:http://www.netbeans.org/dtds/sessionsettings-1_0.dtd[http://www.netbeans.org/dtds/sessionsettings-1_0.dtd]">
50+
<settings version="1.0">
51+
<module name="org.netbeans.core.io.ui/1" spec="1.6"/>
52+
<instanceof class="org.openide.windows.TopComponent"/>
53+
<instanceof class="org.netbeans.core.io.ui.IOWindow$IOWindowImpl"/>
54+
<serialdata class="org.netbeans.core.io.ui.IOWindow$IOWindowImpl">
5555
ACED0005737200296F72672E6F70656E6964652E7...
56-
&lt;/serialdata&gt;
57-
&lt;/settings&gt;
56+
</serialdata>
57+
</settings>
5858
----
5959

6060
== Apache Migration Information

netbeans.apache.org/src/content/wiki/DevFaqHelpGuidelines.asciidoc

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -181,19 +181,19 @@ in the desired category.
181181
For example, say you wanted to list a help file under the Java Project Basics -> Building Java Applications category. You would
182182
enter the following in your TOC file:
183183

184-
[source,xml,subs="macros"]
184+
[source,xml,subs="verbatim,macros"]
185185
----
186186
187-
&lt;?xml version='1.0' encoding='ISO-8859-1' ?&gt;
188-
&lt;!DOCTYPE toc PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 2.0//EN"
189-
"link:http://java.sun.com/products/javahelp/toc_2_0.dtd[http://java.sun.com/products/javahelp/toc_2_0.dtd]"&gt;
190-
&lt;toc version="2.0"&gt;
191-
&lt;tocitem text="Java Project Basics"&gt;
192-
&lt;tocitem text="Building Java Applications"&gt;
193-
&lt;tocitem text="My Help File" target="my_target"/&gt;
194-
&lt;/tocitem&gt;
195-
&lt;/tocitem&gt;
196-
&lt;/toc&gt;
187+
<?xml version='1.0' encoding='ISO-8859-1' ?>
188+
<!DOCTYPE toc PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 2.0//EN"
189+
"link:http://java.sun.com/products/javahelp/toc_2_0.dtd[http://java.sun.com/products/javahelp/toc_2_0.dtd]">
190+
<toc version="2.0">
191+
<tocitem text="Java Project Basics">
192+
<tocitem text="Building Java Applications">
193+
<tocitem text="My Help File" target="my_target"/>
194+
</tocitem>
195+
</tocitem>
196+
</toc>
197197
----
198198

199199
"My Help File" would get merged in at the end of the topics in the category.
@@ -270,17 +270,17 @@ Use the following syntax to link to the glossary page:
270270

271271
Use the following syntax:
272272

273-
[source,xml,subs="macros"]
273+
[source,xml,subs="verbatim,macros"]
274274
----
275275
276-
&lt;object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer"&gt;
277-
&lt;!-- Enter the URL below --&gt;
278-
&lt;param name="content" value="link:http://www.netbeans.org/kb/41/freeform-config.html[http://www.netbeans.org/kb/41/freeform-config.html]"&gt;
279-
&lt;!-- Enter the display text below. The &lt;html&gt; and &lt;u&gt; make the text look like a link. --&gt;
280-
&lt;param name="text" value="&lt;html&gt;&lt;u&gt;link:http://www.netbeans.org/kb/41/freeform-config.html[http://www.netbeans.org/kb/41/freeform-config.html]&lt;/u&gt;&lt;/html&gt;"&gt;
281-
&lt;param name="textFontSize" value="medium"&gt;
282-
&lt;param name="textColor" value="blue"&gt;
283-
&lt;/object&gt;
276+
<object classid="java:org.netbeans.modules.javahelp.BrowserDisplayer">
277+
<!-- Enter the URL below -->
278+
<param name="content" value="link:http://www.netbeans.org/kb/41/freeform-config.html[http://www.netbeans.org/kb/41/freeform-config.html]">
279+
<!-- Enter the display text below. The <html> and <u> make the text look like a link. -->
280+
<param name="text" value="<html><u>link:http://www.netbeans.org/kb/41/freeform-config.html[http://www.netbeans.org/kb/41/freeform-config.html]</u></html>">
281+
<param name="textFontSize" value="medium">
282+
<param name="textColor" value="blue">
283+
</object>
284284
----
285285

286286
*Note* When you view the page outside of !NetBeans, this link will not display or will display as a ???

netbeans.apache.org/src/content/wiki/DevFaqHowToChangeUpdateCenterURL.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
Use UpdateUnitProviderFactory link:http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-autoupdate-services/org/netbeans/api/autoupdate/UpdateUnitProviderFactory.html[http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-autoupdate-services/org/netbeans/api/autoupdate/UpdateUnitProviderFactory.html]
3333

34-
[source,java,subs="macros"]
34+
[source,java,subs="verbatim,macros"]
3535
----
3636
3737
List<UpdateUnitProvider> updateUnitProviders = UpdateUnitProviderFactory.getDefault().getUpdateUnitProviders(true);

0 commit comments

Comments
 (0)