Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » FileFieldEditor Help
FileFieldEditor Help [message #665674] Fri, 15 April 2011 12:46
frank b is currently offline frank b
Messages: 39
Registered: July 2009
Member
Hello,

I'm using a FileFieldEditor form jface plugin in a preference page to
allow user to select an executable file within her or his file system.

A problem comes when I select an "app" executable file in Mac OSX.
As it is actually a Folder, it is not considered to be a valid file
in "checkState" method of FileFieldEditor : the test "if
(file.isFile())" on line 137 obviously returns false and goes through
an error "value must be an existing file". As a result, "Apply" and "OK"
buttons are not enabled.

Am I misusing FileFieldEditor ? Is there another more suitable class ?
Is there a workaround for app mac "files" ? Should FileFieldEditor
handle 'app' files ?

Thks a lot,
frank

PS : org.eclipse.jface_3.5.2.M20100120-0800.jar
Previous Topic:TableViewer change column amount depending on Input
Next Topic:[Databinding] Problem with datetime, validation and unit testing
Goto Forum:
  


Current Time: Sat Oct 25 05:48:32 GMT 2014

Powered by FUDForum. Page generated in 0.01455 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software