I am developing a Jdev extension. The main aim is to change the file contents under selection (applying some rules on the code). I used the FirstSample sample extension to build my application.
I want the filepath of the file i right clicked to invoke the extension
i was able to get the project path using the below code
context.getProject().getURL()
context.getElement().getLongLabel()
provides the file path