Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to create an IAction to class TestExitConfirmation(IExitConfirmation)
How to create an IAction to class TestExitConfirmation [message #813761] Mon, 05 March 2012 12:14 Go to next message
Luis Carlos Moreira da Costa is currently offline Luis Carlos Moreira da Costa
Messages: 40
Registered: July 2009
Location: Brazil
Member


How to create an IAction to class TestExitConfirmation?


import org.eclipse.rap.ui.branding.IExitConfirmation;

public class TestExitConfirmation implements IExitConfirmation {

public boolean showExitConfirmation() {
return true;
}

public String getExitConfirmationText() {
return "You really want to quit?";
}

}



Luís Carlos Moreira da Costa
Eclipse RAP, RCP, eRCP, GEF, EMF, GMF, OSGI, Spring-DM and Pentaho Developer
Regional Communities/Brazil
http://wiki.eclipse.org/Regional_Communities/Brazil
Re: How to create an IAction to class TestExitConfirmation [message #814240 is a reply to message #813761] Tue, 06 March 2012 02:50 Go to previous message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1794
Registered: July 2009
Senior Member
Hi,
an implementation of IExitConfirmation is used to customize the dialog
message when you try to navigate away from your application or close the
browser. There is no sense to trigger this dialog from your application
UI. Please note that the "exit confirmation" dialog and its message are
not respected in all browsers. See:
369369: exitConfirmation not showing up on Chrome browser
https://bugs.eclipse.org/bugs/show_bug.cgi?id=369369

Best,
Ivan

On 3/5/2012 7:14 PM, Luis Carlos Moreira da Costa wrote:
>
> How to create an IAction to class TestExitConfirmation?
>
>
> import org.eclipse.rap.ui.branding.IExitConfirmation;
>
> public class TestExitConfirmation implements IExitConfirmation {
>
> public boolean showExitConfirmation() {
> return true;
> }
>
> public String getExitConfirmationText() {
> return "You really want to quit?";
> }
>
> }
>
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:How to have multi-user
Next Topic:Single Sourcing - Widget -> removeListener() issue
Goto Forum:
  


Current Time: Sun Aug 31 04:24:21 EDT 2014

Powered by FUDForum. Page generated in 0.01532 seconds