You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2021/01/06 19:26:14 UTC

[netbeans] branch master updated: [NETBEANS-5210] Export code inspection settings

This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d935a1  [NETBEANS-5210] Export code inspection settings
     new d80a1dc  Merge pull request #2635 from KacerCZ/netbeans-5210-export-inspection-settings
0d935a1 is described below

commit 0d935a100d5f88783b0677948b66ac17ff750327
Author: Tomas Prochazka <ka...@razdva.cz>
AuthorDate: Sun Jan 3 12:14:25 2021 +0100

    [NETBEANS-5210] Export code inspection settings
    
    https://issues.apache.org/jira/browse/NETBEANS-5210
    
    Inspection settings (from Code > Inspect) can be exported from Tools > Options.
    Settings are registered under Miscellaneous > Code Inspections.
---
 ide/code.analysis/manifest.mf                      |  2 +-
 .../netbeans/modules/analysis/Bundle.properties    |  1 +
 .../netbeans/modules/analysis/resources/layer.xml  | 34 ++++++++++++++++++++++
 3 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/ide/code.analysis/manifest.mf b/ide/code.analysis/manifest.mf
index caf7368..4ede2d5 100644
--- a/ide/code.analysis/manifest.mf
+++ b/ide/code.analysis/manifest.mf
@@ -3,4 +3,4 @@ OpenIDE-Module: org.netbeans.modules.code.analysis/0
 OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/analysis/Bundle.properties
 OpenIDE-Module-Recommends: org.openide.windows.WindowManager
 OpenIDE-Module-Specification-Version: 1.37
-
+OpenIDE-Module-Layer: org/netbeans/modules/analysis/resources/layer.xml
diff --git a/ide/code.analysis/src/org/netbeans/modules/analysis/Bundle.properties b/ide/code.analysis/src/org/netbeans/modules/analysis/Bundle.properties
index b7d3bf7..f55fbd7 100644
--- a/ide/code.analysis/src/org/netbeans/modules/analysis/Bundle.properties
+++ b/ide/code.analysis/src/org/netbeans/modules/analysis/Bundle.properties
@@ -24,3 +24,4 @@ RunAnalysisPanel.singleInspectionRadio.text=&Single Inspection:
 RunAnalysisPanel.browse.text=&Browse...
 DN_Default=Default
 RequiredPluginsPanel.warning.text=Additional plugins required for the selected configuration.
+Options.Export.Inspections.displayName=Code Inspections
diff --git a/ide/code.analysis/src/org/netbeans/modules/analysis/resources/layer.xml b/ide/code.analysis/src/org/netbeans/modules/analysis/resources/layer.xml
new file mode 100644
index 0000000..03e00a6
--- /dev/null
+++ b/ide/code.analysis/src/org/netbeans/modules/analysis/resources/layer.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
+<filesystem>
+
+    <folder name="OptionsExport">
+        <folder name="Advanced">
+            <file name="Inspections">
+                <attr name="include" stringvalue="config/Preferences/org/netbeans/modules/code/analysis/.*"/>
+                <attr name="displayName" bundlevalue="org.netbeans.modules.analysis.Bundle#Options.Export.Inspections.displayName"/>
+            </file>
+        </folder>
+    </folder>
+
+</filesystem>


---------------------------------------------------------------------
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