Andreas, I did a little reading in the old JUMP Developer Guide and the OpenJUMP Javadoc. I was wondering if you could indicate to me which method is used to obtain the FeatureCollection from the DataSource. Is it the installCoordinateSystem method? I see that it returns a FeatureCollection, but it seems like an odd name. I was expecting to find a getFeatureCollection method or something similar.
I only ask because understanding this mechanism might help me answer your question. I'm thinking OpenJUMP automatically loads DataSource implementations just like it does plug-ins and cursor tools, so we may have little control over the process in which a DataSource implementation is used. However, based on the information you provided so far, I believe that your hook would be an acceptable solution. In addition, I think we should pass a PlugInContext to the method that is executed by OpenJUMP when obtaining features from the DataSource. This would allow, for example, modification of the process used by a DataSource implementation to create a FeatureCollection based on configuration information stored in a blackboard, or even something like the number of existing layers in the Task. I'm thinking of a method like: DataSource.getFeatureCollection(PlugInContext argContext) { // Stub } Of course, this may make absolutely no sense because I don't currently have a deep understanding of how the DataSource code works. The Sunburned Surveyor On Tue, Jun 3, 2008 at 11:47 AM, Sunburned Surveyor <[EMAIL PROTECTED]> wrote: > Andreas, > > This is a good question, as I know I've gotten to some places in the > code where I didn't have access to a PlugInContext, WorkbenchContext, > or Blackboard. > > Let me look at the API today at lunch and I will respond with any comments. > > The Sunburned Surveyor > > On Tue, Jun 3, 2008 at 6:33 AM, Andreas Schmitz <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm wondering. If I've got a reader (JUMPReader) and I'm using it in a >> DataSource, I often run into the problem of communicating data that was read >> from the file to the application. Example: >> >> I'm parsing a MapInfo file and would like to store the parsed style >> information >> somewhere. From the reader/datasource I've no access to a global Map or the >> generated layer. The only thing I have is the feature collection that is >> created. To work around the problem, I wrote another plugin that reads and >> applies the style information (since plugins have the PlugInContext >> containing a >> whole lot of information). >> >> Is there a way how I can communicate information from the reader to the rest >> of >> OpenJUMP? Maybe we could add a hook like >> >> public void postLayerCreation(Layer layer); >> >> to the JUMPReader interface? >> >> Best regards, Andreas >> -- >> l a t / l o n GmbH >> Aennchenstrasse 19 53177 Bonn, Germany >> phone ++49 +228 18496-12 fax ++49 +228 1849629 >> http://www.lat-lon.de http://www.deegree.org >> >> ------------------------------------------------------- >> On June 17 is deegree day - Am 17. Juni ist deegree day >> http://deegree.org/deegreeday >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.6 (GNU/Linux) >> >> iD8DBQFIRUgP737OVr+Ru7oRAtYjAJ9gqhAAuErZfs49NdHN+QZiiwjurgCeLQQE >> qmPKsPsw0CNNRwZJCTqUE+U= >> =zyq/ >> -----END PGP SIGNATURE----- >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel