Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Best Way to Pass Info Between Objects? Date: Sun, 08 Jan 2012 19:01:06 -0500 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 8 Jan 2012 23:54:23 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="qwFw1g9RsQ6TkML5yezG9A"; logging-data="14789"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18T4XaGEwdv60jVtJl6tsg36Apw/kWp5wU=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 In-Reply-To: Cancel-Lock: sha1:yxkkiDYSVjPRkSnRm3ouFfalfxw= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11119 On 01/08/2012 01:43 PM, Jeff Higgins wrote: > On 01/08/2012 11:41 AM, Novice wrote: >> Sorry, that's probably not the best of subject lines but I'm having >> trouble >> coming up with a concise one.... >> >> I'm trying to reason out the best way to pass information from an >> instantiating class to an instantiated class. So, let's say class Foo >> invokes class Bar to do something. Bar needs some specific information >> from >> Foo to do its job. What is the best way to pass this information from Foo >> to Bar? >> > Look at the API of an open source project similar to yours. Or even a > dissimilar one. I use Eclipse, others Netbeans, both have an API that > you can study. For instance in the Eclipse API: Resources have Markers, Markers are displayed in many Views including Tasks view, Problems view, to name two table views. In these cases the IMarkers are displayed as records(rows). Notice the editing interface exposed on these views. org.eclipse.core.resources.IResource org.eclipse.core.resources.IMarker org.eclipse.ui.views.tasklist org.eclipse.ui.views.markers