11-22-2009 04:25 AM
Hello,
I am using webplugin for eclipse for developing BlackBerry Widget application on Windows Vista 32 bit system.
1> The API documetation for File Object mentions a function getFileProperties which returns FileProperties object. I am not able to find any documentation on members of the FilePropertiesobject.
2> While developing java script code in eclipse, all javascript functions from the API appear as error and are marked as undefined. However, the code compiles and runs and the functions work. Is this normal ? Also the tool tip does not work.
Thank You
Solved! Go to Solution.
11-22-2009 08:36 AM
1> The API documetation for File Object mentions a function getFileProperties which returns FileProperties object. I am not able to find any documentation on members of the FilePropertiesobject.
Yes that one was missed in the documentation.. We have new versions of the API docs that now include this API any day now. For now here is a quick rundown on what it has in it.
readonly property Date dateCreated
readonly property Date dateModified
readonly property String directory
readonly property String fileExtension
readonly property Boolean isHidden
readonly property Boolean isReadonly
readonly property String mimeType
readonly property Number size
2> While developing java script code in eclipse, all javascript functions from the API appear as error and are marked as undefined. However, the code compiles and runs and the functions work. Is this normal ? Also the tool tip does not work.
This is just the Eclipse JavaScript editor being "smart" where it cannot find the definition of the BlackBerry API functions since they are built into the OS. We do not have code assist in the tooling yet, but will be a feature we are adding that should resolve the undefined warnings you are getting
11-22-2009 11:49 AM
Thank You for the prompt reply ![]()