Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Include SWT/JavaDoc, Export jar file of project
Include SWT/JavaDoc, Export jar file of project [message #245991] Sat, 19 January 2008 02:09 Go to next message
Markus Fischer is currently offline Markus FischerFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

I've installed SWT from http://www.eclipse.org/swt/ in a projects subdirectory
added in Project / Properties / Java Build Path / Libraries and it works.
However I'm wondering how can enjoy the direct linking of SWT classes/methods
to their javadoc documentation? Where can I download the JavaDoc for SWT
locally and where to I have to put it so I can access it from within PHP?

I was also able to successfully export a JAR file, but I've to go through the
dialog all the time when I right click on a project and select Export / Jar
File. I've to select the resources every time. Is there a way to create a
process how to build the jar when desired, much like an ant build file?

I'm using Eclipse from eclipse-java-europa-fall2-win32.zip .

thanks,
- Markus
Re: Include SWT/JavaDoc, Export jar file of project [message #246021 is a reply to message #245991] Sat, 19 January 2008 08:45 Go to previous messageGo to next message
kiril mitov is currently offline kiril mitovFriend
Messages: 69
Registered: July 2009
Member
One of the ways to achieve this while working with java projects is.

>and it works. However I'm wondering how can enjoy the direct linking
>of SWT classes/methods to their javadoc documentation?

Right Click on the Project->Build Path->Configure Build Path->Go to the
Libraries Tab->Add Variable->Select ECLIPSE_HOME->Extend...->Chose
plugins/org.eclipse.swt*.jar and click ok. This will add the
org.eclipse.swt jars from you eclipse installation to the build path.

In my case I have org.eclipse.swt, org.eclipse.swt.gkt.linux.x86 and
org.eclipse.swt.gtk.linux.x86.source.

In the state when I create a new class and add an attribute

private Display display = null;

I am able to press F3 on "Display" and this will show me source code of
the Display class. This solves the first part of the problem:

The other way is simply to add the above libraries not through
EClIPSE_HOME variable, but as external jars.

I am not sure if eclipse-java-europa-fall2-win32.zip contains the source
of swt.

> the JavaDoc for SWT locally and where to I have to put it so I can
> access it from within PHP?
Not sure about this one. What do you mean by access it from within PHP?

Best Regards,
Kiril

Markus Fischer wrote:
> Hi,
>
> I've installed SWT from http://www.eclipse.org/swt/ in a projects
> subdirectory added in Project / Properties / Java Build Path / Libraries
> and it works. However I'm wondering how can enjoy the direct linking of
> SWT classes/methods to their javadoc documentation? Where can I download
> the JavaDoc for SWT locally and where to I have to put it so I can
> access it from within PHP?
>
> I was also able to successfully export a JAR file, but I've to go
> through the dialog all the time when I right click on a project and
> select Export / Jar File. I've to select the resources every time. Is
> there a way to create a process how to build the jar when desired, much
> like an ant build file?
>
> I'm using Eclipse from eclipse-java-europa-fall2-win32.zip .
>
> thanks,
> - Markus
Re: Include SWT/JavaDoc, Export jar file of project [message #246226 is a reply to message #246021] Mon, 21 January 2008 23:24 Go to previous messageGo to next message
Markus Fischer is currently offline Markus FischerFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

kiril mitov wrote:
> Right Click on the Project->Build Path->Configure Build Path->Go to the
> Libraries Tab->Add Variable->Select ECLIPSE_HOME->Extend...->Chose
> plugins/org.eclipse.swt*.jar and click ok. This will add the
> org.eclipse.swt jars from you eclipse installation to the build path.

I'm failing to achive this, I don't have ECLIPSE_HOME in there, just JRE_LIB,
JRE_SRC, JRE_SRCROOT and JUNIT_HOME (though I didn't set the myself in any way).

> In my case I have org.eclipse.swt, org.eclipse.swt.gkt.linux.x86 and
> org.eclipse.swt.gtk.linux.x86.source.

I've only the files org.eclipse.swt.win32.win32.x86_3.3.2.v3347a.jar (~2MB)
and org.eclipse.swt_3.3.2.v3347.jar (16kb) there.

> The other way is simply to add the above libraries not through
> EClIPSE_HOME variable, but as external jars.

I tried this, in fact I've a single swt.jar already attached to the project to
even be able to build this.

>
> I am not sure if eclipse-java-europa-fall2-win32.zip contains the source
> of swt.

I think that's the real source of my confusion :) Where do I get the source of
SWT? I managed to get the binary from http://www.eclipse.org/swt/ but I can't
see the sources linked. And I can't figure out where to download the JavaDOC
and link it within eclipse :-/


>> the JavaDoc for SWT locally and where to I have to put it so I can
>> access it from within PHP?
> Not sure about this one. What do you mean by access it from within PHP?

Sorry, my bad, I tried to do many things at the same time :) PHP should read
"Eclipse". It's the question, once I've the JavaDoc API of SWT (which I don't
know yet where to get from), where to put it it so I can use it from within
Eclipse.

Or would I just need the sources and get the complete documentation automatically?

thank you,
- Markus
Re: Include SWT/JavaDoc, Export jar file of project [message #246633 is a reply to message #246226] Thu, 24 January 2008 08:03 Go to previous message
kiril mitov is currently offline kiril mitovFriend
Messages: 69
Registered: July 2009
Member
Hi Markus,
Go to eclipse.org->downloads->eclipse Classics 3.3.1.1 All
Versions->3.3.1.1.

You should then be at
http://download.eclipse.org/eclipse/downloads/drops/R-3.3.1. 1-200710231652/index.php

Scroll down the page and see the "SWT Binary and Source" section. This
is where you can download the source of SWT.

If you would like to see the JavaDoc of SWT open your eclipse and go to
Help->Help Contents->Platform Plugin Developer Guide->Reference->API
Reference. There you should see the org.eclipse.swt packages and classes.

Best Regards,
Kiril

Markus Fischer wrote:
> Hi,
>
> kiril mitov wrote:
>> Right Click on the Project->Build Path->Configure Build Path->Go to the
>> Libraries Tab->Add Variable->Select ECLIPSE_HOME->Extend...->Chose
>> plugins/org.eclipse.swt*.jar and click ok. This will add the
>> org.eclipse.swt jars from you eclipse installation to the build path.
>
> I'm failing to achive this, I don't have ECLIPSE_HOME in there, just
> JRE_LIB, JRE_SRC, JRE_SRCROOT and JUNIT_HOME (though I didn't set the
> myself in any way).
>
>> In my case I have org.eclipse.swt, org.eclipse.swt.gkt.linux.x86 and
>> org.eclipse.swt.gtk.linux.x86.source.
>
> I've only the files org.eclipse.swt.win32.win32.x86_3.3.2.v3347a.jar
> (~2MB) and org.eclipse.swt_3.3.2.v3347.jar (16kb) there.
>
>> The other way is simply to add the above libraries not through
>> EClIPSE_HOME variable, but as external jars.
>
> I tried this, in fact I've a single swt.jar already attached to the
> project to even be able to build this.
>
>>
>> I am not sure if eclipse-java-europa-fall2-win32.zip contains the source
>> of swt.
>
> I think that's the real source of my confusion :) Where do I get the
> source of SWT? I managed to get the binary from
> http://www.eclipse.org/swt/ but I can't see the sources linked. And I
> can't figure out where to download the JavaDOC and link it within
> eclipse :-/
>
>
>>> the JavaDoc for SWT locally and where to I have to put it so I can
>>> access it from within PHP?
>> Not sure about this one. What do you mean by access it from within PHP?
>
> Sorry, my bad, I tried to do many things at the same time :) PHP should
> read "Eclipse". It's the question, once I've the JavaDoc API of SWT
> (which I don't know yet where to get from), where to put it it so I can
> use it from within Eclipse.
>
> Or would I just need the sources and get the complete documentation
> automatically?
>
> thank you,
> - Markus
Previous Topic:Created File Missing in the workspace
Next Topic:Refreshing the workbench toolbar ?
Goto Forum:
  


Current Time: Sat Dec 21 17:24:30 GMT 2024

Powered by FUDForum. Page generated in 0.34112 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top