Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Save Project As

Hi Jayansh; this is the second time I have answered this question
recently (I think last time was on the IRC channel). Have a look at
how the class OpenProject - this is an action that prompts the user
and eventually it boils down to this method.

ProjectRegistryImpl.getProject( URI )

Which turns around and calls some fun Eclipse Modeling Framework URI
and Resource classes including

resource.load( Map<?,?> )

We will want to use one of:
- resource.save( Map<?,?> )
- resource.save( OutputStream, Map<?,?> )

You may have to create a resource and add a project to it in order to
save; but you get the idea? Note that this issue was one of the ones
that was targeted for the recent 1.2-M3 release; so when you do get a
fix please send it our way.

Cheers,
Jody

On Thu, Mar 26, 2009 at 4:38 PM, Jayansh Shinde
<jayansh.shinde@xxxxxxxxx> wrote:
> Hi,
> I would like to implement Save Project As functionality in uDig. But I find
> no way to save resources(including unsaved resources) of existing project
> into new project.
> Please let me know is it feasible to save project to other location or not.
> --
> Regards
>
> Jayansh
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>


Back to the top