• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How-tos: Eclipse + WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How-tos: Eclipse + WO


  • Subject: Re: How-tos: Eclipse + WO
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 23 Feb 2007 13:22:14 -0800


On Feb 23, 2007, at 9:04 AM, Ricardo Parada wrote:


For a while I've been using ant (with project wonder's jar files) to build my projects from the command line. I then use Xcode as a java editor. Or sometimes TextMate. For editing WO components I used Xcode or WebObjectsBuilder. And of course EOModeler for eomodeld files.


My project is organized as follows in the file system in my home directory:

Source/
	WebApps/
	Tools/
	Frameworks/
	WebResources/

Recently I started looking into using Eclipse. I followed the instructions on how to setup WOLips and got my first application going. I like the incremental compilation and in-place hot code replacement. That's nice. Debugging works nice too. I wish the file find was as easy as Xcode though. In Eclipse you have to bring up a find panel and then switch to the file find tab in that panel.

Anyways, I still feel my hands are tied with Eclipse. The reason is that all my application java classes and WO components created are in the default java package. I don't know how to move them to another java package using Eclipse. For example, my Application java class for my application Foo should be in a package named com.mycompany.webapps.foo package.

I am not clear on what is wrong. Is it that you don't have package statements in your classes and you want Eclipse to add them? Or is it that you have the statements in your classes but Eclipse shows them all in the default package?


Does anybody know how to do that in Eclipse?

Yes, but which one do you want? Also, Eclipse has excellent plain Java tutorials which will probably answer this question for you.



Then I want to put the WO components into a framework with their own package. Then I want my application to reference that framework. I'm still struggling on how to do that.

Project - Properties - Build Path - Library - WebObjects Frameworks - Edit



Also I want to be able to access my source tree of webapps, frameworks, etc. from the package explorer.

That is not going to happen. Won't happen in Xcode either. That is a file system structure. Eclipse is project based. You can also look at the Navigator view, though it is also project based.



Also the WebResources folder in my source tree has its own custom build.xml which instructs ant to copy anything under that to my web server root document. For this one I can probably just run ant from the command line although there's probably a way to do it from Eclipse.

You can probably add these to a plain Eclipse project or a Web - Static project.



Is it possible to manage this kind of project with Eclipse. Or do I have to go back to using ant from the command line and using my favorite Java source file editors (TextMate, Xcode)? :-)

I think what you need is a new way to think about your projects so you are not stuck in the Finder and archaic tools. :-)



Also the Control+spacebar for code completion while editing WO components, etc. doesn't seem to work sometimes. I'm not sure why. It's moody. Is it the same for you guys out there using Eclipse? Or am I the only one experiencing this problem? :-)

That might be the default spotlight key as well, I recall some kind of conflict from earlier. Otherwise it works fine as along as there is something sensible to complete.


Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How-tos: Eclipse + WO (From: Ricardo Parada <email@hidden>)

  • Prev by Date: Re: What is the trick to debug SQL?
  • Next by Date: Re: What is the trick to debug SQL?
  • Previous by thread: How-tos: Eclipse + WO
  • Next by thread: Re: How-tos: Eclipse + WO
  • Index(es):
    • Date
    • Thread