You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2021/08/01 19:18:07 UTC

[plc4x] 02/13: - Added some templates to automatically generate headers in newly created resources.

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

cdutz pushed a commit to branch feature/profinet-chris
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 2f08c8e4c2c594bf51f713f77a9e197e0347e4b6
Author: cdutz <ch...@c-ware.de>
AuthorDate: Sun Aug 1 19:47:36 2021 +0200

    - Added some templates to automatically generate headers in newly created resources.
---
 .idea/fileTemplates/Properties File.properties        |  1 +
 .idea/fileTemplates/XML File.xml                      |  3 +++
 .../includes/File Header Properties.properties        | 19 +++++++++++++++++++
 .idea/fileTemplates/includes/File Header XML.xml      | 18 ++++++++++++++++++
 .idea/fileTemplates/includes/File Header.java         | 18 ++++++++++++++++++
 .idea/fileTemplates/internal/AnnotationType.java      |  5 +++++
 .idea/fileTemplates/internal/Class.java               |  5 +++++
 .idea/fileTemplates/internal/Enum.java                |  5 +++++
 .idea/fileTemplates/internal/Interface.java           |  5 +++++
 .idea/fileTemplates/internal/Record.java              |  5 +++++
 10 files changed, 84 insertions(+)

diff --git a/.idea/fileTemplates/Properties File.properties b/.idea/fileTemplates/Properties File.properties
new file mode 100644
index 0000000..31f081a
--- /dev/null
+++ b/.idea/fileTemplates/Properties File.properties	
@@ -0,0 +1 @@
+#parse("File Header Properties.properties")
diff --git a/.idea/fileTemplates/XML File.xml b/.idea/fileTemplates/XML File.xml
new file mode 100644
index 0000000..ace6da7
--- /dev/null
+++ b/.idea/fileTemplates/XML File.xml	
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+#parse("File Header XML.xml")
+<root/>
\ No newline at end of file
diff --git a/.idea/fileTemplates/includes/File Header Properties.properties b/.idea/fileTemplates/includes/File Header Properties.properties
new file mode 100644
index 0000000..919f8c2
--- /dev/null
+++ b/.idea/fileTemplates/includes/File Header Properties.properties	
@@ -0,0 +1,19 @@
+#
+# 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.
+#
+name=value
\ No newline at end of file
diff --git a/.idea/fileTemplates/includes/File Header XML.xml b/.idea/fileTemplates/includes/File Header XML.xml
new file mode 100644
index 0000000..8699aa2
--- /dev/null
+++ b/.idea/fileTemplates/includes/File Header XML.xml	
@@ -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.
+  -->
\ No newline at end of file
diff --git a/.idea/fileTemplates/includes/File Header.java b/.idea/fileTemplates/includes/File Header.java
new file mode 100644
index 0000000..7220975
--- /dev/null
+++ b/.idea/fileTemplates/includes/File Header.java	
@@ -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.
+ */
\ No newline at end of file
diff --git a/.idea/fileTemplates/internal/AnnotationType.java b/.idea/fileTemplates/internal/AnnotationType.java
new file mode 100644
index 0000000..18a5b3f
--- /dev/null
+++ b/.idea/fileTemplates/internal/AnnotationType.java
@@ -0,0 +1,5 @@
+#parse("File Header.java")
+#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
+
+public @interface ${NAME} {
+}
diff --git a/.idea/fileTemplates/internal/Class.java b/.idea/fileTemplates/internal/Class.java
new file mode 100644
index 0000000..80d7ddd
--- /dev/null
+++ b/.idea/fileTemplates/internal/Class.java
@@ -0,0 +1,5 @@
+#parse("File Header.java")
+#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
+
+public class ${NAME} {
+}
diff --git a/.idea/fileTemplates/internal/Enum.java b/.idea/fileTemplates/internal/Enum.java
new file mode 100644
index 0000000..c89f5d5
--- /dev/null
+++ b/.idea/fileTemplates/internal/Enum.java
@@ -0,0 +1,5 @@
+#parse("File Header.java")
+#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
+
+public enum ${NAME} {
+}
diff --git a/.idea/fileTemplates/internal/Interface.java b/.idea/fileTemplates/internal/Interface.java
new file mode 100644
index 0000000..777addf
--- /dev/null
+++ b/.idea/fileTemplates/internal/Interface.java
@@ -0,0 +1,5 @@
+#parse("File Header.java")
+#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
+
+public interface ${NAME} {
+}
diff --git a/.idea/fileTemplates/internal/Record.java b/.idea/fileTemplates/internal/Record.java
new file mode 100644
index 0000000..a4107d2
--- /dev/null
+++ b/.idea/fileTemplates/internal/Record.java
@@ -0,0 +1,5 @@
+#parse("File Header.java")
+#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
+
+public record ${NAME}() {
+}