本文整理了Java中org.eclipse.swt.widgets.FileDialog.isGlobPattern()
方法的一些代码示例,展示了FileDialog.isGlobPattern()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileDialog.isGlobPattern()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.FileDialog
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!