You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by gi...@apache.org on 2019/01/18 09:44:14 UTC
[incubator-netbeans-website] branch asf-site updated: Automated
site publishing by Jenkins build 313
This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 9b00c37 Automated site publishing by Jenkins build 313
9b00c37 is described below
commit 9b00c37bc2dbc6a882802c537b21b59b2c3e45e9
Author: jenkins <bu...@apache.org>
AuthorDate: Fri Jan 18 09:44:12 2019 +0000
Automated site publishing by Jenkins build 313
---
content/kb/docs/java/editor-inspect-transform.html | 172 +++------------------
1 file changed, 24 insertions(+), 148 deletions(-)
diff --git a/content/kb/docs/java/editor-inspect-transform.html b/content/kb/docs/java/editor-inspect-transform.html
index 7ede1f0..9deb736 100644
--- a/content/kb/docs/java/editor-inspect-transform.html
+++ b/content/kb/docs/java/editor-inspect-transform.html
@@ -80,25 +80,20 @@
<div class='grid-container main-content tutorial'>
<div id="toc" class="toc">
<div id="toctitle"></div>
+<ul class="sectlevel1">
+<li><a href="#_refactoring_with_inspect_and_transform_in_the_netbeans_ide_java_editor">Refactoring with Inspect and Transform in the NetBeans IDE Java Editor</a>
<ul class="sectlevel2">
-<li><a href="#_contents">Contents</a></li>
-<li><a href="#_requirements">Requirements</a></li>
<li><a href="#_setting_up_the_tutorial_environment">Setting Up the Tutorial Environment</a></li>
<li><a href="#_running_inspections">Running Inspections</a></li>
-<li><a href="#_using_configurations">Using Configurations</a>
-<ul class="sectlevel2">
-<li><a href="#_migrate_to_jdk_5">Migrate to JDK 5</a></li>
-<li><a href="#_migrate_to_jdk_7">Migrate to JDK 7</a></li>
-<li><a href="#_migrate_to_jdk_8">Migrate to JDK 8</a></li>
-<li><a href="#_organize_imports">Organize Imports</a></li>
-</ul>
-</li>
+<li><a href="#_using_configurations">Using Configurations</a></li>
<li><a href="#_managing_custom_inspections">Managing Custom Inspections</a></li>
<li><a href="#_summary">Summary</a></li>
-<li><a href="#_see_also">See Also</a></li>
+</ul>
+</li>
</ul>
</div>
-<div id="preamble">
+<div class="sect1">
+<h2 id="_refactoring_with_inspect_and_transform_in_the_netbeans_ide_java_editor">Refactoring with Inspect and Transform in the NetBeans IDE Java Editor</h2>
<div class="sectionbody">
<div class="paragraph">
<p>The NetBeans IDE Java Editor features an Inspect and Transform feature, which is a refactoring tool for running various inspections and transformations on the selected scope of files at once. It also enables a user to define a custom inspection.</p>
@@ -106,84 +101,8 @@
<div class="paragraph">
<p>In this tutorial, you will learn to perform a code review using inspections with refactoring and predefined set of inspections, manage configurations, and create custom inspections.</p>
</div>
-</div>
-</div>
<div class="sect2">
-<h3 id="_contents">Contents</h3>
-<div class="imageblock">
-<div class="content">
-<img src="images/netbeans-stamp.png" alt="netbeans stamp">
-</div>
-<div class="title">Figure 1. Content on this page applies to NetBeans IDE 8.0</div>
-</div>
-<div class="ulist">
-<ul>
-<li>
-<p><a href="#setup">Setting Up the Tutorial Environment</a></p>
-</li>
-<li>
-<p><a href="#run">Running Inspections</a></p>
-</li>
-<li>
-<p><a href="#configuration">Using Configurations</a></p>
-</li>
-<li>
-<p><a href="#migrate5">Migrate to JDK 5</a></p>
-</li>
-<li>
-<p><a href="#convert">Migrate to JDK 7</a></p>
-</li>
-<li>
-<p><a href="#migrate8">Migrate to JDK 8</a></p>
-</li>
-<li>
-<p><a href="#organize">Organize Imports</a></p>
-</li>
-<li>
-<p><a href="#create">Managing Custom Inspections</a></p>
-</li>
-<li>
-<p><a href="#summary">Summary</a></p>
-</li>
-<li>
-<p><a href="#seealso">See Also</a></p>
-</li>
-</ul>
-</div>
-</div>
-<div class="sect1">
-<h2 id="_requirements">Requirements</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p><strong>To complete this tutorial, you need the following software and resources.</strong></p>
-</div>
-<table class="tableblock frame-all grid-all spread">
-<colgroup>
-<col style="width: 50%;">
-<col style="width: 50%;">
-</colgroup>
-<thead>
-<tr>
-<th class="tableblock halign-left valign-top">Software or Resource</th>
-<th class="tableblock halign-left valign-top">Version Required</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="http://netbeans.org/downloads/index.html">NetBeans IDE</a></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Version 8.0</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">Java Development Kit</a> (JDK)</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Version 7 or 8</p></td>
-</tr>
-</tbody>
-</table>
-</div>
-</div>
-<div class="sect1">
-<h2 id="_setting_up_the_tutorial_environment">Setting Up the Tutorial Environment</h2>
-<div class="sectionbody">
+<h3 id="_setting_up_the_tutorial_environment">Setting Up the Tutorial Environment</h3>
<div class="paragraph">
<p>In addition to the required software listed above you should have the <a href="https://netbeans.org/projects/samples/downloads/download/Samples/Java/inspecttransform.zip">InspectTransform.zip</a> file unzipped into your NetBeans project folder and opened in the NetBeans IDE as follows:</p>
</div>
@@ -193,10 +112,8 @@
</div>
</div>
</div>
-</div>
-<div class="sect1">
-<h2 id="_running_inspections">Running Inspections</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="_running_inspections">Running Inspections</h3>
<div class="paragraph">
<p>The Single Inspection option in the Inspect and Transform dialog box (Refactor > Inspect and Transform) offers a big variety of inspections related to particular refactoring transformations. The complete list of such operations is available in the Manage Inspections dialog box after clicking the Browse button to the right of the Single Inspection option.</p>
</div>
@@ -270,10 +187,8 @@ The suggested refactoring changes display in the preview panel.</p>
<p><a href="#top">top</a></p>
</div>
</div>
-</div>
-<div class="sect1">
-<h2 id="_using_configurations">Using Configurations</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="_using_configurations">Using Configurations</h3>
<div class="paragraph">
<p>A set of refactorings grouped together constitute a configuration that can be run on your scope of interest, for example, a class or several classes, packages, or projects. The IDE offers the following two predefined configurations:</p>
</div>
@@ -293,8 +208,8 @@ The suggested refactoring changes display in the preview panel.</p>
</li>
</ul>
</div>
-<div class="sect2">
-<h3 id="_migrate_to_jdk_5">Migrate to JDK 5</h3>
+<div class="sect3">
+<h4 id="_migrate_to_jdk_5">Migrate to JDK 5</h4>
<div class="paragraph">
<p>The <code>Migrate to JDK 5</code> configuration available in the IDE by default incorporates such refactoring operations as static imports, JDK 5 for-loop usage, unnecessary boxing and unboxing, and switch over Strings application.</p>
</div>
@@ -311,8 +226,8 @@ The suggested refactoring changes display in the preview panel.</p>
<p><strong>Note:</strong> The list of refactorings in the configuration can be modified in the Inspections list of the Manage Inspections dialog box by selecting and deselecting the items under the <code>JDK Migration Support</code> node.</p>
</div>
</div>
-<div class="sect2">
-<h3 id="_migrate_to_jdk_7">Migrate to JDK 7</h3>
+<div class="sect3">
+<h4 id="_migrate_to_jdk_7">Migrate to JDK 7</h4>
<div class="paragraph">
<p>The <code>Migrate to JDK 7</code> configuration available in the IDE by default incorporates such refactoring operations as diamond operator usage, try-with-resources conversion, multicatch usage, switch over Strings application, and others.</p>
</div>
@@ -365,8 +280,8 @@ Changes that convert the code to JDK 7 syntax display in the preview panel.</p>
</ol>
</div>
</div>
-<div class="sect2">
-<h3 id="_migrate_to_jdk_8">Migrate to JDK 8</h3>
+<div class="sect3">
+<h4 id="_migrate_to_jdk_8">Migrate to JDK 8</h4>
<div class="paragraph">
<p>The <code>Migrate to JDK 8</code> configuration available in the IDE by default incorporates such refactoring operations as Lambda or Member Reference conversion, static imports, multicatch usage, switch over Strings application, and others.</p>
</div>
@@ -383,8 +298,8 @@ Changes that convert the code to JDK 7 syntax display in the preview panel.</p>
<p><strong>Note:</strong> The list of refactorings in the configuration can be modified in the Inspections list of the Manage Inspections dialog box by selecting and deselecting the items under the <code>JDK Migration Support</code> node.</p>
</div>
</div>
-<div class="sect2">
-<h3 id="_organize_imports">Organize Imports</h3>
+<div class="sect3">
+<h4 id="_organize_imports">Organize Imports</h4>
<div class="paragraph">
<p>The <code>Organize Imports</code> configuration enables you to inspect the way import statements are organized in the code and refactor your code if desired. By default it includes a single inspection that checks whether import statements correspond to the specified code style rules.</p>
</div>
@@ -464,10 +379,8 @@ The preview panel displays one occurrence proposed for the Import section of the
</div>
</div>
</div>
-</div>
-<div class="sect1">
-<h2 id="_managing_custom_inspections">Managing Custom Inspections</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="_managing_custom_inspections">Managing Custom Inspections</h3>
<div class="paragraph">
<p>A custom inspection can be created to instruct the IDE what code structures are to be found and how to transform them.</p>
</div>
@@ -586,51 +499,14 @@ The suggested refactoring changes display in the preview panel.</p>
<p><a href="#top">top</a></p>
</div>
</div>
-</div>
-<div class="sect1">
-<h2 id="_summary">Summary</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="_summary">Summary</h3>
<div class="paragraph">
<p>This tutorial covers most frequent usages of the Inspect and Transform feature. Please note that with the Inspect and Transform functionality you can also perform custom refactoring at project scope, or apply particular refactoring configurations to several projects open in the IDE, etc.</p>
</div>
<div class="paragraph">
<p><a href="#top">top</a></p>
</div>
-<div class="paragraph">
-<p><a href="/about/contact_form.html?to=3&subject=Feedback:%20Refactoring%20with%20Inspect%20and%20Transform%20in%20the%20NetBeans%20IDE%20Java%20Editor">Send Feedback on This Tutorial</a></p>
-</div>
-</div>
-</div>
-<div class="sect1">
-<h2 id="_see_also">See Also</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>For related material see the following documents:</p>
-</div>
-<div class="ulist">
-<ul>
-<li>
-<p><a href="http://www.oracle.com/pls/topic/lookup?ctx=nb8000&id=NBDAG613">Using Hints in Source Code Analysis and Refactoring</a> in <em>Developing Applications with NetBeans IDE</em></p>
-</li>
-<li>
-<p><a href="http://wiki.netbeans.org/Java_Hints">Complete List of NetBeans Java Hints</a></p>
-</li>
-<li>
-<p><a href="http://wiki.netbeans.org/JavaDeclarativeHintsDescriptionSketch">Description of NetBeans Java Declarative Hints</a></p>
-</li>
-<li>
-<p><a href="code-inspect.html">Static Code Analysis in the NetBeans IDE Java Editor</a></p>
-</li>
-<li>
-<p><a href="http://wiki.netbeans.org/Refactoring">Refactoring Simplified</a></p>
-</li>
-<li>
-<p><a href="http://platform.netbeans.org/tutorials/nbm-java-hint.html">NetBeans Java Hint Module Tutorial</a></p>
-</li>
-</ul>
-</div>
-<div class="paragraph">
-<p><a href="#top">top</a></p>
</div>
</div>
</div>
---------------------------------------------------------------------
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