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
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