Fix RAP target platform
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 17 Jan 2011 07:20:36 +0000 (07:20 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 17 Jan 2011 07:20:36 +0000 (07:20 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@4039 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

eclipse/features/org.argeo.eclipse.dep.common/pom.xml
security/eclipse/plugins/org.argeo.security.ui.rap/org.argeo.security.ui.rap-maven.target
security/eclipse/plugins/org.argeo.security.ui.rcp/src/main/java/org/argeo/security/ui/rcp/RapSecureWorkbenchWindowAdvisor.java
security/eclipse/plugins/org.argeo.security.ui.rcp/src/main/java/org/argeo/security/ui/rcp/SecureRap.java

index 7c0a8455a4d1af581bcb77633e5765b949d0b50b..dc36808a3a5648680dc4252903883e08fb43b76d 100644 (file)
@@ -47,9 +47,5 @@
                        <groupId>org.eclipse.equinox</groupId>
                        <artifactId>org.eclipse.equinox.security</artifactId>
                </dependency>
-               <dependency>
-                       <groupId>org.eclipse.equinox</groupId>
-                       <artifactId>org.eclipse.equinox.security.ui</artifactId>
-               </dependency>
        </dependencies>
 </project>
index 9b9a29794643d623d5192e31ef024c79f20d8dd8..9502d22ade8f16570e4bfbe721bcb8688a797551 100644 (file)
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.registry.source/3.5.0.v20100503" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.security/1.0.200" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.security.source/1.0.200" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.security.ui/1.0.200" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.security.ui.source/1.0.200" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/help/org.eclipse.help/3.5.0" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/help/org.eclipse.help.source/3.5.0" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/jface/org.eclipse.jface/3.6.1" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/jface/org.eclipse.jface.source/3.6.1" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/jface/org.eclipse.jface.databinding/1.4.0" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/jface/org.eclipse.jface.databinding.source/1.4.0" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/osgi/org.eclipse.osgi/3.6.1" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/osgi/org.eclipse.osgi.source/3.6.1" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/osgi/org.eclipse.osgi.services/3.3.0.v20101018" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/rap/org.eclipse.rap.ui.views.source/1.3.1" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/rap/org.eclipse.rap.ui.workbench/1.3.1" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/eclipse/rap/org.eclipse.rap.ui.workbench.source/1.3.1" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/swt/org.eclipse.swt/3.6.1" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/ui/org.eclipse.ui/3.6.1" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/ui/org.eclipse.ui.source/3.6.1" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/ui/org.eclipse.ui.workbench/3.6.1" type="Directory"/>
-<location path="${system_property:user.home}/.m2/repository/org/eclipse/ui/org.eclipse.ui.workbench.source/3.6.1" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/junit/com.springsource.junit/3.8.2" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/junit/com.springsource.junit.source/3.8.2" type="Directory"/>
 <location path="${system_property:user.home}/.m2/repository/org/mortbay/jetty/org.mortbay.jetty.server/6.1.23" type="Directory"/>
 <plugin id="org.eclipse.equinox.registry.source"/>
 <plugin id="org.eclipse.equinox.security"/>
 <plugin id="org.eclipse.equinox.security.source"/>
-<plugin id="org.eclipse.equinox.security.ui"/>
-<plugin id="org.eclipse.equinox.security.ui.source"/>
 <plugin id="org.eclipse.help"/>
 <plugin id="org.eclipse.help.source"/>
-<plugin id="org.eclipse.jface"/>
-<plugin id="org.eclipse.jface.source"/>
-<plugin id="org.eclipse.jface.databinding"/>
-<plugin id="org.eclipse.jface.databinding.source"/>
 <plugin id="org.eclipse.osgi"/>
 <plugin id="org.eclipse.osgi.source"/>
 <plugin id="org.eclipse.osgi.services"/>
 <plugin id="org.eclipse.rap.ui.views.source"/>
 <plugin id="org.eclipse.rap.ui.workbench"/>
 <plugin id="org.eclipse.rap.ui.workbench.source"/>
-<plugin id="org.eclipse.swt"/>
-<plugin id="org.eclipse.ui"/>
-<plugin id="org.eclipse.ui.source"/>
-<plugin id="org.eclipse.ui.workbench"/>
-<plugin id="org.eclipse.ui.workbench.source"/>
 <plugin id="com.springsource.junit"/>
 <plugin id="com.springsource.junit.source"/>
 <plugin id="org.mortbay.jetty.server"/>
index 616858a02618a13b1e84bcae9b61842769148980..bfb57b475d2367b1dda8a804006ff5755a7983e4 100644 (file)
@@ -23,9 +23,9 @@ public class RapSecureWorkbenchWindowAdvisor extends
                configurer.setTitle("Argeo Secure UI"); //$NON-NLS-1$
                // Full screen, see
                // http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg02697.html
-//             configurer.setShellStyle(SWT.NONE);
-//             Rectangle bounds = Display.getDefault().getBounds();
-//             configurer.setInitialSize(new Point(bounds.width, bounds.height));
+               configurer.setShellStyle(SWT.NONE);
+               Rectangle bounds = Display.getDefault().getBounds();
+               configurer.setInitialSize(new Point(bounds.width, bounds.height));
        }
 
 }
index cc494485e32e713832932c30872b569c78534db8..a426d4579bc009ae3e1a1d579940d685ef580b95 100644 (file)
@@ -7,14 +7,10 @@ import javax.security.auth.Subject;
 import org.argeo.security.equinox.CurrentUser;
 import org.eclipse.equinox.app.IApplication;
 import org.eclipse.equinox.app.IApplicationContext;
-import org.eclipse.swt.graphics.Point;
 import org.eclipse.swt.widgets.Display;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.application.ActionBarAdvisor;
-import org.eclipse.ui.application.IActionBarConfigurer;
 import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
-import org.eclipse.ui.application.WorkbenchAdvisor;
 import org.eclipse.ui.application.WorkbenchWindowAdvisor;
 
 public class SecureRap implements IApplication {
@@ -64,39 +60,10 @@ public class SecureRap implements IApplication {
                });
        }
 
-       class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
-
-               private static final String PERSPECTIVE_ID = "org.argeo.security.ui.securityPerspective";
-
+       class ApplicationWorkbenchAdvisor extends SecureWorkbenchAdvisor {
                public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
                                IWorkbenchWindowConfigurer configurer) {
-                       return new ApplicationWorkbenchWindowAdvisor(configurer);
-               }
-
-               public String getInitialWindowPerspectiveId() {
-                       return PERSPECTIVE_ID;
-               }
-       }
-
-       class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
-
-               public ApplicationWorkbenchWindowAdvisor(
-                               IWorkbenchWindowConfigurer configurer) {
-                       super(configurer);
-               }
-
-               public ActionBarAdvisor createActionBarAdvisor(
-                               IActionBarConfigurer configurer) {
-                       return new ActionBarAdvisor(configurer);
-               }
-
-               public void preWindowOpen() {
-                       IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
-                       configurer.setInitialSize(new Point(500, 300));
-                       configurer.setShowCoolBar(false);
-                       configurer.setShowMenuBar(false);
-                       configurer.setShowStatusLine(false);
-                       configurer.setTitle("Equinox Security on RAP");
+                       return new RapSecureWorkbenchWindowAdvisor(configurer);
                }
        }