Paul,

That is a good tip. I'll add this information to my section of the
wiki on loading files in OpenJUMP. Thanks for implementing the
AbstractFileLayerLoader.

The Sunburned Surveyor

On Wed, Jun 11, 2008 at 11:12 AM, Paul Austin <[EMAIL PROTECTED]> wrote:
> Christopher,
>
> Have a look at the org.openjump.core.ui.io.file.AbstractFileLayerLoader
> class for implementing a complete custom file loader.
>
> You just have to implement the open(TaskMonitor monitor, URI uri,
> Map<String, Object> options) method to do the actual Layerable creation. If
> there are options the user can select you can call the addOption method in
> your constructor to define what types of options the user needs to enter and
> the GUI will be auto created for you.
>
> Then register it using the following so it will be added to the open dialog
> box.
>
> Registry registry = workbenchContext.getRegistry();
> registry.createEntry(FileLayerLoader.KEY, loader);
>
> Let me know if you get stuck as I was the one who implemented this
> functionality.
>
> Paul
>
> Christopher wrote:
>
> --- Sunburned Surveyor <[EMAIL PROTECTED]>
> wrote:
>
>
> Let me know if you have more questions. I can help
> you with
> implementing a DataSource for TIN files if that's
> what you are
> currently working on.
> The Sunburned Surveyor
>
>
> Hmmm, it looks like since I've gone the Layerable
> route and bypassed geometry and features, I'll have to
> roll my own file loader encapsulated in a plug-in.
> Right now I'm working on about four things at once
> since they are all interdependent. The file access is
> just a part of things. Hopefully, I can get a basic,
> functional scaffolding working by Monday.
> --Christopher
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to