org.eclipse.swt.widgets.FileDialog.isGlobPattern()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(129)

本文整理了Java中org.eclipse.swt.widgets.FileDialog.isGlobPattern()方法的一些代码示例,展示了FileDialog.isGlobPattern()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileDialog.isGlobPattern()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.FileDialog
类名称:FileDialog
方法名:isGlobPattern

FileDialog.isGlobPattern介绍

[英]Check whether the file extension is a glob pattern. For example, . is a glob pattern which corresponds to all files .jp corresponds to all the files with extension starting with jp like jpg,jpeg etc .jp? corresponds to 3 letter extension starting with jp with any 3rd letter .[pq]ng this corresponds to .png and .qng
[中]检查文件扩展名是否为全局模式。例如,**是对应于所有文件
的全局模式。jp
对应于扩展名以jp开头的所有文件,如jpg、jpeg等。jp?对应于以jp开头的3个字母的扩展名以及任何第3个字母
。[pq]ng这对应于
。巴布亚新几内亚和*。qng

代码示例

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

String extension = extFilter.substring (separatorIndex);
if (!isGlobPattern (extension)) { //if the extension is of type glob pattern we should not add the extension
  filenameWithExt.append (extension);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

String extension = extFilter.substring (separatorIndex);
if (!isGlobPattern (extension)) { //if the extension is of type glob pattern we should not add the extension
  filenameWithExt.append (extension);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

String extension = extFilter.substring (separatorIndex);
if (!isGlobPattern (extension)) { //if the extension is of type glob pattern we should not add the extension
  filenameWithExt.append (extension);

相关文章