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/03/16 09:09:42 UTC
[incubator-netbeans-website] branch asf-site updated: Automated
site publishing by Jenkins build 640
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 ae05c2e Automated site publishing by Jenkins build 640
ae05c2e is described below
commit ae05c2e4a8a9a9516219437ff9f6211b0b4f267f
Author: jenkins <bu...@apache.org>
AuthorDate: Sat Mar 16 09:09:38 2019 +0000
Automated site publishing by Jenkins build 640
---
content/kb/docs/java/editor-inspect-transform.html | 154 ++++++++-------------
1 file changed, 57 insertions(+), 97 deletions(-)
diff --git a/content/kb/docs/java/editor-inspect-transform.html b/content/kb/docs/java/editor-inspect-transform.html
index c6c0721..418119d 100644
--- a/content/kb/docs/java/editor-inspect-transform.html
+++ b/content/kb/docs/java/editor-inspect-transform.html
@@ -98,7 +98,11 @@
<div id="toctitle"></div>
<ul class="sectlevel1">
<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="#_running_inspections">Running Inspections</a>
+<ul class="sectlevel3">
+<li><a href="#_to_run_an_inspection_and_apply_an_existing_inspection">To run an inspection and apply an existing Inspection:</a></li>
+</ul>
+</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>
@@ -138,7 +142,7 @@
<h2 id="_running_inspections">Running Inspections</h2>
<div class="sectionbody">
<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>
+<p>The <strong>Single Inspection</strong> option in the <strong>Inspect and Transform</strong> dialog box (<strong>Refactor > Inspect and Transform</strong>) offers a big variety of inspections related to particular refactoring transformations. The complete list of such operations is available in the <strong>Manage Inspections</strong> dialog box after clicking the <strong>Browse</strong> button to the right of the <strong>Single Inspection</strong> option.</p>
</div>
<div class="openblock feature">
<div class="content">
@@ -162,34 +166,30 @@
</div>
</div>
<div class="paragraph">
-<p>Every inspection is provided with a description available either in the Description field in the Manage Inspection dialog box.</p>
-</div>
-<div class="paragraph">
-<p><strong>To run an inspection and apply an existing Inspection:</strong></p>
+<p>Every inspection is provided with a description available either in the Description field or in the <strong>Manage Inspection dialog</strong> box.</p>
</div>
+<div class="sect3">
+<h4 id="_to_run_an_inspection_and_apply_an_existing_inspection">To run an inspection and apply an existing Inspection:</h4>
<div class="olist arabic">
<ol class="arabic">
<li>
-<p>In the Projects window, select the <code>InspectTransform.java</code> file.</p>
+<p>In the <strong>Projects</strong> window, select the <code>InspectTransform.java</code> file.</p>
</li>
<li>
-<p>Choose Refactor > Inspect and Transform from the IDE’s menu.</p>
+<p>Choose <strong>Refactor > Inspect and Transform</strong> from the IDE’s menu.</p>
</li>
<li>
-<p>In the Inspect and Transform dialog box, select the Single Inspection option and click Browse.</p>
+<p>In the <strong>Inspect and Transform</strong> dialog box, select the <strong>Single Inspection</strong> option and click <strong>Browse.</strong></p>
</li>
<li>
-<p>In the Manage Inspections dialog box, choose the <code>Assignment replaceable with operator-assignment</code> inspection in the Assignment Issues node.</p>
+<p>In the <strong>Manage Inspections</strong> dialog box, choose the <code>Assignment replaceable with operator-assignment</code> inspection in the Assignment Issues node.</p>
</li>
<li>
-<p>Click OK to close the Manage Inspections dialog box.</p>
+<p>Click <strong>OK</strong> to close the <strong>Manage Inspections</strong> dialog box.</p>
</li>
<li>
-<p>Click Inspect in the Inspect and Transform dialog box.
+<p>Click <strong>Inspect</strong> in the <strong>Inspect and Transform</strong> dialog box.
The suggested refactoring changes display in the preview panel.</p>
-</li>
-</ol>
-</div>
<div class="openblock feature">
<div class="content">
<div class="imageblock left">
@@ -199,15 +199,12 @@ The suggested refactoring changes display in the preview panel.</p>
</div>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
+</li>
<li>
-<p>Click Do Refactoring to apply the changes if required.</p>
+<p>Click <strong>Do Refactoring</strong> to apply the changes if required.</p>
</li>
</ol>
</div>
-<div class="paragraph">
-<p><a href="#top">top</a></p>
</div>
</div>
</div>
@@ -266,7 +263,7 @@ Not all releases of the JDK introduce new language features.
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
-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.
+The list of refactorings in the configuration can be modified in the Inspections list of the <strong>Manage Inspections</strong> dialog box by selecting and deselecting the items under the <code>JDK Migration Support</code> node.
</td>
</tr>
</table>
@@ -293,31 +290,27 @@ The list of refactorings in the configuration can be modified in the Inspections
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
-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.
+The list of refactorings in the configuration can be modified in the Inspections list of the <strong>Manage Inspections</strong> dialog box by selecting and deselecting the items under the <code>JDK Migration Support</code> node.
</td>
</tr>
</table>
</div>
-<div class="paragraph">
-<p><strong>To run and apply the default <code>Migrate to JDK 7</code> configuration:</strong></p>
-</div>
+<div class="sect3">
+<h4 id="_to_run_and_apply_the_default_code_migrate_to_jdk_7_code_configuration">To run and apply the default <code>Migrate to JDK 7</code> configuration:</h4>
<div class="olist arabic">
<ol class="arabic">
<li>
-<p>In the Projects window, select the <code>PredefinedSet.java</code> file.</p>
+<p>In the <strong>Projects</strong> window, select the <code>PredefinedSet.java</code> file.</p>
</li>
<li>
-<p>Choose Refactor > Inspect and Transform from the IDE’s menu.</p>
+<p>Choose <strong>Refactor > Inspect</strong> and <strong>Transform</strong> from the IDE’s menu.</p>
</li>
<li>
-<p>In the Inspect and Transform dialog box, select the Configuration option and choose the <code>Migrate to JDK 7</code> set of inspections from the drop-down list.</p>
+<p>In the <strong>Inspect and Transform</strong> dialog box, select the <strong>Configuration</strong> option and choose the <code>Migrate to JDK 7</code> set of inspections from the drop-down list.</p>
</li>
<li>
-<p>Click Inspect.
+<p>Click <strong>Inspect</strong>.
Changes that convert the code to JDK 7 syntax display in the preview panel.</p>
-</li>
-</ol>
-</div>
<div class="openblock feature">
<div class="content">
<div class="imageblock left">
@@ -327,14 +320,14 @@ Changes that convert the code to JDK 7 syntax display in the preview panel.</p>
</div>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
+</li>
<li>
-<p>Click Do Refactoring to apply the changes if required.</p>
+<p>Click <strong>Do Refactoring</strong> to apply the changes if required.</p>
</li>
</ol>
</div>
</div>
+</div>
<div class="sect2">
<h3 id="_migrate_to_jdk_8">Migrate to JDK 8</h3>
<div class="paragraph">
@@ -356,7 +349,7 @@ Changes that convert the code to JDK 7 syntax display in the preview panel.</p>
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
-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.
+The list of refactorings in the configuration can be modified in the Inspections list of the <strong>Manage Inspections</strong> dialog box by selecting and deselecting the items under the <code>JDK Migration Support</code> node.
</td>
</tr>
</table>
@@ -382,19 +375,16 @@ To configure the code style rules for import statements:
<div class="olist arabic">
<ol class="arabic">
<li>
-<p>Choose Tools > Options > Editor > Formatting in the main IDE toolbar.</p>
+<p>Choose <strong>Tools > Options > Editor > Formatting</strong> in the main IDE toolbar.</p>
</li>
<li>
-<p>Select Java in the Language drop-down list.</p>
+<p>Select <strong>Java</strong> in the Language drop-down list.</p>
</li>
<li>
-<p>Select Imports in the Category drop-down list.</p>
+<p>Select <strong>Imports</strong> in the <strong>Category</strong> drop-down list.</p>
</li>
<li>
<p>Specify the available options as required.</p>
-</li>
-</ol>
-</div>
<div class="openblock feature">
<div class="content">
<div class="imageblock left">
@@ -404,33 +394,28 @@ To configure the code style rules for import statements:
</div>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
+</li>
<li>
-<p>Click OK to save your edits.</p>
+<p>Click <strong>OK</strong> to save your edits.</p>
</li>
</ol>
</div>
-<div class="paragraph">
-<p><strong>To run and apply the default <code>Organize Imports </code> configuration:</strong></p>
-</div>
+<div class="sect3">
+<h4 id="_to_run_and_apply_the_default_code_organize_imports_code_configuration">To run and apply the default <code>Organize Imports </code> configuration:</h4>
<div class="olist arabic">
<ol class="arabic">
<li>
-<p>In the Projects window, select the <code>Imports.java</code> file.</p>
+<p>In the <strong>Projects</strong> window, select the <code>Imports.java</code> file.</p>
</li>
<li>
-<p>Choose Refactor > Inspect and Transform from the IDE’s menu.</p>
+<p>Choose <strong>Refactor > Inspect and Transform</strong> from the IDE’s menu.</p>
</li>
<li>
-<p>In the Inspect and Transform dialog box, select the Configuration option and choose the <code>Organize Imports</code> item.</p>
+<p>In the <strong>Inspect and Transform</strong> dialog box, select the Configuration option and choose the <code>Organize Imports</code> item.</p>
</li>
<li>
-<p>Click Inspect.
+<p>Click <strong>Inspect</strong>.
The preview panel displays one occurrence proposed for the Import section of the <code>Imports.java</code> file to make it aligned with the specified code style rules.</p>
-</li>
-</ol>
-</div>
<div class="openblock feature">
<div class="content">
<div class="imageblock left">
@@ -440,15 +425,12 @@ The preview panel displays one occurrence proposed for the Import section of the
</div>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
+</li>
<li>
-<p>Click Do Refactoring to apply the changes if necessary.</p>
+<p>Click <strong>Do Refactoring</strong> to apply the changes if necessary.</p>
</li>
</ol>
</div>
-<div class="paragraph">
-<p><a href="#top">top</a></p>
</div>
</div>
</div>
@@ -466,7 +448,7 @@ The preview panel displays one occurrence proposed for the Import section of the
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
-To avoid adding a duplicate inspection to the IDE, choose Refactor > Inspect and Transform from the main menu, click either Manage or Browse, and, in the Manage Inspections dialog box, use the Search field to look for the required inspection prior to creating a new inspection.
+To avoid adding a duplicate inspection to the IDE, choose <strong>Refactor > Inspect and Transform</strong> from the main menu, click either <strong>Manage</strong> or <strong>Browse</strong>, and, in the <strong>Manage Inspections</strong> dialog box, use the <strong>Search</strong> field to look for the required inspection prior to creating a new inspection.
</td>
</tr>
</table>
@@ -477,17 +459,14 @@ To avoid adding a duplicate inspection to the IDE, choose Refactor > Inspect
<div class="olist arabic">
<ol class="arabic">
<li>
-<p>Choose Refactor > Inspect and Transform from the IDE’s menu.</p>
+<p>Choose <strong>Refactor > Inspect</strong> and <strong>Transform</strong> from the IDE’s menu.</p>
</li>
<li>
-<p>In the Inspect and Transform dialog box, click either Manage or Browse.</p>
+<p>In the <strong>Inspect and Transform</strong> dialog box, click either <strong>Manage</strong> or <strong>Browse</strong>.</p>
</li>
<li>
-<p>In the Manage Inspections dialog box, click New.
+<p>In the <strong>Manage Inspections</strong> dialog box, click <strong>New</strong>.
A <code>Custom > Inspection</code> node is created in the Inspections list.</p>
-</li>
-</ol>
-</div>
<div class="openblock feature">
<div class="content">
<div class="imageblock left">
@@ -497,16 +476,12 @@ A <code>Custom > Inspection</code> node is created in the Inspections list.
</div>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
+</li>
<li>
<p>(Optional) Right-click <code>Inspection</code> , choose Rename from the popup menu, specify the name required for your custom inspection (for example, <code>MyCustomInspection</code> ), and press Enter.</p>
</li>
<li>
<p>Click Edit Script. The Script text area displays.</p>
-</li>
-</ol>
-</div>
<div class="openblock feature">
<div class="content">
<div class="imageblock left">
@@ -516,13 +491,9 @@ A <code>Custom > Inspection</code> node is created in the Inspections list.
</div>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
+</li>
<li>
<p>Type the inspection description and code in the Script text area or click Open in Editor and specify the same in the <code>MyCustomInspection.hint</code> file.</p>
-</li>
-</ol>
-</div>
<div class="openblock feature">
<div class="content">
<div class="imageblock left">
@@ -532,13 +503,12 @@ A <code>Custom > Inspection</code> node is created in the Inspections list.
</div>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
+</li>
<li>
-<p>Click Save below the Script text area or press Ctrl-S in the Editor to save your edits.</p>
+<p>Click <strong>Save</strong> below the Script text area or press <kbd>Ctrl</kbd> + <kbd>S</kbd> in the Editor to save your edits.</p>
</li>
<li>
-<p>Click OK to close the Manage Inspections dialog box or close the <code>MyCustomInspection.hint</code> file in the Editor.
+<p>Click <strong>OK</strong> to close the <strong>Manage Inspections</strong> dialog box or close the <code>MyCustomInspection.hint</code> file in the Editor.
Your custom inspection is done and ready to be applied.</p>
</li>
</ol>
@@ -549,16 +519,13 @@ Your custom inspection is done and ready to be applied.</p>
<div class="olist arabic">
<ol class="arabic">
<li>
-<p>Choose Refactor > Inspect and Transform from the IDE’s menu.</p>
+<p>Choose <strong>Refactor > Inspect and Transform</strong> from the IDE’s menu.</p>
</li>
<li>
-<p>In the Inspect list of the Inspect and Transform dialog box, specify a file, package, or project(s) to be inspected. Alternatively, click the button to the right to open the Custom Scope dialog box and specify the custom code to be inspected.</p>
+<p>In the Inspect list of the <strong>Inspect and Transform</strong> dialog box, specify a file, package, or project(s) to be inspected. Alternatively, click the button to the right to open the <strong>Custom Scope</strong> dialog box and specify the custom code to be inspected.</p>
</li>
<li>
-<p>Select the Single Inspection option and choose the <code>MyCustomInspection</code> inspection.</p>
-</li>
-</ol>
-</div>
+<p>Select the <strong>Single Inspection</strong> option and choose the <code>MyCustomInspection</code> inspection.</p>
<div class="openblock feature">
<div class="content">
<div class="imageblock left">
@@ -568,20 +535,16 @@ Your custom inspection is done and ready to be applied.</p>
</div>
</div>
</div>
-<div class="olist arabic">
-<ol class="arabic">
+</li>
<li>
-<p>Click Inspect.
+<p>Click <strong>Inspect</strong>.
The suggested refactoring changes display in the preview panel.</p>
</li>
<li>
-<p>Click Do Refactoring to apply the changes if required.</p>
+<p>Click <strong>Do Refactoring</strong> to apply the changes if required.</p>
</li>
</ol>
</div>
-<div class="paragraph">
-<p><a href="#top">top</a></p>
-</div>
</div>
</div>
<div class="sect1">
@@ -590,9 +553,6 @@ The suggested refactoring changes display in the preview panel.</p>
<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>
</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