Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Re: pde-dev Digest, Vol 28, Issue 4

Thanks for the fast answer.

Now I need to ask one more favor

I need to import a project on eclipse programatically.

I tried:

ResourcesPlugin.getWorkspace().getRoot().getProject("my-project-path").open(null);

but it's not working.

This is part of the stacktrace:

java.lang.IllegalArgumentException: Path for project must have only one segment.
    at org.eclipse.core.runtime.Assert.isLegal(Assert.java :62)
    at org.eclipse.core.internal.resources.WorkspaceRoot.getProject(WorkspaceRoot.java:164)

I'm running this from that wizard plugin.

Another issue is,

For this wizard component, I added on item to the menu, so when I press New -> Other I can select the project from my plugin and start the wizard.

That's just what I wanted, but If I try to select New -> Project then it doesn't show up. Is there a particular configuration to define that menu item as a Project menu item?

Thanks a lot for the help,

João Kreuzberg


On 7/18/07, pde-dev-request@xxxxxxxxxxx < pde-dev-request@xxxxxxxxxxx> wrote:
Send pde-dev mailing list submissions to
        pde-dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://dev.eclipse.org/mailman/listinfo/pde-dev
or, via email, send a message with subject or body 'help' to
        pde-dev-request@xxxxxxxxxxx

You can reach the person managing the list at
        pde-dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of pde-dev digest..."


Today's Topics:

   1. [DEPENDENCY ISSUE] ( Jo?o Kreuzberg )
   2. Re: [DEPENDENCY ISSUE] (Wassim Melhem)
   3. Brian Bauman/Austin/IBM is out of the office. (Brian Bauman)


----------------------------------------------------------------------

Message: 1
Date: Tue, 17 Jul 2007 23:01:09 -0300
From: " Jo?o Kreuzberg " <ivanirjoao@xxxxxxxxx>
Subject: [pde-dev] [DEPENDENCY ISSUE]
To: pde-dev@xxxxxxxxxxx
Message-ID:
        <9e0c85e70707171901n218ac2afu7d49293132979b01@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"

Hey guys,


I just started writing my first eclipse plugin (project wizard) and I'm
having an issue regarding 3rd libraries.

My plugin needs to instantiate a class that is inside of a separated jar
file. When I try to test my plugin, it just gives me a class not found
exception.

How can I make sure eclipse can find that jar to add to the classpath?

Is it something I need to configure on my plugin?

Thanks very much

Best regards,

--
João Kreuzberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://dev.eclipse.org/mailman/listinfo/pde-dev/attachments/20070717/6b23e6e5/attachment.html

------------------------------

Message: 2
Date: Tue, 17 Jul 2007 22:54:50 -0400
From: Wassim Melhem < wassimm@xxxxxxxxxx>
Subject: Re: [pde-dev] [DEPENDENCY ISSUE]
To: "Eclipse PDE general developers list." <pde-dev@xxxxxxxxxxx >
Message-ID:
        <OFE8A3DC87.B76BBEFF-ON8525731C.000F9523-8525731C.001001DD@xxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

For your plug-in to be able to utilize classes from a 3rd party library,
this library has to be a plug-in in itself.

To create a plug-in from an existing archive, go to File > New > Project...
> Plug-in Development > Plug-in from existing archives.
This will package your library into a plug-in.

Then open the MANIFEST.MF file of your first Eclipse plug-in, go to the
Dependencies tab, add the 3rd party plug-in you just created, and save the
file.
The code from the 3rd party plug-in will now be automatically added to your
classpath at development time and the classes will be on your runtime
classpath.

Make sure to NEVER tweak the classpath file of your plug-in directly.
Everything you need to get on that classpath should be done via declaring a
dependency on a plug-in on the Dependencies page.
PDE takes care of the classpath.

Wassim






             "João Kreuzberg"
             <ivanirjoao@gmail
             .com>                                                      To
             Sent by:                  pde-dev@xxxxxxxxxxx
             pde-dev-bounces@e                                          cc
             clipse.org
                                                                   Subject
                                       [pde-dev] [DEPENDENCY ISSUE]
             07/17/2007 10:01
             PM


             Please respond to
               "Eclipse PDE
                  general
             developers list."
             <pde-dev@eclipse.
                   org>






Hey guys,


I just started writing my first eclipse plugin (project wizard) and I'm
having an issue regarding 3rd libraries.

My plugin needs to instantiate a class that is inside of a separated jar
file. When I try to test my plugin, it just gives me a class not found
exception.

How can I make sure eclipse can find that jar to add to the classpath?

Is it something I need to configure on my plugin?

Thanks very much

Best regards,

--
João Kreuzberg _______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev




------------------------------

Message: 3
Date: Wed, 18 Jul 2007 04:00:54 -0500
From: Brian Bauman < baumanbr@xxxxxxxxxx>
Subject: [pde-dev] Brian Bauman/Austin/IBM is out of the office.
To: "Eclipse PDE general developers list." <pde-dev@xxxxxxxxxxx>
Message-ID:
        <OFEC57B07B.80B1B36A-ON8625731C.003185A0-8625731C.003185A0@xxxxxxxxxx>
Content-Type: text/plain; charset=US-ASCII


I will be out of the office starting  07/12/2007 and will not return until
07/20/2007.

If you require immediate assistance, please contact my manager Rene
Delgado.

I will respond to your message when I return.



------------------------------

_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev


End of pde-dev Digest, Vol 28, Issue 4
**************************************



--
João Kreuzberg

Back to the top