|Unable to check for file extension in expression? [message #972784]
||Mon, 05 November 2012 17:23
| Joost van Pinxten
Registered: November 2012
I am currently trying to check the file extension of the current selection. What kinds of expressions I tried which are correctly working:
- counting the elements in the current selection
- iterating over a selection, checking if they are all instance of (IFile|IFolder)
But what I cannot get to work is the name/extension property; I'm using the following definition to achieve this:
I have tried to replace "extension" with "org.eclipse.core.resources.IResource.extension" and also "org.eclipse.core.resources.IFile.extension" to no avail. http://wiki.eclipse.org/Command_Core_Expressions#Variables_and_the_Command_Framework states that it should be possible to use wildcards, but even if I use value="*" the expression does not evaluate to true.
There are no errors in the log or in the console.
Is there something I'm doing wrong here? Is there a way to inspect or output the values/objects that I'm iterating over?
Powered by FUDForum
. Page generated in 0.09105 seconds