chore: clean up

This commit is contained in:
octopus_yan 2024-09-19 12:32:22 +08:00
parent 654b13e150
commit be7e17665f
3 changed files with 1 additions and 10 deletions

View File

@ -150,12 +150,6 @@ public class Context {
return LANGUAGE_RESOURCE_FACTORY.getResourceBundleProperty(); return LANGUAGE_RESOURCE_FACTORY.getResourceBundleProperty();
} }
/**
* 初始化 语言
*/
private static void initI18n() {
}
/** /**
* 有此类所在路径决定相对路径 * 有此类所在路径决定相对路径
* *
@ -183,7 +177,6 @@ public class Context {
private static void loadScene() { private static void loadScene() {
try { try {
FXMLLoader loader = FxmlUtil.load("root-view"); FXMLLoader loader = FxmlUtil.load("root-view");
loader.setControllerFactory(Context.getControlFactory());
//底层面板 //底层面板
Pane root = loader.load(); Pane root = loader.load();
Optional.ofNullable(scene).ifPresentOrElse( Optional.ofNullable(scene).ifPresentOrElse(

View File

@ -25,7 +25,7 @@ public class FxmlUtil {
FxmlUtil.class.getResource(prefix + name + suffix), FxmlUtil.class.getResource(prefix + name + suffix),
bundle, bundle,
new JavaFXBuilderFactory(), new JavaFXBuilderFactory(),
null, Context.getControlFactory(),
StandardCharsets.UTF_8 StandardCharsets.UTF_8
); );
} }

View File

@ -43,7 +43,6 @@ public class Registry {
RESTORE, RESTORE,
SAVE, SAVE,
UNLOAD, UNLOAD,
;
} }
public enum Root { public enum Root {
@ -75,6 +74,5 @@ public class Registry {
REG_LINK, REG_LINK,
REG_FULL_RESOURCE_DESCRIPTOR, REG_FULL_RESOURCE_DESCRIPTOR,
REG_EXPAND_SZ, REG_EXPAND_SZ,
;
} }
} }