Skip to main content



      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
Eclipse UserFriend

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?";
}

}

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
Eclipse UserFriend
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:RAP Theme dynamic
Goto Forum:
  


Current Time: Wed Jul 23 07:50:04 EDT 2025

Powered by FUDForum. Page generated in 0.40437 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top