X-Git-Url: http://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=blobdiff_plain;f=org.argeo.suite.workbench.rap%2Fsrc%2Forg%2Fargeo%2Fsuite%2Fworkbench%2Frap%2FAsSecureEntryPoint.java;fp=org.argeo.suite.workbench.rap%2Fsrc%2Forg%2Fargeo%2Fsuite%2Fworkbench%2Frap%2FAsSecureEntryPoint.java;h=0000000000000000000000000000000000000000;hp=bae894d7cfa3195b758095da47e8c682a8265c1f;hb=9b434abf555b36bbdb51729742f70f25b7abd5a3;hpb=a4592339d582315077ae7bb87043a6ec7a8bd4a2
diff --git a/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/rap/AsSecureEntryPoint.java b/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/rap/AsSecureEntryPoint.java
deleted file mode 100644
index bae894d..0000000
--- a/org.argeo.suite.workbench.rap/src/org/argeo/suite/workbench/rap/AsSecureEntryPoint.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package org.argeo.suite.workbench.rap;
-
-import org.argeo.cms.ui.workbench.rap.RapWorkbenchAdvisor;
-import org.argeo.cms.ui.workbench.rap.RapWorkbenchLogin;
-import org.argeo.cms.util.CmsUtils;
-import org.argeo.cms.widgets.auth.CmsLogin;
-import org.argeo.eclipse.ui.EclipseUiUtils;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Label;
-
-/**
- * This class controls all aspects of the application's execution and is
- * contributed through the plugin.xml.
- */
-public class AsSecureEntryPoint extends RapWorkbenchLogin {
-
- /** Override to provide an application specific workbench advisor */
- protected RapWorkbenchAdvisor createRapWorkbenchAdvisor(String username) {
- return new AsWorkbenchAdvisor(username);
- }
-
- protected void createLoginPage(Composite parent, CmsLogin login) {
- parent.setLayout(EclipseUiUtils.noSpaceGridLayout());
-
- // Main layout
- Composite bodyCmp = new Composite(parent, SWT.NO_FOCUS);
- bodyCmp.setLayoutData(EclipseUiUtils.fillAll());
- GridLayout gl = new GridLayout();
- gl.marginHeight = 25;
- gl.marginWidth = 40;
- bodyCmp.setLayout(gl);
-
- // Logo
- Label headerLbl = new Label(bodyCmp, SWT.WRAP);
- CmsUtils.markup(headerLbl);
- // Images are declared via the resources extension point in plugin.xml
- String headerStr = " "
- + " " + "";
- headerLbl.setText(headerStr);
- GridData gd = new GridData(SWT.LEFT, SWT.CENTER, true, false);
- headerLbl.setLayoutData(gd);
-
- // Title
- Label titleLbl = new Label(bodyCmp, SWT.WRAP | SWT.CENTER);
- CmsUtils.markup(titleLbl);
- String titleStr = " Please sign in to your personal dashboard";
- titleLbl.setText(titleStr);
- gd = new GridData(SWT.CENTER, SWT.BOTTOM, false, false);
- gd.verticalIndent = 15;
- titleLbl.setLayoutData(gd);
-
- // Login composite
- Composite loginCmp = login.createCredentialsBlock(bodyCmp);
- gd = new GridData(SWT.CENTER, SWT.TOP, true, true);
- gd.widthHint = 200;
- gd.verticalIndent = 15;
- loginCmp.setLayoutData(gd);
-
- // // Footer
- // Label footerLbl = new Label(bodyCmp, SWT.WRAP | SWT.CENTER);
- // CmsUtils.markup(footerLbl);
- // String footerStr = "SDPS is a private service.
"
- // + " Please contact us if you
- // have any question.";
- // footerLbl.setText(footerStr);
- // footerLbl.setLayoutData(EclipseUiUtils.fillWidth());
- }
-}