Eclipse Plug-In basics

Discussion in 'Java' started by simdude, Aug 16, 2004.

  1. simdude

    simdude Guest

    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
     
    simdude, Aug 16, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. YourFriend
    Replies:
    1
    Views:
    385
    Alan Moore
    Dec 4, 2003
  2. S3 South Florida
    Replies:
    0
    Views:
    350
    S3 South Florida
    Jul 23, 2004
  3. exquisitus

    XDoclet plug-in for Eclipse?

    exquisitus, May 12, 2005, in forum: Java
    Replies:
    0
    Views:
    381
    exquisitus
    May 12, 2005
  4. Elhanan
    Replies:
    2
    Views:
    292
    Elhanan
    Dec 26, 2005
  5. George Maney
    Replies:
    1
    Views:
    285
    Lucien
    Jan 22, 2004
Loading...

Share This Page