System File Chooser: change @since 3.6 to @since 3.7

This commit is contained in:
Karl Tauber
2025-10-27 18:06:41 +01:00
parent 1eee35035d
commit 299250a710
11 changed files with 22 additions and 22 deletions

View File

@@ -235,7 +235,7 @@ public interface FlatSystemProperties
* <strong>Allowed Values</strong> {@code false} and {@code true}<br>
* <strong>Default</strong> {@code true}
*
* @since 3.6
* @since 3.7
*/
String USE_SYSTEM_FILE_CHOOSER = "flatlaf.useSystemFileChooser";

View File

@@ -142,7 +142,7 @@ public class FlatNativeLinuxLibrary
* This works because Java uses {@code dlopen(RTLD_LAZY)} to load JNI libraries,
* which only resolves symbols as the code that references them is executed.
*
* @since 3.6
* @since 3.7
*/
public static boolean isGtk3Available() {
if( isGtk3Available == null )
@@ -155,7 +155,7 @@ public class FlatNativeLinuxLibrary
/**
* https://docs.gtk.org/gtk3/iface.FileChooser.html#properties
*
* @since 3.6
* @since 3.7
*/
public static final int
FC_select_folder = 1 << 0,
@@ -197,14 +197,14 @@ public class FlatNativeLinuxLibrary
* @return file path(s) that the user selected; an empty array if canceled;
* or {@code null} on failures (no dialog shown)
*
* @since 3.6
* @since 3.7
*/
public native static String[] showFileChooser( Window owner, boolean open,
String title, String okButtonLabel, String currentName, String currentFolder,
int optionsSet, int optionsClear, FileChooserCallback callback,
int fileTypeIndex, String... fileTypes );
/** @since 3.6 */
/** @since 3.7 */
public interface FileChooserCallback {
boolean approve( String[] files, long hwndFileDialog );
}
@@ -229,7 +229,7 @@ public class FlatNativeLinuxLibrary
* Use '__' for '_' character (e.g. "Choose__and__Quit").
* @return index of pressed button; or -1 for ESC key
*
* @since 3.6
* @since 3.7
*/
public native static int showMessageDialog( long hwndParent, int messageType,
String primaryText, String secondaryText, int defaultButton, String... buttons );

View File

@@ -71,7 +71,7 @@ public class FlatNativeMacLibrary
/** @since 3.4 */ public native static boolean toggleWindowFullScreen( Window window );
/** @since 3.6 */
/** @since 3.7 */
public static final int
// NSOpenPanel (extends NSSavePanel)
FC_canChooseFiles = 1 << 0, // default
@@ -120,7 +120,7 @@ public class FlatNativeMacLibrary
* @return file path(s) that the user selected; an empty array if canceled;
* or {@code null} on failures (no dialog shown)
*
* @since 3.6
* @since 3.7
*/
public native static String[] showFileChooser( Window owner, int dark, boolean open,
String title, String prompt, String message, String filterFieldLabel,
@@ -128,7 +128,7 @@ public class FlatNativeMacLibrary
int optionsSet, int optionsClear, FileChooserCallback callback,
int fileTypeIndex, String... fileTypes );
/** @since 3.6 */
/** @since 3.7 */
public interface FileChooserCallback {
boolean approve( String[] files, long hwndFileDialog );
}
@@ -149,7 +149,7 @@ public class FlatNativeMacLibrary
* @param buttons texts of the buttons; if no buttons given the a default "OK" button is shown
* @return index of pressed button
*
* @since 3.6
* @since 3.7
*/
public native static int showMessageDialog( long hwndParent, int alertStyle,
String messageText, String informativeText, int defaultButton, String... buttons );

View File

@@ -165,7 +165,7 @@ public class FlatNativeWindowsLibrary
* FILEOPENDIALOGOPTIONS
* see https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/ne-shobjidl_core-_fileopendialogoptions
*
* @since 3.6
* @since 3.7
*/
public static final int
FOS_OVERWRITEPROMPT = 0x2, // default for Save
@@ -229,7 +229,7 @@ public class FlatNativeWindowsLibrary
* @return file path(s) that the user selected; an empty array if canceled;
* or {@code null} on failures (no dialog shown)
*
* @since 3.6
* @since 3.7
*/
public native static String[] showFileChooser( Window owner, boolean open,
String title, String okButtonLabel, String fileNameLabel, String fileName,
@@ -237,7 +237,7 @@ public class FlatNativeWindowsLibrary
int optionsSet, int optionsClear, FileChooserCallback callback,
int fileTypeIndex, String... fileTypes );
/** @since 3.6 */
/** @since 3.7 */
public interface FileChooserCallback {
boolean approve( String[] files, long hwndFileDialog );
}
@@ -260,7 +260,7 @@ public class FlatNativeWindowsLibrary
* Use '&amp;&amp;' for '&amp;' character (e.g. "Choose &amp;&amp; Quit").
* @return index of pressed button; or -1 for ESC key
*
* @since 3.6
* @since 3.7
*/
public native static int showMessageDialog( long hwndParent, int messageType,
String title, String text, int defaultButton, String... buttons );
@@ -277,7 +277,7 @@ public class FlatNativeWindowsLibrary
* @param type see <a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox#parameters">MessageBox parameter uType</a>
* @return see <a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messagebox#return-value">MessageBox Return value</a>
*
* @since 3.6
* @since 3.7
*/
public native static int showMessageBox( long hwndParent, String text, String caption, int type );
}

View File

@@ -102,7 +102,7 @@ import com.formdev.flatlaf.ui.FlatNativeWindowsLibrary;
* </ul>
*
* @author Karl Tauber
* @since 3.6
* @since 3.7
*/
public class SystemFileChooser
{