When a command is executed that is not a UndoableMapCommand the dialog is
shown however you can disable this because it is a system property.  Either
in the udig.ini file or programatically.  The preference is:
net.refractions.udig.project/P_WARN_IRREVERSIBLE_COMMAND

If I have the syntax right you should be able to do:

net.refractions.udig.project /P_WARN_IRREVERSIBLE_COMMAND=false

in the udig.ini file and the dialog should not be shown.  However you will
have to clean the caches for it to take effect.  Otherwise you can get the
preference store for net.refractions.udig.project and set that preference to
false.

Jesse

On Wed, Sep 21, 2011 at 10:56 AM, Joaquín Rodriguez-Guerra Urcelay <
[email protected]> wrote:

> Hi Virginie,
>
> Weird workaround....
> Have you tried to change the language of your application?
> In my case, if I use the program argument "-nl EN " I get the notification,
> but if I use "-nl ES" then I dont.
>
> Joaquín
> ________________________________________
> De: [email protected] [
> [email protected]] En nombre de
> [email protected] [[email protected]]
> Enviado el: miércoles, 21 de septiembre de 2011 10:02
> Para: User-friendly Desktop Internet GIS; User-friendly Desktop Internet
> GIS
> Asunto: [udig-devel] RE :  CommitCommand and RollbackCommand
>
> Dear Andrea,
>
> It works but it's in english and the user doesn't have to be noticed.
> So I would like to "hide" this command.
> Is it possible?
>
> Thank you.
> Virginie
>
> -------- Message d'origine--------
> De: [email protected] de la part de andrea
> antonello
> Date: mer. 21/09/2011 09:00
> À: User-friendly Desktop Internet GIS
> Objet : Re: [udig-devel] CommitCommand and RollbackCommand
>
> Hi Virginie,
> the commit command askes for the user to choose but gives the
> possibility to say: don't ask this again.
>
> Doesn't that work for you?
>
> Ciao,
> Andrea
>
>
> On Tue, Sep 20, 2011 at 5:20 PM, Virginie BERRE
> <[email protected]> wrote:
> >
> > Dear all,
> >
> >
> >
> > With this method :
> >
> > MapCommand commitCommand =
> EditCommandFactory.getInstance().createCommitCommand();
> >
> > map.sendCommandASync(commitCommand);
> >
> >
> >
> > I'm not able to know if the user has clicked "Ok" or "Cancel".
> >
> >
> >
> > Is there a way to know the choice made?
> >
> > Same question with RollbackCommand.
> >
> >
> >
> > I also would like to send RollbackCommand without prompt the user but I
> don't find the way.
> >
> >
> >
> > Could you help me?
> >
> >
> >
> > Thank you.
> >
> >
> >
> > Best regards,
> >
> >
> >
> > Virginie BERRE - Chef de projet
> >
> > +33 (0)1 30 15 40 58
> >
> > ________________________________
> >
> > ZA Les Erables - bâtiment 4
> >
> > 66, route de Sartrouville
> > 78230 Le Pecq
> > Tel: +33 (0)1 30 15 40 50
> > Fax: +33 (0)1 30 15 40 60
> > www.magellium.fr
> >
> > Pensez environnement ! N'imprimez ce mail que si c'est vraiment
> nécessaire !
> >
> >
> >
> > _______________________________________________
> > User-friendly Desktop Internet GIS (uDig)
> > http://udig.refractions.net
> > http://lists.refractions.net/mailman/listinfo/udig-devel
> >
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
>
> ______________________
> This message including any attachments may contain confidential
> information, according to our Information Security Management System,
>  and intended solely for a specific individual to whom they are addressed.
>  Any unauthorised copy, disclosure or distribution of this message
>  is strictly forbidden. If you have received this transmission in error,
>  please notify the sender immediately and delete it.
>
> ______________________
> Este mensaje, y en su caso, cualquier fichero anexo al mismo,
>  puede contener informacion clasificada por su emisor como confidencial
>  en el marco de su Sistema de Gestion de Seguridad de la
> Informacion siendo para uso exclusivo del destinatario, quedando
> prohibida su divulgacion copia o distribucion a terceros sin la
> autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
>  erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
> Gracias por su colaboracion.
>
> ______________________
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to