Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How can I create a Java Project programatically when running textual Eclipse?
How can I create a Java Project programatically when running textual Eclipse? [message #30235] Mon, 19 May 2003 17:12 Go to next message
Eclipse UserFriend
I don't have access to a Shell or anything. I simply tried
JavaCore.create(...) giving it an IProject, but the project that was created
was not a Java Project (although it was returned as IJavaProject, it's
classpath etc. weren't set, and so it wasn't considered a Java project by
some of the other projects and views). I looked at what the
NewProjectCreationWizardPage does to create an authentic Java Project. It's
delegating some crucial functionality to BuildPathsBlock, which I cannot use
since it is a mixture of UI and logic. Now, it seems, I cannot create a
Java project w/o copying large chunks of code from various places (in
NewProjectCreationWizardPage and BuildPathsBlock). Is there an easier way
to create a java project? Regardless, I must say that I'm surprised by the
poor quality of the code.
Re: How can I create a Java Project programatically when running textual Eclipse? [message #30481 is a reply to message #30235] Mon, 19 May 2003 18:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adam.kiezun.gmx.net.remove

>Regardless, I must say that I'm surprised by the poor quality of the code.

eclipse has a couple hundred thousands users who think otherwise

naturally, contibutions are more than welcome - it's open source
we'll be quite happy to include your code, should it prove to be better than the
existing one

look at how org.eclipse.jdt.testplugin.JavaProjectHelper creates and sets up
Java projects

regards
a.
--
eclipse.org
Re: How can I create a Java Project programatically when running textual Eclipse? [message #36504 is a reply to message #30481] Fri, 23 May 2003 06:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Where can i get the org.eclipse.jdt.testplugin.JavaProjectHelper. pls let
me know ASAP
Re: How can I create a Java Project programatically when running textual Eclipse? [message #36639 is a reply to message #36504] Fri, 23 May 2003 08:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adam.kiezun.gmx.net

in cvs on dev.eclipse.org
Re: How can I create a Java Project programatically when running textual Eclipse? [message #38675 is a reply to message #36639] Sun, 25 May 2003 17:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adam.kiezun.gmx.net.remove

the project's name is
org.eclipse.jdt.ui.tests
a.
Re: How can I create a Java Project programatically when running textual Eclipse? [message #41014 is a reply to message #36504] Tue, 27 May 2003 14:30 Go to previous messageGo to next message
Eclipse UserFriend
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.ui. tests/test%20plugin/org/eclipse/jdt/testplugin/JavaProjectHe lper.java?rev=1.15&content-type=text/vnd.viewcvs-markup& amp;cvsroot=Eclipse_Project

"Easwar" <easwaran2180@yahoo.co.in> wrote in message
news:baksld$bbn$1@rogue.oti.com...
> Hi,
>
> Where can i get the org.eclipse.jdt.testplugin.JavaProjectHelper. pls let
> me know ASAP
>
>
Re: How can I create a Java Project programatically when running textual Eclipse? [message #43340 is a reply to message #30481] Thu, 29 May 2003 14:11 Go to previous messageGo to next message
Eclipse UserFriend
> >Regardless, I must say that I'm surprised by the poor quality of the
code.
> eclipse has a couple hundred thousands users who think otherwise

Of course, Eclipse is a great product. As a user, I love it. But my
comment was regarding the quality of code and not the quality of the
product. Eclipse users don't see the code that the developers do. More
specifically, my comment was directed at BuildPathsBlock. I was genuinely
surprised to see that it violated one of the basic tenets of software
engineering -- always keep UI and logic separate. I just thought that all
open-source code would be top quality. Of course, that class is an internal
package, so whoever wrote it has some defence. Anyways, I wasn't looking to
offend anybody......like I said, I was genuinely surprised.

BTW, thanks for the tip about the JavaProjectHelper class. That was quite
useful. However, I noticed that it has its own rt.jar, and it doesn't load
one based on the settings in Eclipse and the JDK installed on the user's
computer. Also, is there a reason why a utility class like this is not
included in one of the regular JDT plug-ins that ship with Eclipse?

Pratik Shah


"Adam Kiezun" <adam.kiezun@gmx.net.remove> wrote in message
news:bablft$v2$1@rogue.oti.com...
> >Regardless, I must say that I'm surprised by the poor quality of the
code.
>
> eclipse has a couple hundred thousands users who think otherwise
>
> naturally, contibutions are more than welcome - it's open source
> we'll be quite happy to include your code, should it prove to be better
than the
> existing one
>
> look at how org.eclipse.jdt.testplugin.JavaProjectHelper creates and sets
up
> Java projects
>
> regards
> a.
> --
> eclipse.org
>
>
>
Re: How can I create a Java Project programatically when running textual Eclipse? [message #43740 is a reply to message #43340] Thu, 29 May 2003 17:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: faust.acm.org

> engineering -- always keep UI and logic separate. I just thought that all
> open-source code would be top quality. Of course, that class is an
internal
> package, so whoever wrote it has some defence.

If you see an opportunity to contribute using your expertise, please do so.
The code-quality is laid bare for all to see. As such, it invites
improvement; however it takes active input on the part of the community for
those improvements to happen.


Randy
Re: How can I create a Java Project programatically when running textual Eclipse? [message #255075 is a reply to message #43340] Wed, 16 July 2008 04:31 Go to previous message
Eclipse UserFriend
Hi,

I'm of the same opinion as yours.
But jdt is not the only project which mixes up GUI and model.
the MVC pattern has not yet been well implemented by any of the
projects/eclipse plugins I have seen the source code.

By the way I have the same problem. I have seen the Helper class but I
don't know how you create the source container.
I create a Java Project programmatically. With the Java Capability
Wizard I configure it but afterwards no Source or Output Container is
created in any way.

Have I overseen something here?

Thanks for reply

Guenther Falk

Pratik Shah schrieb:
>>> Regardless, I must say that I'm surprised by the poor quality of the
> code.
>> eclipse has a couple hundred thousands users who think otherwise
>
> Of course, Eclipse is a great product. As a user, I love it. But my
> comment was regarding the quality of code and not the quality of the
> product. Eclipse users don't see the code that the developers do. More
> specifically, my comment was directed at BuildPathsBlock. I was genuinely
> surprised to see that it violated one of the basic tenets of software
> engineering -- always keep UI and logic separate. I just thought that all
> open-source code would be top quality. Of course, that class is an internal
> package, so whoever wrote it has some defence. Anyways, I wasn't looking to
> offend anybody......like I said, I was genuinely surprised.
>
> BTW, thanks for the tip about the JavaProjectHelper class. That was quite
> useful. However, I noticed that it has its own rt.jar, and it doesn't load
> one based on the settings in Eclipse and the JDK installed on the user's
> computer. Also, is there a reason why a utility class like this is not
> included in one of the regular JDT plug-ins that ship with Eclipse?
>
> Pratik Shah
>
>
> "Adam Kiezun" <adam.kiezun@gmx.net.remove> wrote in message
> news:bablft$v2$1@rogue.oti.com...
>>> Regardless, I must say that I'm surprised by the poor quality of the
> code.
>> eclipse has a couple hundred thousands users who think otherwise
>>
>> naturally, contibutions are more than welcome - it's open source
>> we'll be quite happy to include your code, should it prove to be better
> than the
>> existing one
>>
>> look at how org.eclipse.jdt.testplugin.JavaProjectHelper creates and sets
> up
>> Java projects
>>
>> regards
>> a.
>> --
>> eclipse.org
>>
>>
>>
>
>
Previous Topic:How does the JDT editor do paren and bracket matching?
Next Topic:Ecipse 3.3 -> 3.4 Junit Problems
Goto Forum:
  


Current Time: Sat May 24 07:41:43 EDT 2025

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

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

Back to the top