I am trying to create an application using SWT Browser. Is it possible to integrate Google Chrome as browser into Eclipse (not as external web browser)?
No, as of current stable release of google chrome, you cannot use it inside SWT. The reason is that google chrome (and essentially chromium) doesn't support ActiveX (like IE, Firefox, Safari etc) but is based on NPAPI. (Note: I am considering that you are working on Windows machine as you haven't mentioned in your question !!)
But there are projects which are trying to make an embeddable version of chromium. See these links:
Chromiumembedded
Is Google Chrome embeddable?
You can set it through Eclipse UI.
Goto : Window > Preferences > General > Web Browser
Select "Use External Browser" radio button
Click "New" button to add a new browser eg. Chrome !
Click Apply + Ok
... and you have it working !
Bug 405031 - [Browser] implement Chromium support
https://bugs.eclipse.org/bugs/show_bug.cgi?id=405031
If you can not make it through UI, Try to edit settings in the following file.
YOUR-WORKSPACE\.metadata\.plugins\org.eclipse.core.runtime\.settings there will be a file called org.eclipse.ui.browser.prefs open it with any text editor and change the appropriate values, It is self descriptive you can easily find out what to change and all. Have a back up of the same before you modify.
Hope this helps you.
EDIT: Restart your eclipse to effect the above change.
To integrate Chromium into Eclipse or SWT applications you can use https://github.com/equoplatform/chromium-swt.
Related
I am using selenium webdriver to automate my application , using firefox and chrome as two browser. My application require Gemsafe software support, due to this a popup is appearing on when I am launching the application just below the the address bar, text is “Allow and don’t allow”. I am not able to handle this popup. Can anyone know help me out on this ?
I'm not sure but I think this is the small yellow toolbar right below the address bar that is warning you that Gemsafe, etc. needs to be enabled on the site and prompts the customer to Allow or not.
If so, this is not part of the HTML of the page and cannot be interacted with using Selenium. The simple way to determine this is to right-click on the "popup" and see if you can Inspect Element, etc. If not, it's part of the browser and can't be accessed using Selenium.
I would recommend that you set each browser up in such a way (before the tests) that the Gemsafe software support is already set up. I think a customer would only have to click Allow once for a site, just do that on each supported browser (sounds like only Chrome and FF). There may be some browsers where additional setup is required to permanently allow this. You will have to do research for those browsers.
I work on Eclipse Luna on my windows 7, the java version insatlled on the computer itself is up to date.
I build some simple JApplet to see how it runs on an html page in my computer. I mean not through
'run as applet' in eclipse, rather on a real html page.
But I can not run it due to the restriction - "Application blocked by java security". How can I see it? do I must get certificate for just simple trial?
If yes, how to do it with eclipse? Is it a short procedure? Can I see the applet runs without it?
Thanks in advance, Liron
Are you sure that you have enabled Java for your web browsers? Here are instructions for Internet Explorer:
Click Tools and then Internet Options
Select the Security tab, and select the Custom Level button
Scroll down to Scripting of Java applets
Make sure the Enable radio button is checked
Click OK to save your preference
I am a newbie evaluating wicket framework for development and I have encountered a problem while trying to implement the Browser BackButton support feature of wicket.
After reading the documentation and forum discussions on the same topic I tried to put my components and everything in a form and used the -
form.setVersioned(true);
for enabling the Browser BackButton Support.
This works fine for Mozilla Firefox. However, the Back Button of Chrome and Internet Explorer fails to deliver the same functionality. This issue has created concern in my further exploration of wicket. Please help.
probably it is not about serVersioned(true) that is in most cases true by default. The most important thing is to call modelChanging() and modelChanged() methods to notify Wikcet about changes.
See https://cwiki.apache.org/WICKET/browser-back-forward.html
On my android phone I launch an standard browser, after enter my URL www.example.com and press open. I need some ways to determine if I have installed on my phone for example MYAPP, must I write an plugin for my Android browser or may be I must add some java functionality to my web site or maybe something else ?
I need some information, articles or something else of how can I do that, every kind of information will be helpful.
#Aleks G is correct, you cannot do this. However, you can make your app so that it will open when your web page is opened, given that it is already installed.
See here: Launch custom android application from android browser
- I don't think that what you want to do is possible...
- Yet you can use BroadCast-Receiver to determine when you browser opened and then you can launch your app if its installed..
- Another way to manually check, that whether you app has been installed or not, please check the Manage Application from Application, under Setting.
When using Run As -> Web Application for a GWT app in STS, a Development Mode view is opened that contains a clickable link that in turn opens a browser and tests the GWT app...
What are the rules behind changing code while the code is running in the Development Mode. Does the Development Mode reflect these changes? Do you always have to terminate and restart Development Mode?
Any tips for how to speed up the loading of the link in Development Mode?
I would pose the same questions for Debug As -> Web Application.
Thanks!
The answer really depends on if you are running with "Debug As" or not. Actually, the whole topic is a little bit more complex (differentiating between server side/client side code, restarting vs refreshing vs reloading, ...), and instead of repeating myself, I will just provide you with a link to my answer here.
Note: The Google Plugin/GWT SDK behavior isn't specific to STS.
No, you don't have to restart. Just saving the files is sufficient. Another way to develop is to debug as a GWT app and then open the hosting html/jsp page in a browser and add the &gwt.codesvr=9997 at the end of the URL.