1 package org
.argeo
.suite
.workbench
.rap
;
3 import org
.argeo
.cms
.ui
.workbench
.rap
.RapWorkbenchAdvisor
;
4 import org
.eclipse
.ui
.application
.IWorkbenchWindowConfigurer
;
5 import org
.eclipse
.ui
.application
.WorkbenchWindowAdvisor
;
7 /** Eclipse RAP specific workbench advisor */
8 public class AsWorkbenchAdvisor
extends RapWorkbenchAdvisor
{
10 private String username
;
13 public void postStartup() {
15 // ExitConfirmation confirmation = RWT.getClient().getService(
16 // ExitConfirmation.class);
17 // confirmation.setMessage("Are you sure you want to leave the page? "
18 // + "All un-saved information will be lost.");
21 public void postShutdown() {
23 // ExitConfirmation confirmation = RWT.getClient().getService(
24 // ExitConfirmation.class);
25 // if (confirmation != null)
26 // confirmation.setMessage(null);
29 public AsWorkbenchAdvisor(String username
) {
31 this.username
= username
;
34 public WorkbenchWindowAdvisor
createWorkbenchWindowAdvisor(
35 IWorkbenchWindowConfigurer configurer
) {
36 return new AsWindowAdvisor(configurer
, username
);