sdedic commented on code in PR #4377: URL: https://github.com/apache/netbeans/pull/4377#discussion_r921199590
########## java/java.lsp.server/nbcode/integration.rh.java/src/org/netbeans/modules/nbcode/integration/java/Bundle.properties: ########## @@ -0,0 +1,18 @@ +# 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. + +OpenIDE-Module-Name=RHJavaIntegration Review Comment: Make the module name more readable, pls. ########## java/java.lsp.server/nbcode/integration/src/org/netbeans/modules/nbcode/integration/layer.xml: ########## @@ -50,6 +50,10 @@ <attr name="action:org.netbeans.modules.cloud.oracle.actions.AddRepository" stringvalue="Tools"/> </file> </folder> + <folder name="AutoupdateType"> Review Comment: Unnecessary no op change (?) ########## java/java.lsp.server/nbcode/integration.rh.java/src/org/netbeans/modules/nbcode/integration/java/Bundle.properties: ########## @@ -0,0 +1,18 @@ +# 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. + +OpenIDE-Module-Name=RHJavaIntegration Review Comment: Consider making the mod name human-readable. ########## java/java.lsp.server/vscode/package.json: ########## @@ -706,39 +713,39 @@ "view/title": [ { "command": "java.workspace.newproject", - "when": "nbJavaLSReady && view == foundProjects", + "when": "nbJavaLSReady && view == foundProjects && config.netbeans.javaSupport.enabled", "group": "navigation" }, { - "command": "java.workspace.compile", - "when": "nbJavaLSReady && view == foundProjects" + "command": "nbls.workspace.compile", + "when": "nbJavaLSReady && view == foundProjects && config.netbeans.javaSupport.enabled" }, { - "command": "java.clean.workspace", - "when": "nbJavaLSReady && view == foundProjects" + "command": "nbls.workspace.clean", + "when": "nbJavaLSReady && view == foundProjects && config.netbeans.javaSupport.enabled" }, { "command": "testing.runAll", - "when": "nbJavaLSReady && view == foundProjects" + "when": "nbJavaLSReady && view == foundProjects && config.netbeans.javaSupport.enabled" }, { "command": "workbench.action.debug.run", - "when": "nbJavaLSReady && view == foundProjects" + "when": "nbJavaLSReady && view == foundProjects && config.netbeans.javaSupport.enabled" }, { "command": "workbench.action.debug.start", - "when": "nbJavaLSReady && view == foundProjects" + "when": "nbJavaLSReady && view == foundProjects && config.netbeans.javaSupport.enabled" }, { "command": "db.add.connection", - "when": "view == database.connections", - "group": "navigation@3" + "when": "view == database.connections", + "group": "navigation@3" } ], "view/item/context": [ { "command": "foundProjects.deleteEntry", - "when": "view == foundProjects && viewItem == node" + "when": "view == foundProjects && viewItem == node && config.netbeans.javaSupport.enabled" Review Comment: Q: is this necessary as the `foundProjects` view itself is only enabled when `config.netbeans.javaSupport.enabled == true` ? ########## java/java.lsp.server/nbcode/integration.rh.java/build.xml: ########## @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + + 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. + +--> +<project name="org.netbeans.modules.nbcode.integration.java" default="netbeans" basedir="."> Review Comment: Consider making the module id the same as subdirectory name. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- 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
