Eclipse Plug-In basics

S

simdude

I have a basic Eclipse plug-in question. I need to be able to select a
file in my workspace and act on it in my plug-in (similar to selecting
a Java file and choosing a run or debug option).

The run method in the plug-in takes an IAction argument and using the
debugger, I find my selected file in
selection.elements.File.path.segments array with the first element
being the project name and the second the file I selected. Reading
through the IAction API, I don't see how to get at these. Is there
another way to get at selections you need passed into a plugin?

Thx,

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top