JavaFX webview in Arduino ide custom tool - plugins

I am trying to create a Google Blockly tool for the arduino ide. The tool makes it easy for kids to program the Dwenguino microcontroller board by using graphical programming.
I am implementing my tool in Java using the JavaFX WebView. Everyting works fine when i run my tool as a standalone Java application but when I start it through the tools menu in the arduino ide, the WebView is unable to load the linked css and JavaScript files specified in the header of my index.html file.
I should mension that, right now, the html, javascript and css files are included into my .jar file. I do this because I want the users to be able to install the plugin by puting the jar into the right arduino plugin folder.

Related

How to retrieve the source code of the native macOS bundle generated by NetBeans for a JavaFX application?

I have a JavaFX 8 application with a preloader, which works nicely on Windows, Linux and macOS.
I'm currently using NetBeans to package my app into a native macOS bundle, which give me the required folder tree for the application and the embedded JRE, along with a default content for Info.plist and an automatically compiled native executable, which is used to launch my app with the embedded JRE.
The thing is I don't want to be tied to NetBeans to generate this bundle. And the only thing that prevents me to be independent from NetBeans is that automatically compiled native executable, for which I don't have the source code.
I tried to browse NetBeans source code to find how this native executable is generated to no avail. Does anybody have any idea about how it's generated?
If your intention is to cross-package your appliction from Windows to Mac, then I have to disappoint you because this is currently not prossible with the JavaFX packager.

GWT SuperDev - Can't find GWT Modules

I have followed the steps given on this page - getting-started-with-the-superdevmode
but I am still getting message - Can't find any GWT Modules on this page. I did some more googling but could not find any solution until now.
I am using GWT 2.6.1 and eclipse kepler 64 bit on ubuntu.
Here are the steps I did.
Created a new Web app project for GAE, using GWT 2.6.1 and GAE sdk 1.9.6.
Go to Run configurations. Create a new configuration for a "Java Application". Change the main class, Argument and add jar file as shown in the screenshot.
Check the apps .gwt.xml file. It already has <add-linker name="xsiframe"/>. I have tried adding devModeRedirectEnabled property also. It did not help.
GWT compile the project.
Run the application as Web application. Default jetty config serves the application at
http://localhost:8888/SuperDev.html.
I opened up this page in firefox. I can see the page content.
Launch the Java application configuration. It does compile again and gives a success message and tells me to launch
http://localhost:9876/
I opened it in firefox and it shows -
Dragged Dev Mode On to firefox's bookmark. And clicked.
I get the message - Can't find any GWT Modules on this page.
Following are the configurations for my superdev mode java app. Did I miss anything?
You need to click the bookmarklet when viewing your compiled web app.
The last steps should therefore be:
Dragged Dev Mode On to firefox's bookmark.
Switched back to my application at http://localhost:8888/SuperDev.html and clicked the bookmark
Once you have the bookmarklets, you actually don't really need to open http://localhost:9876 anymore (you'll find compile logs there, and can browser your code, including the code generated by GWT generators; so it can still be useful).
I tried to do it with Eclipse Oxygen, Java7 (for run application, for oxygen you have to have java 8), and GWT Eclipse Plugin 3.0.0.
In such an environment all you need to do is:
On project right click > Debug As > GWT Legacy Development Mode with Jetty.
PS:
you have to have address like this
http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997
NOT like :http://127.0.0.1:8888/StockWatcher.html
After openning addres you must additionally install the plugin in the browser - you will be asked for it
It work on IE11

Where did google app engine plugin output the client library to?

Using the Eclipse Google App Engine tool inside the Eclipse IDE I right-clicked on my java project and selected 'Google->Generate Cloud Endpoint Client Library' a progress window appears and closes when done.
Where did google app engine plugin output the client library to?
I was able to read the popup window and the client library is placed in the 'endpoints-libs' folder, which is viewable in the Package Explorer in Eclipse.

How to integrate PyQt designer in Eclipse?

I'm trying to integrate the pydev, pyqt, python and eclipse.
Now the code can be runing without error.
And I know to make the GUI in Qt Designer.
and then modified it in Eclipse.
Now I want to integrate the Qt Designer of PyQt to Eclipse.
Just like the Qt Eclipse Integration for C++.
Use PyQt Designer in Eclipse.
Can anybody teach me how to do it?
Thanks very much!
BTW, I'm try to set the preference of qt project in Eclipse.
But when I add new qt version.I didn't know how to borrow the bin path.
Because there is no bin path in PyQt.And also didn't have qmake,uic,rcc etc.
the version name that I typed is PyQt-Py2.7-x64-gpl-4.8.5-1.exe.
I borrow the include path like C:\python27\Lib\site-packages\PyQt4\Sib\PyQt4.
my OS is win7.
Thanks for your answers!
God bless you!
The only way is to install the Qt Eclipse Integration, that way you can open ui files directly in eclipse.
But this does not work well with plugins and custom widgets, since that requires the exact same Qt version for the Eclipse integration and PyQt (and the same compiler flags..), and that may not be the case.
You could of course build the Qt Eclipse Integration yourself, if it works with the Qt version you're using with PyQt. (it's pre-built for 4.6.1, so it may or may not work with later Qt versions.)
What we've done is to tell Eclipse to open .ui files in Qt Designer outside of Eclipse. Not as nice, but it works with custom widget plugins, so it's a definite win for us.
An easy way to open .ui files generated by Designer is to convert them to python code using "pyuic4" which comes with pyqt. On Windows and Linux (I haven't tested on Mac), open a shell and navigate to the directory containing your .ui file then run the command/flag/args... See example below:
pyuic4 -o newOutputFile.py theOriginalPyQtFile.ui
In the example my input file is called "theOriginalPyQtFile.ui" and the ouput file that will be generated is named "newOutputFile.py" and saved in the same directory as "theOriginalPyQtFile.ui".
After that just open "newOutputFile.py" in Eclipse or any IDE.

need a beginner GWT tutorial to set up & develop a baic web app using eclipse IDE

I need a beginner tutorial OR youtube video tutorial for start developing web applications using GWT with eclipse ide
It is where you would expect it to be: http://code.google.com/webtoolkit/gettingstarted.html
If you are using Eclipse and Google Plugin for Eclipse then use the blue New Web Application Project toolbar button and make sure the "Generate GWT project sample code" checkbox is checked in the New Web Application Project wizard. This produces an absolutely rudimentary GWT app with some widgets and Remote Procedure Calls. You can immediately run it and even use Eclipse debugging tools to see what's going on.