In my application I need to select files with out file extension using file dialog. Is there a way to achieve this? Please help me to find a solution for this. My current code with out any filter is given below:
@Override
public void handleEvent(Event event) {
FileDialog dialog = new FileDialog(shell, SWT.NONE);
String filePath = dialog.open();
if (filePath != null && !filePath.equals("")) {
//Do my Operations
}
}
FileNameExtensionFilter
class won't allow you to filter with empty extensions. So, create your ownFileFilter
.Then set this one as your
FileFilter
.