Eclipse Plugin: how to modify perl build path from an eclipse Plugin java class

Discussion in 'Java' started by eser@libero.it, Sep 7, 2007.

  1. Guest

    Hi!
    I developed an eclipse plugin who creates projects of "perl nature"
    with a particular path: I must modify the perl build path but I don't
    know what I have to do... My code now is:

    IWorkspace work=ResourcesPlugin.getWorkspace();

    IWorkspaceRoot workRoot=ResourcesPlugin.getWorkspace().getRoot();

    IProject newProject=workRoot.getProject(name);

    IProjectDescription
    newProjectDescription=work.newProjectDescription(name);

    String[] natureId=new String[1];

    natureId[0]="org.epic.perleditor.perlnature"; //PERL NATURE

    newProjectDescription.setNatureIds(natureId);

    ...............
    //Here I think is the place where I have to modify the perl path of
    the project the plugin is goig to create
    .........................
    newProject.create(newProjectDescription,null); //creazione progetto


    Can you give me an idea or a little piece of source code to resolve
    this problem???
    I browse a lot in the web but I didn't find any idea to continue...

    Thanks very much!

    Daniele.
     
    , Sep 7, 2007
    #1
    1. Advertising

  2. Lew Guest

    Re: PERL INCLUDE PATH automatically from Java Code

    wrote:
    > Hi all!
    > I have a big problem..


    Yes, you haven't learned not to multi-post. GIYF.

    Use cross-posting, as I did to correct your distribution, if you really,
    really, really, really absolutely must reach more than one newsgroup, although
    such coverage is unlikely to get you more, better or faster answers.

    --
    Lew
     
    Lew, Sep 7, 2007
    #2
    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. davout
    Replies:
    5
    Views:
    739
    Bryce
    Aug 17, 2004
  2. javaguy44
    Replies:
    1
    Views:
    1,013
  3. Alex Hunsley
    Replies:
    0
    Views:
    4,678
    Alex Hunsley
    Apr 19, 2006
  4. guesswho
    Replies:
    3
    Views:
    631
    John O
    Sep 6, 2006
  5. Jimmy
    Replies:
    0
    Views:
    512
    Jimmy
    Mar 15, 2007
Loading...

Share This Page