Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] how to get a file by its full path?

hi,all

When click on a file in package explorer or resource navigator, the UI can
get the file object by the method --selectionChanged(IAction action,
ISelection selection).

But how to get a file by its full path? If I have a string "/root/foo.c",
how can I create a object(or an IFile) to point to this file -- foo.c?

Thank you!



Back to the top