From 294ec217ea785228db0f77ac5e805a3bbe8d1ce0 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Wed, 16 Oct 2024 13:06:17 +0200 Subject: [PATCH] Correct package structure inside GLFW subsystem --- .../engine/windowing/glfw/GlfwSubsystem.java | 4 +-- .../glfw/implementable/package-info.java | 4 +-- .../GlfwInternalClass.java | 2 +- .../GlfwManagementClass.java | 2 +- .../GlfwMonitor.java | 2 +- .../GlfwWindow.java | 2 +- .../glfw/implementation/package-info.java | 25 +++++++++++++++++++ 7 files changed, 33 insertions(+), 8 deletions(-) rename windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/{implementable => implementation}/GlfwInternalClass.java (97%) rename windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/{implementable => implementation}/GlfwManagementClass.java (98%) rename windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/{implementable => implementation}/GlfwMonitor.java (98%) rename windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/{implementable => implementation}/GlfwWindow.java (99%) create mode 100644 windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/package-info.java diff --git a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/GlfwSubsystem.java b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/GlfwSubsystem.java index 572dc134..0f872688 100644 --- a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/GlfwSubsystem.java +++ b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/GlfwSubsystem.java @@ -31,8 +31,8 @@ import de.staropensource.engine.windowing.implementable.api.ApiInternalClass; import de.staropensource.engine.windowing.implementable.api.ApiManagementClass; import de.staropensource.engine.windowing.event.WindowingErrorEvent; import de.staropensource.engine.windowing.exception.NotOnMainThreadException; -import de.staropensource.engine.windowing.glfw.implementable.GlfwInternalClass; -import de.staropensource.engine.windowing.glfw.implementable.GlfwManagementClass; +import de.staropensource.engine.windowing.glfw.implementation.GlfwInternalClass; +import de.staropensource.engine.windowing.glfw.implementation.GlfwManagementClass; import lombok.Getter; import org.jetbrains.annotations.NotNull; import org.lwjgl.glfw.GLFWErrorCallback; diff --git a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/package-info.java b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/package-info.java index fd03064f..83c5ac78 100644 --- a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/package-info.java +++ b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/package-info.java @@ -19,7 +19,7 @@ /** * Interfaces and abstract classes which can be used for implementing classes. - *

- * These are not to be confused with data types. See {@link de.staropensource.engine.windowing.glfw.type}. + * + * @since v1-alpha6 */ package de.staropensource.engine.windowing.glfw.implementable; diff --git a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwInternalClass.java b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwInternalClass.java similarity index 97% rename from windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwInternalClass.java rename to windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwInternalClass.java index 5e8443ef..6dc10867 100644 --- a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwInternalClass.java +++ b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwInternalClass.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.windowing.glfw.implementable; +package de.staropensource.engine.windowing.glfw.implementation; import de.staropensource.engine.base.logging.LoggerInstance; import de.staropensource.engine.windowing.implementable.Monitor; diff --git a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwManagementClass.java b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwManagementClass.java similarity index 98% rename from windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwManagementClass.java rename to windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwManagementClass.java index ab581ef3..c5ee450d 100644 --- a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwManagementClass.java +++ b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwManagementClass.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.windowing.glfw.implementable; +package de.staropensource.engine.windowing.glfw.implementation; import de.staropensource.engine.base.logging.LoggerInstance; import de.staropensource.engine.base.utility.Miscellaneous; diff --git a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwMonitor.java b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwMonitor.java similarity index 98% rename from windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwMonitor.java rename to windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwMonitor.java index 12fd6e15..81f54802 100644 --- a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwMonitor.java +++ b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwMonitor.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.windowing.glfw.implementable; +package de.staropensource.engine.windowing.glfw.implementation; import de.staropensource.engine.base.type.vector.Vec2i; import de.staropensource.engine.windowing.implementable.Monitor; diff --git a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwWindow.java b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwWindow.java similarity index 99% rename from windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwWindow.java rename to windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwWindow.java index e4d1bbd4..bcd61e2e 100644 --- a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementable/GlfwWindow.java +++ b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/GlfwWindow.java @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -package de.staropensource.engine.windowing.glfw.implementable; +package de.staropensource.engine.windowing.glfw.implementation; import de.staropensource.engine.base.logging.Logger; import de.staropensource.engine.base.type.vector.Vec2i; diff --git a/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/package-info.java b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/package-info.java new file mode 100644 index 00000000..01ffac46 --- /dev/null +++ b/windowing/glfw/src/main/java/de/staropensource/engine/windowing/glfw/implementation/package-info.java @@ -0,0 +1,25 @@ +/* + * STAROPENSOURCE ENGINE SOURCE FILE + * Copyright (c) 2024 The StarOpenSource Engine Authors + * Licensed under the GNU Affero General Public License v3 + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +/** + * Implementations for various interfaces and abstract classes. + * + * @since v1-alpha6 + */ +package de.staropensource.engine.windowing.glfw.implementation;