Skip to content

Commit ce40c21

Browse files
committed
fix natives module name
1 parent 1db1dc7 commit ce40c21

File tree

13 files changed

+37
-37
lines changed

13 files changed

+37
-37
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
id 'signing'
55
}
66
group rootProject.group
7-
archivesBaseName = rootProject.archivesBaseName + "-native"
7+
archivesBaseName = rootProject.archivesBaseName + "-natives"
88
version rootProject.version
99

1010
repositories {
@@ -32,7 +32,7 @@ publishing {
3232
artifactId = archivesBaseName
3333
from components.java
3434
pom {
35-
name = 'FelNullJavaLibrary-Native'
35+
name = 'FelNullJavaLibrary-Natives'
3636
description = 'Java integrated library(native onry) used by FelNull'
3737
url = 'https://github.com/TeamFelnull/'
3838
licenses {

native/src/main/java/dev/felnull/fnjln/FNJLNBuildIn.java renamed to natives/src/main/java/dev/felnull/fnjln/FNJLNBuildIn.java

File renamed without changes.

native/src/main/java/dev/felnull/fnjln/FNNativeFileChooser.java renamed to natives/src/main/java/dev/felnull/fnjln/FNNativesFileChooser.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@
1212
*
1313
* @since 1.25
1414
*/
15-
public class FNNativeFileChooser {
15+
public class FNNativesFileChooser {
1616
private String title;
1717
private String defExt;
18-
private FNNativeFileChooser.Flag flag;
18+
private FNNativesFileChooser.Flag flag;
1919
private Path initialDirectory;
2020
private String initialName;
21-
private FNNativeFileChooser.Filter[] filters;
21+
private FNNativesFileChooser.Filter[] filters;
2222
private int initialFilterIndex;
2323

24-
public FNNativeFileChooser() {
24+
public FNNativesFileChooser() {
2525
}
2626

27-
public FNNativeFileChooser(String title) {
27+
public FNNativesFileChooser(String title) {
2828
this.title = title;
2929
}
3030

31-
public FNNativeFileChooser(String title, FNNativeFileChooser.Flag flags, FNNativeFileChooser.Filter... filters) {
31+
public FNNativesFileChooser(String title, FNNativesFileChooser.Flag flags, FNNativesFileChooser.Filter... filters) {
3232
this.title = title;
3333
this.flag = flags;
3434
this.filters = filters;
3535
}
3636

3737
public static boolean isSupport() {
3838
try {
39-
FelNullJavaLibraryNative.check();
39+
FelNullJavaLibraryNatives.check();
4040
} catch (RuntimeException ex) {
4141
return false;
4242
}
@@ -47,7 +47,7 @@ public void setInitialDirectory(Path initialDirectory) {
4747
this.initialDirectory = initialDirectory;
4848
}
4949

50-
public void setFilters(FNNativeFileChooser.Filter[] filters) {
50+
public void setFilters(FNNativesFileChooser.Filter[] filters) {
5151
this.filters = filters;
5252
}
5353

@@ -60,17 +60,17 @@ public File[] openWindow() {
6060
}
6161

6262
public File[] openWindow(long hwndId) {
63-
FelNullJavaLibraryNative.check();
63+
FelNullJavaLibraryNatives.check();
6464
if (OSs.isWindows() && OSs.isX64())
6565
return WindowsOpenFileName.open(this, hwndId);
6666
return null;
6767
}
6868

69-
public FNNativeFileChooser.Filter[] getFilters() {
69+
public FNNativesFileChooser.Filter[] getFilters() {
7070
return filters;
7171
}
7272

73-
public FNNativeFileChooser.Flag getFlag() {
73+
public FNNativesFileChooser.Flag getFlag() {
7474
return flag;
7575
}
7676

@@ -111,7 +111,7 @@ public static class Flag {
111111
* @param allow 許可
112112
* @return this
113113
*/
114-
public FNNativeFileChooser.Flag allowMultiSelect(boolean allow) {
114+
public FNNativesFileChooser.Flag allowMultiSelect(boolean allow) {
115115
this.multiSelect = allow;
116116
return this;
117117
}
@@ -122,7 +122,7 @@ public FNNativeFileChooser.Flag allowMultiSelect(boolean allow) {
122122
* @param explorer 表示させない
123123
* @return this
124124
*/
125-
public FNNativeFileChooser.Flag explorer(boolean explorer) {
125+
public FNNativesFileChooser.Flag explorer(boolean explorer) {
126126
this.explorer = explorer;
127127
return this;
128128
}
@@ -133,7 +133,7 @@ public FNNativeFileChooser.Flag explorer(boolean explorer) {
133133
* @param creatEPrompt 表示するかどうか
134134
* @return this
135135
*/
136-
public FNNativeFileChooser.Flag creatEPrompt(boolean creatEPrompt) {
136+
public FNNativesFileChooser.Flag creatEPrompt(boolean creatEPrompt) {
137137
this.creatEPrompt = creatEPrompt;
138138
return this;
139139
}
@@ -144,7 +144,7 @@ public FNNativeFileChooser.Flag creatEPrompt(boolean creatEPrompt) {
144144
* @param fileMustExist 選択できないかどうか
145145
* @return this
146146
*/
147-
public FNNativeFileChooser.Flag fileMustExist(boolean fileMustExist) {
147+
public FNNativesFileChooser.Flag fileMustExist(boolean fileMustExist) {
148148
this.fileMustExist = fileMustExist;
149149
return this;
150150
}
@@ -155,7 +155,7 @@ public FNNativeFileChooser.Flag fileMustExist(boolean fileMustExist) {
155155
* @param hideReadOnly 隠すかどうか
156156
* @return this
157157
*/
158-
public FNNativeFileChooser.Flag hideReadOnly(boolean hideReadOnly) {
158+
public FNNativesFileChooser.Flag hideReadOnly(boolean hideReadOnly) {
159159
this.hideReadOnly = hideReadOnly;
160160
return this;
161161
}
@@ -166,7 +166,7 @@ public FNNativeFileChooser.Flag hideReadOnly(boolean hideReadOnly) {
166166
* @param nodeReferenceLinks どうか
167167
* @return this
168168
*/
169-
public FNNativeFileChooser.Flag nodeReferenceLinks(boolean nodeReferenceLinks) {
169+
public FNNativesFileChooser.Flag nodeReferenceLinks(boolean nodeReferenceLinks) {
170170
this.nodeReferenceLinks = nodeReferenceLinks;
171171
return this;
172172
}
@@ -177,7 +177,7 @@ public FNNativeFileChooser.Flag nodeReferenceLinks(boolean nodeReferenceLinks) {
177177
* @param readOnly 読み取り専用かどうか
178178
* @return this
179179
*/
180-
public FNNativeFileChooser.Flag readOnly(boolean readOnly) {
180+
public FNNativesFileChooser.Flag readOnly(boolean readOnly) {
181181
this.readOnly = readOnly;
182182
return this;
183183
}

native/src/main/java/dev/felnull/fnjln/FNNativeFont.java renamed to natives/src/main/java/dev/felnull/fnjln/FNNativesFont.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
* @author MORIMORI0317
1010
* @since 1.32
1111
*/
12-
public class FNNativeFont {
12+
public class FNNativesFont {
1313
public static boolean isSupport() {
1414
try {
15-
FelNullJavaLibraryNative.check();
15+
FelNullJavaLibraryNatives.check();
1616
} catch (RuntimeException ex) {
1717
return false;
1818
}
@@ -25,7 +25,7 @@ public static boolean isSupport() {
2525
* @return フォント名
2626
*/
2727
public static String getSystemFontName() {
28-
FelNullJavaLibraryNative.check();
28+
FelNullJavaLibraryNatives.check();
2929
return WindowsSystemFont.IconTitleLogFont.getFaceName();
3030
}
3131
}

native/src/main/java/dev/felnull/fnjln/FNNativeSpecialFolder.java renamed to natives/src/main/java/dev/felnull/fnjln/FNNativesSpecialFolder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
* @author MORIMORI0317
1212
* @since 1.32
1313
*/
14-
public class FNNativeSpecialFolder {
14+
public class FNNativesSpecialFolder {
1515
public static boolean isSupport() {
1616
try {
17-
FelNullJavaLibraryNative.check();
17+
FelNullJavaLibraryNatives.check();
1818
} catch (RuntimeException ex) {
1919
return false;
2020
}

native/src/main/java/dev/felnull/fnjln/FelNullJavaLibraryNative.java renamed to natives/src/main/java/dev/felnull/fnjln/FelNullJavaLibraryNatives.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @author MORIMORI0317
1818
* @since 1.32
1919
*/
20-
public class FelNullJavaLibraryNative {
20+
public class FelNullJavaLibraryNatives {
2121
private static boolean init;
2222
private static boolean loaded;
2323

@@ -64,7 +64,7 @@ public synchronized static void init(String libraryLocation, Path libraryPath) {
6464
return;
6565
}
6666

67-
InputStream stream = FNDataUtil.resourceExtractor(FelNullJavaLibraryNative.class, libraryLocation + libName);
67+
InputStream stream = FNDataUtil.resourceExtractor(FelNullJavaLibraryNatives.class, libraryLocation + libName);
6868
if (stream != null) {
6969
stream = new BufferedInputStream(stream);
7070
try {

native/src/main/java/dev/felnull/fnjln/jni/windows/WindowsLibrary.java renamed to natives/src/main/java/dev/felnull/fnjln/jni/windows/WindowsLibrary.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package dev.felnull.fnjln.jni.windows;
22

3-
import dev.felnull.fnjln.FelNullJavaLibraryNative;
3+
import dev.felnull.fnjln.FelNullJavaLibraryNatives;
44

55
import java.nio.file.Path;
66
import java.nio.file.Paths;
@@ -20,7 +20,7 @@ public class WindowsLibrary {
2020
* @return パス
2121
*/
2222
public static Path getSpecialFolderPath(int num) {
23-
FelNullJavaLibraryNative.check();
23+
FelNullJavaLibraryNatives.check();
2424
return Paths.get(WindowsNative.getSpecialFolderPath(num));
2525
}
2626

@@ -37,7 +37,7 @@ public static Path getSpecialFolderPath(int num) {
3737
* @return フォント名
3838
*/
3939
public static String getSystemFontFaceName(int num) {
40-
FelNullJavaLibraryNative.check();
40+
FelNullJavaLibraryNatives.check();
4141
return WindowsNative.getSystemFontFaceName(num);
4242
}
4343

@@ -55,7 +55,7 @@ public static String getSystemFontFaceName(int num) {
5555
* @return ファイルパス
5656
*/
5757
public static byte[] getOpenFileName(long hwndId, String title, String initDir, String initName, String defExt, String filter, int filterIndex, int flags) {
58-
FelNullJavaLibraryNative.check();
58+
FelNullJavaLibraryNatives.check();
5959
return WindowsNative.getOpenFileName(hwndId, title, initDir, initName, defExt, filter, filterIndex, flags);
6060
}
6161
}

native/src/main/java/dev/felnull/fnjln/jni/windows/WindowsNative.java renamed to natives/src/main/java/dev/felnull/fnjln/jni/windows/WindowsNative.java

File renamed without changes.

native/src/main/java/dev/felnull/fnjln/jni/windows/WindowsOpenFileName.java renamed to natives/src/main/java/dev/felnull/fnjln/jni/windows/WindowsOpenFileName.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package dev.felnull.fnjln.jni.windows;
22

3-
import dev.felnull.fnjln.FNNativeFileChooser;
3+
import dev.felnull.fnjln.FNNativesFileChooser;
44

55
import java.io.File;
66
import java.nio.file.Path;
@@ -13,7 +13,7 @@
1313
* @since 1.32
1414
*/
1515
public class WindowsOpenFileName {
16-
public static File[] open(FNNativeFileChooser fc, long hwnd) {
16+
public static File[] open(FNNativesFileChooser fc, long hwnd) {
1717
String title = fc.getTitle() == null ? "" : fc.getTitle();
1818
String initDir = fc.getInitialDirectory() == null ? "" : fc.getInitialDirectory().toAbsolutePath().toString();
1919
String initName = fc.getInitialName() == null ? "" : fc.getInitialName();
@@ -44,16 +44,16 @@ private static String getFlgStr(int flg) {
4444
return "\0";
4545
}
4646

47-
private static String createFilterString(FNNativeFileChooser.Filter[] filters) {
47+
private static String createFilterString(FNNativesFileChooser.Filter[] filters) {
4848
if (filters == null) return "";
4949
StringBuilder sb = new StringBuilder();
50-
for (FNNativeFileChooser.Filter filter : filters) {
50+
for (FNNativesFileChooser.Filter filter : filters) {
5151
sb.append(filter.toWindowsFilterText());
5252
}
5353
return sb.toString();
5454
}
5555

56-
private static int createFlagNum(FNNativeFileChooser.Flag flags) {
56+
private static int createFlagNum(FNNativesFileChooser.Flag flags) {
5757
if (flags == null) return 0;
5858
int num = 0;
5959
if (flags.isCreatEPrompt())

native/src/main/java/dev/felnull/fnjln/jni/windows/WindowsSpecialFolder.java renamed to natives/src/main/java/dev/felnull/fnjln/jni/windows/WindowsSpecialFolder.java

File renamed without changes.

0 commit comments

Comments
 (0)