eclipse-rap

Get jetty realm credentials in application

廉价感情. 提交于 2019-12-23 16:41:07
问题 It might be a stupid question but we are using jetty basic authentication on our server. Now we want to use the usercredentials in our application. Is it possible to get the current login in the RAP webapplication? Thanks 回答1: I'm not a RAP expert, but it looks like you want to do this: HttpServletRequest request = RWT.getRequest(); Principal user = request.getUserPrincipal(); 来源: https://stackoverflow.com/questions/7991244/get-jetty-realm-credentials-in-application

How to build and deploy war file of e4 RAP application with tycho

隐身守侯 提交于 2019-12-12 04:23:49
问题 I have an e4 RCP product which I want to deliver a e4 RAP application for. Thus, I added a new OSGi bundle which contributes the following implementation of the org.eclipse.rap.rwt.application.ApplicationConfiguration interface, which is declared in the contribution.xml in OSGI-INF folder: public class BasicApplication implements ApplicationConfiguration { public void configure(Application application) { Map<String, String> properties = new HashMap<String, String>(); properties.put(WebClient

Remove or disable the “X” close button shown on a RAP/RCP EditorPart

99封情书 提交于 2019-12-11 04:01:26
问题 Im working on a RAP application that shows both ViewParts and EditorParts. Im trying to find a way to prevent "All" Editor parts from closing. Is there a way to either remove or disable the "X" close button shown on a Editor part? 回答1: This is possible through implementing a presentation layer - see http://wiki.eclipse.org/RCP_Custom_Look_and_Feel and http://e-rcp.blogspot.ca/2007/09/prevent-that-rcp-editor-is-closed.html. 回答2: you can do like this(what I have written is about the same like

Show local HTML file with JavaScript in SWT Browser widget in RAP

亡梦爱人 提交于 2019-12-09 23:15:44
问题 For my RAP-project I need to show some charts. Because I haven't found any widget for this purpose, my plan was to use the browser widget, so I can use JavaScript-Plugins like Highcharts or Chartsjs. But I can't get it working. If I set an HTML-File in browser.setUrl, the browser widget don't show anything, not even simple HTML. The JavaScript-Console in Chrome says Not allowed to load local resource If I enter the HTML-Code with the setText method it shows the HTML, but JavaScript is not

Eclipse RAP 2.0 application won't start with WebSphere 8.5.5.0

℡╲_俬逩灬. 提交于 2019-12-08 08:56:49
问题 I have an Eclipse RAP application. The web.xml is the following: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0" id="WebApp"> <session-config> <cookie-config> <http-only>true</http-only> </cookie-config> <tracking-mode>COOKIE</tracking-mode> </session-config> <servlet id="bridge">

how to develop, build and deploy multiple OSGi based web applications

北城以北 提交于 2019-12-06 10:45:57
问题 I'm search for a way to develop, build and deploy multiple OSGi based web applications (some RAP). To start I use the RAP examples cloned from: https://github.com/eclipse/rap.git In releng/org.eclipse.rap.examples.build there are three applications which can be built as war files using: mvn clean verify The resulting war files include all the dependencies and the required equinox servletbridge for the OSGi environment. Now I can copy the war files and drop them into the webapps of the

how to develop, build and deploy multiple OSGi based web applications

浪子不回头ぞ 提交于 2019-12-04 17:11:30
I'm search for a way to develop, build and deploy multiple OSGi based web applications (some RAP). To start I use the RAP examples cloned from: https://github.com/eclipse/rap.git In releng/org.eclipse.rap.examples.build there are three applications which can be built as war files using: mvn clean verify The resulting war files include all the dependencies and the required equinox servletbridge for the OSGi environment. Now I can copy the war files and drop them into the webapps of the application server e.g. tomcat: rapdemo.war > http://127.0.0.1:8080/rapdemo/ workbench.war > http://127.0.0.1

Show local HTML file with JavaScript in SWT Browser widget in RAP

拜拜、爱过 提交于 2019-12-04 16:45:00
For my RAP-project I need to show some charts. Because I haven't found any widget for this purpose, my plan was to use the browser widget, so I can use JavaScript-Plugins like Highcharts or Chartsjs. But I can't get it working. If I set an HTML-File in browser.setUrl, the browser widget don't show anything, not even simple HTML. The JavaScript-Console in Chrome says Not allowed to load local resource If I enter the HTML-Code with the setText method it shows the HTML, but JavaScript is not working, it don't load external JS-File like the jQuery-library. Can't this be done this way? Or where is

Eclipse RCP menus & actions: Configure or code?

心不动则不痛 提交于 2019-11-30 03:52:11
This is a general question but my current problem revolves around menu handling. In a normal plugin with contributes menu actions you would configure ActionSets etc in the plugin.xml configuration. This is obviously sensible. I am working on a RCP application (actually RAP) and I'm wondering if it's worth the effort to configure everything via plugin.xml. My plugin does not have to interact with an other unknown plugins so, theoretically, I have control. I can add menus and actions programmatically. I have been trying to configure a menu which contains a submenu. I have tried defining

Eclipse RCP menus & actions: Configure or code?

天涯浪子 提交于 2019-11-29 01:25:19
问题 This is a general question but my current problem revolves around menu handling. In a normal plugin with contributes menu actions you would configure ActionSets etc in the plugin.xml configuration. This is obviously sensible. I am working on a RCP application (actually RAP) and I'm wondering if it's worth the effort to configure everything via plugin.xml. My plugin does not have to interact with an other unknown plugins so, theoretically, I have control. I can add menus and actions