jface.preference.FileFieldEditor can't specify a new file
Posted
by G33k
on Stack Overflow
See other posts from Stack Overflow
or by G33k
Published on 2010-03-29T07:29:48Z
Indexed on
2010/03/29
7:33 UTC
Read the original article
Hit count: 493
I'm setting up a series of preferences in my Eclipse (3.5.2) application and I'm having a problem with the FileFieldEditor. I want to allow the user to specify a log file to print output to. Often, this will be a new file. But when I use the file select dialog with FileFieldEditor, it complains that the file doesn't exists ("Value must be an existing file"). Is there a way, without extending the FileFieldEditor class, to suppress this error and have Java create that file if it doesn't exist? Thanks!
© Stack Overflow or respective owner