Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<folder name="Templates">
<folder name="Grammar">
<!--less priority than XML-->
<attr name="position" intvalue="1800"/>
<attr name="position" intvalue="1840"/>
</folder>
</folder>
</filesystem>
5 changes: 1 addition & 4 deletions ide/languages.toml/nbproject/project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
javac.source=1.8
javac.target=1.8


javac.release=17
8 changes: 8 additions & 0 deletions ide/languages.toml/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
<code-name-base>org.netbeans.modules.languages.toml</code-name-base>
<module-dependencies>
<dependency>
<code-name-base>org.netbeans.api.templates</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.40</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.core.multiview</code-name-base>
<build-prerequisite/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ OpenIDE-Module-Short-Description=Support for editing TOML files.
OpenIDE-Module-Long-Description=Support for editing TOML files.

Editors/text/x-toml=TOML
Templates/Other/TomlFileTemplate.toml=TOML File

boolean=Boolean
comment=Comment
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!--

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.

-->

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<BODY>
Creates an empty TOML file.
</BODY></HTML>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# TOML document

title = "Hello World"
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* 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.
*/

@TemplateRegistration(
folder = "Other",
content = "TomlFileTemplate.toml",
displayName = "#Templates/Other/TomlFileTemplate.toml",
targetName = "EmptyTOML",
position = 840,
requireProject = false,
category = "simple-files",
description = "TomlFileDescription.html"
)
package org.netbeans.modules.languages.toml;

import org.netbeans.api.templates.TemplateRegistration;
8 changes: 8 additions & 0 deletions ide/languages.yaml/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
<data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
<code-name-base>org.netbeans.modules.languages.yaml</code-name-base>
<module-dependencies>
<dependency>
<code-name-base>org.netbeans.api.templates</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.40</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.core.multiview</code-name-base>
<build-prerequisite/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,5 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<BODY>
Creates an empty YAML file. You can edit the file in the IDE's Source Editor.
To change this template, choose Tools | Template Manager
and open the template in the editor.
Creates an empty YAML file.
</BODY></HTML>
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,6 @@
</folder>
</folder>
</folder>
<folder name="Templates">
<folder name="Other">
<file name="EmptyYAML.yml" url="EmptyYAML.yml">
<attr name="position" intvalue="850"/>
<attr name="template" boolvalue="true"/>
<attr name="templateCategory" stringvalue="simple-files"/>
<attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.languages.yaml.Bundle"/>
<attr name="templateWizardURL" urlvalue="nbresloc:/org/netbeans/modules/languages/yaml/EmptyYAMLFileDescription.html"/>
<attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/languages/yaml/yaml_files_16.png"/>
</file>
</folder>
</folder>
<folder name="Loaders">
<folder name="text">
<folder name="x-yaml">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* 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.
*/

@TemplateRegistration(
folder = "Other",
content = "EmptyYAML.yml",
displayName = "#Templates/Other/EmptyYAML.yml",
targetName = "EmptyYAML",
position = 850,
requireProject = false,
category = "simple-files",
description = "EmptyYAMLFileDescription.html"
)
package org.netbeans.modules.languages.yaml;

import org.netbeans.api.templates.TemplateRegistration;
Loading