Skip to main content


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 17:14 Go to next message
Luis Carlos Moreira da Costa is currently offline Luis Carlos Moreira da CostaFriend
Messages: 39
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 07:50 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
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:RAP Theme dynamic
Goto Forum:
  


Current Time: Thu Apr 25 09:59:27 GMT 2024

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

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

Back to the top