Hi all,
I gave a look at class WorkBenchFrame. I made two small changes
a) on closing OpenJUMP, a warning message asks user if he wants to save the
selected project.
b) when a user try to close a project, a simple warning message ask if user
really want to close it.

I checked the other code and try to avoid to bypass the other warnings (=if
new layers have been generated, if layers have been modified, if minor
taskframes are opened).

I am sure that this is not the finals solution and there are still things
to solve:
1) OpenJUMP allows to open different projects at the same time. The warning
message a) works only on a single selected project. I still didn't find a
simple solution if 2 or more projects are opened and, maybe, modified.
2) I am sure that warning b) should allows user to save a project but I
cannot let it work.

Please check on OpenJUMP version 4522
Peppe

2015-06-24 22:19 GMT+02:00 Michaël Michaud <m.michael.mich...@orange.fr>:

>  Hi Peppe,
>
> All your propositions makes sense to me,
>
> Michaël
>
>
> Le 24/06/2015 10:58, Giuseppe Aruta a écrit :
>
>  Hi all,
>  I already post this mail to [JUMP] lis SVN. I put here also for user who
> are not involved on developing just to explore other opinion.
>
>  The test I did is on OpenJUMP 4508. This is a OJ behavior when it is
> closed "before saving the project file", *in italics my comments*:
>
>  a) Open OJ and *load a vector* layer. Than close OJ.
>  OJ shuts down with no warning to save the project.
> * This is a bit ambiguous as an user wants maybe only to loads vectors and
> save the project with no need do perform analysis .* I*n my opinion OJ
> should anyhow warns users if save the project*
>
> b) Open OJ and *create a vector* file, Than close OJ.
> There are two types of warning according to what happens:
>  - if the new layer is only created OJ warns that an automatically
> generated layer is not saved - (automatically generated warning)
>  - if the new file is created and modified (ex. adding a feature), OJ
> warns that one (or more) datasets has been modified. - (modified warning)
>  *This is OK. We probably can extend both warning dialog adding a list of
> the name of unsaved/modified layers*
>
>  c) Open OJ and l*oad a Sextante Raster* Layer. Than close OJ
>  See OJ behaviour and comments at point a)
>
>  d) Open OJ, load a Sextante Raster Layer, than *create a new Sextante
> Raster* layer using Sextante Toolbox or other OJ tools. Than Close OJ (no
> vectors loaded/created).
>  OJ shuts down with no no warning to save the project.
>  *This is fatal for users who are not aware about it, as they can loose
> all their work. We should add a warning message, like in point b) warning
> users that 1d) new raster layers have been created, 2d) these layers are
> temporary layers (they are saved into OS temp folder, users can lost them
> if they shut down the computer)*
>
>  e) Open OJ and *load a WMS* Layer. Than close OJ
> See OJ behaviour and comments at point a)
>
>
>  My conclusion:
>  1) I think we need anyhow a warning message that ask user to save the
> project (see point a, c and e)
>  2) extend the automatically generated warning  to the presence of
> "temporary raster layer" and to save them (see point d)
>  3) possibly add to the warning messages a list of a) modified vector
> layers, b) new vector layers, c) temporary raster layers (see point b and d)
>
>  Peppe
>
>
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download 
> nowhttp://ad.doubleclick.net/ddm/clk/292181274;119417398;o
>
>
>
> _______________________________________________
> Jump-pilot-devel mailing 
> listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to