Re: Sharing a Model using Eclipse
Re: Sharing a Model using Eclipse
- Subject: Re: Sharing a Model using Eclipse
- From: David Griffith <email@hidden>
- Date: Thu, 29 Oct 2009 02:20:46 +0100
Ok, well I've made my framework with the EOModel and the java classes
in it. I've given it a package name ips.sharedfiles. I've installed
the Framework and I've added it to the project I want to use it in. I
presumed I would then use:
import ips.sharedfiles.*;
But it doesn't recognize that. The framework shows up in the project
and I can see the .jar file is there under Resources.java. Did I do
something wrong?
Regards,
Dave.
On Oct 29, 2009, at 12:51 AM, Chuck Hill wrote:
These should answer your questions:
http://wiki.objectstyle.org/confluence/display/WOL/Create+a+WebObjects+Framework
http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Framework+Dependency
Chuck
On Oct 28, 2009, at 4:42 PM, David Griffith wrote:
Hi all,
I am slowly getting to grips with Eclipse/WOLips but I am struggling
to import some existing apps that I have which were built in XCode.
My problem is this, and it's probably very simple, but I'd
appreciate any help:
I have 3 apps that all use the same EOModel and associated java
classes. Each app has it's own project and it's own folder which
contains all the relevant parts of the app with the exception of the
shared files (i.e. EOModel and associated java classes). These are
stored in a separate folder and were being referenced by each of the
app projects in XCode. Therefore I had one instance of those files
which was modified while working on any of the three apps, the
changes therefore applying to each app once it was rebuilt.
I realise that I should probably have made a framework for this
instead but at the time I was still learning and didn't go down that
route.
What I need to know is, using Eclipse and WOLips, I obviously want
to have the same solution. Do I have to create a framework to do
this or can I do something similar with WOLips? If I have to create
a framework, how should I go about it? Add the EOModel to the
resources folder of the framework, add all the classes to a custom-
named package within the framework and change the Class definitions
in the EOModel to contain the full package name instead of just the
class name?
Also, I've been looking at some of the online tutorials etc. but
they seem to be based on older version of Eclipse and WOLips. To
add frameworks (like Wonder etc.) to my own WO App or Framework, do
I just drop them on Referenced Libraries?
Thanks for any help,
Regards,
David.
_______________________________________________
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
--
Chuck Hill Senior Consultant / VP Development
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