Skip to content

Commit e067f22

Browse files
authored
Merge pull request #464 from Achal1607/final-java-notebook
Introduction of Java Notebooks and opening JShell support
2 parents 2f7b077 + 85e23c4 commit e067f22

File tree

74 files changed

+10038
-885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+10038
-885
lines changed

THIRD_PARTY_LICENSES.txt

Lines changed: 79 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ ide/modules/ext/junixsocket-native-common-2.5.1.jar Apache-2.0
329329
ide/modules/ext/launcher-common-24.0.0.jar UPL
330330
ide/modules/ext/lucene-core-3.6.2.jar Apache-2.0-lucene
331331
ide/modules/ext/nativeimage-24.0.0.jar UPL
332-
ide/modules/ext/org.eclipse.lsp4j-0.13.0.jar EPL-v20
333-
ide/modules/ext/org.eclipse.lsp4j.debug-0.13.0.jar EPL-v20
334-
ide/modules/ext/org.eclipse.lsp4j.generator-0.13.0.jar EPL-v20
335-
ide/modules/ext/org.eclipse.lsp4j.jsonrpc-0.13.0.jar EPL-v20
336-
ide/modules/ext/org.eclipse.lsp4j.jsonrpc.debug-0.13.0.jar EPL-v20
332+
ide/modules/ext/org.eclipse.lsp4j-0.16.0.jar EPL-v20
333+
ide/modules/ext/org.eclipse.lsp4j.debug-0.16.0.jar EPL-v20
334+
ide/modules/ext/org.eclipse.lsp4j.generator-0.16.0.jar EPL-v20
335+
ide/modules/ext/org.eclipse.lsp4j.jsonrpc-0.16.0.jar EPL-v20
336+
ide/modules/ext/org.eclipse.lsp4j.jsonrpc.debug-0.16.0.jar EPL-v20
337337
ide/modules/ext/org.eclipse.tm4e.core-0.14.1.jar EPL-v20
338338
ide/modules/ext/org.eclipse.xtend.lib-2.24.0.jar EPL-v20
339339
ide/modules/ext/org.eclipse.xtend.lib.macro-2.24.0.jar EPL-v20
@@ -481,11 +481,11 @@ java/modules/ext/maven/search-api-7.1.5.jar Apache-2.0
481481
java/modules/ext/maven/search-backend-smo-7.1.5.jar Apache-2.0
482482
java/modules/ext/nb-javac-jdk-25-31.1-api.jar GPL-2-CP
483483
java/modules/ext/nb-javac-jdk-25-31.1.jar GPL-2-CP
484-
java/modules/ext/org.eclipse.lsp4j-0.13.0.jar EPL-v20
485-
java/modules/ext/org.eclipse.lsp4j.debug-0.13.0.jar EPL-v20
486-
java/modules/ext/org.eclipse.lsp4j.generator-0.13.0.jar EPL-v20
487-
java/modules/ext/org.eclipse.lsp4j.jsonrpc-0.13.0.jar EPL-v20
488-
java/modules/ext/org.eclipse.lsp4j.jsonrpc.debug-0.13.0.jar EPL-v20
484+
java/modules/ext/org.eclipse.lsp4j-0.16.0.jar EPL-v20
485+
java/modules/ext/org.eclipse.lsp4j.debug-0.16.0.jar EPL-v20
486+
java/modules/ext/org.eclipse.lsp4j.generator-0.16.0.jar EPL-v20
487+
java/modules/ext/org.eclipse.lsp4j.jsonrpc-0.16.0.jar EPL-v20
488+
java/modules/ext/org.eclipse.lsp4j.jsonrpc.debug-0.16.0.jar EPL-v20
489489
java/modules/ext/org.eclipse.xtend.lib-2.24.0.jar EPL-v20
490490
java/modules/ext/org.eclipse.xtend.lib.macro-2.24.0.jar EPL-v20
491491
java/modules/ext/org.eclipse.xtext.xbase.lib-2.24.0.jar EPL-v20
@@ -9805,4 +9805,73 @@ Developer of the Original Software was Sun Microsystems, Inc. Portions
98059805
Copyright 1997-2006 Sun Microsystems, Inc.
98069806

98079807

9808+
------------------ END OF DEPENDENCY LICENSE --------------------
9809+
9810+
Dependency: ajv
9811+
===============
9812+
9813+
------------------ START OF DEPENDENCY LICENSE --------------------
9814+
The MIT License (MIT)
9815+
9816+
Copyright (c) 2015-2021 Evgeny Poberezkin
9817+
9818+
Permission is hereby granted, free of charge, to any person obtaining a copy
9819+
of this software and associated documentation files (the "Software"), to deal
9820+
in the Software without restriction, including without limitation the rights
9821+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9822+
copies of the Software, and to permit persons to whom the Software is
9823+
furnished to do so, subject to the following conditions:
9824+
9825+
The above copyright notice and this permission notice shall be included in all
9826+
copies or substantial portions of the Software.
9827+
9828+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9829+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9830+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
9831+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9832+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9833+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
9834+
SOFTWARE.
9835+
9836+
------------------ END OF DEPENDENCY LICENSE --------------------
9837+
9838+
Dependency: nbformat.v4.5.schema.json
9839+
====================
9840+
Accessible at: vscode/src/notebooks/nbformat.v4.5.d7.schema.json
9841+
Modified from source at: https://github.com/jupyter/nbformat/blob/main/nbformat/v4/nbformat.v4.5.schema.json
9842+
License: BSD 3-Clause License
9843+
9844+
------------------ START OF DEPENDENCY LICENSE --------------------
9845+
BSD 3-Clause License
9846+
9847+
- Copyright (c) 2001-2015, IPython Development Team
9848+
- Copyright (c) 2015-, Jupyter Development Team
9849+
9850+
All rights reserved.
9851+
9852+
Redistribution and use in source and binary forms, with or without
9853+
modification, are permitted provided that the following conditions are met:
9854+
9855+
1. Redistributions of source code must retain the above copyright notice, this
9856+
list of conditions and the following disclaimer.
9857+
9858+
2. Redistributions in binary form must reproduce the above copyright notice,
9859+
this list of conditions and the following disclaimer in the documentation
9860+
and/or other materials provided with the distribution.
9861+
9862+
3. Neither the name of the copyright holder nor the names of its
9863+
contributors may be used to endorse or promote products derived from
9864+
this software without specific prior written permission.
9865+
9866+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
9867+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
9868+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
9869+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
9870+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
9871+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
9872+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
9873+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
9874+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
9875+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9876+
98089877
------------------ END OF DEPENDENCY LICENSE --------------------

build.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
patches/l10n/adding-java.lsp.server-ja-and-zh_CN.diff
3838
patches/l10n/24.1.0-release-content-changes.diff
3939
patches/l10n/24.1.0-previous-issues-fix.diff
40+
patches/l10n/25.0.0-notebooks-l10n.diff
4041
</string>
4142
<filterchain>
4243
<tokenfilter delimoutput=" ">
@@ -79,6 +80,9 @@
7980
patches/dev-dependency-licenses.diff
8081
patches/nb-telemetry.diff
8182
patches/change-method-parameters-refactoring-qualified-names.diff
83+
patches/upgrade-lsp4j.diff
84+
patches/updated-show-input-params.diff
85+
patches/java-notebooks.diff
8286
</string>
8387
<filterchain>
8488
<tokenfilter delimoutput=" ">
@@ -287,8 +291,17 @@
287291
</exec>
288292

289293
<antcall target="setup-vsce" inheritAll="true" />
294+
<delete includeemptydirs="false">
295+
<fileset dir="${basedir}/vscode/node_modules" defaultexcludes="false">
296+
<include name="**/.*"/>
297+
</fileset>
298+
<dirset dir="${basedir}/vscode/node_modules" defaultexcludes="false">
299+
<include name="**/.git"/>
300+
<include name="**/.github"/>
301+
</dirset>
302+
</delete>
290303
<move todir="${basedir}/vscode/node_modules" includeemptydirs="false">
291-
<fileset dir="${basedir}/vscode/node_modules">
304+
<fileset dir="${basedir}/vscode/node_modules" casesensitive="false">
292305
<include name="**/LICENSE"/>
293306
<include name="**/NOTICE"/>
294307
</fileset>

nbcode/nbproject/project.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ auxiliary.org-netbeans-modules-apisupport-installer.os-windows=false
2828
auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml
2929
modules=\
3030
${project.org.netbeans.modules.nbcode.integration} :\
31-
${project.org.netbeans.modules.nbcode.java.lsp.server.telemetry}
31+
${project.org.netbeans.modules.nbcode.java.lsp.server.telemetry}:\
32+
${project.org.netbeans.modules.nbcode.java.notebooks}
3233
project.org.netbeans.modules.nbcode.integration=integration
3334
project.org.netbeans.modules.nbcode.java.lsp.server.telemetry=telemetry
35+
project.org.netbeans.modules.nbcode.java.notebooks=notebooks

nbcode/notebooks/build.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (c) 2024-2025, Oracle and/or its affiliates.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
https://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<project name="org.netbeans.modules.nbcode.java.notebook" default="netbeans" basedir=".">
18+
<description>Builds, tests, and runs the project org.netbeans.modules.nbcode.notebook.</description>
19+
<property file="nbproject/suite.properties"/>
20+
<property file="nbproject/project.properties"/>
21+
<property name="nbantext.jar" location="${suite.dir}/../netbeans/nbbuild/build/nbantext.jar" />
22+
<import file="nbproject/build-impl.xml"/>
23+
</project>

nbcode/notebooks/manifest.mf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Manifest-Version: 1.0
2+
AutoUpdate-Show-In-Client: false
3+
OpenIDE-Module: org.netbeans.modules.nbcode.java.notebook
4+
OpenIDE-Module-Implementation-Version: 1
5+
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/nbcode/java/notebook/Bundle.properties
6+
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (c) 2024-2025, Oracle and/or its affiliates.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
https://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<project name="org.netbeans.modules.nbcode.java.notebook-impl" basedir="..">
18+
<fail message="Please build using Ant 1.7.1 or higher.">
19+
<condition>
20+
<not>
21+
<antversion atleast="1.7.1"/>
22+
</not>
23+
</condition>
24+
</fail>
25+
<property file="nbproject/private/suite-private.properties"/>
26+
<property file="nbproject/suite.properties"/>
27+
<fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail>
28+
<property file="${suite.dir}/nbproject/private/platform-private.properties"/>
29+
<property file="${suite.dir}/nbproject/platform.properties"/>
30+
<macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
31+
<attribute name="name"/>
32+
<attribute name="value"/>
33+
<sequential>
34+
<property name="@{name}" value="${@{value}}"/>
35+
</sequential>
36+
</macrodef>
37+
<macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
38+
<attribute name="property"/>
39+
<attribute name="value"/>
40+
<sequential>
41+
<property name="@{property}" value="@{value}"/>
42+
</sequential>
43+
</macrodef>
44+
<property file="${user.properties.file}"/>
45+
<nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
46+
<nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
47+
<nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
48+
<fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
49+
<condition>
50+
<not>
51+
<contains string="${cluster.path.evaluated}" substring="platform"/>
52+
</not>
53+
</condition>
54+
</fail>
55+
<import file="${harness.dir}/build.xml"/>
56+
</project>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# Copyright (c) 2024-2025, Oracle and/or its affiliates.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
build.xml.data.CRC32=bcbc94fb
17+
build.xml.script.CRC32=f4d83a2b
18+
build.xml.stylesheet.CRC32=15ca8a54@2.97
19+
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
20+
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
21+
nbproject/build-impl.xml.data.CRC32=decee057
22+
nbproject/build-impl.xml.script.CRC32=547e2c6a
23+
nbproject/build-impl.xml.stylesheet.CRC32=49aa68b0@2.97
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# Copyright (c) 2024-2025, Oracle and/or its affiliates.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# https://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
javac.source=1.8
17+
requires.nb.javac=true
18+
javac.compilerargs=-Xlint -Xlint:-serial
19+
test.unit.lib.cp=
20+
test.unit.run.cp.extra=
21+
license.file=../../LICENSE.txt
22+
nbm.homepage=https://github.com/oracle/javavscode/
23+
nbplatform.default.netbeans.dest.dir=${suite.dir}/../netbeans/nbbuild/netbeans
24+
nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
25+
spec.version.base=1.0

0 commit comments

Comments
 (0)