Use external Libs in UI5 Full-stack Webide - sapui5

how i can use the installed libs in my controller in the fullstack webide? whats the path to it? is it even possible? my package-json.lock have the lib. but i cant figure out how to import it in the controller in the define options.
Thanks

Related

How to use external angular modules in own Grafana plugin

I’m developing my datasource plugin based on simple-json. I want to use the library angular-ivh-treeview, but I do not understand how to use it in the plugin. Can someone help me?
To use an external JavaScript lib in a plugin, you have to include it in the plugin code. JavaScript libraries in node_modules are only used at build time and are not included in the output.
To take an example, here is the Plotly panel plugin that includes the Plotly lib in a subdirectory named lib:
https://github.com/NatelEnergy/grafana-plotly-panel/tree/master/src/lib
and then uses it here:
https://github.com/NatelEnergy/grafana-plotly-panel/blob/master/src/module.js#L8
Another example - the GeoLoop plugin that includes the mapboxgl library:
https://github.com/CitiLogics/citilogics-geoloop-panel/blob/master/src/geoloop.js#L3

Plugin to extend import make project into Eclipse CDT

I'm developing using a make based c++ framework and using a custom toolchain.
I know how to setup the include paths so eclipse can discover the libraries and headers of the framework, also properly index and verify the code.
But I'm needing to do this for every project, every time.
So I would like to create a simple plugin so it can import my projects into the workspace using the existent make file import wizard. Then it will set to the imported project the toolchain's and framework associated libraries and include files automatically.
could someone point me to any tutorial or document that would help with that challenge?

Integrating jitsi in java-fx

I am developing an video calling application using javafx. And I need to integrate jitsi video GUI into javafx Swing node.
Is it possible or Do I have to use 'libjitsi' and implement GUI in javafx ?
Any suggestions would be appreciated.
If you're asking about how to embed Swing content into JavaFX, you can use a SwingNode.
It worked for me (I added a Swing PDF player in a JavaFX application)
Here is an example of how to perform this : http://docs.oracle.com/javafx/8/embed_swing/jfxpub-embed_swing.htm
This might be very late but still, I am posting the answer as seems to be a genuine question.
To use JavaFX with jitsi, developing with eclipse steps are as follows.
First, you require to install an addon of JavaFX in eclipse e. g. EFX
After adding above addon add JavaFX SDK to the project. The link: https://www.tutorialkart.com/javafx/install-javafx-in-eclipse-ide/
Then add the package entries to the manifest.mf files {in the package where you are executing} and felix.run.properties file.
And the project will run smoothly. Another thing if using a class with the superclass of Application then keep it in the different jar file add the entries of the jar to the build.xml(in copy jar section) and add the package entries to the manifest.mf files {in the package where you are executing} and felix.run.properties file.

In Eclipse link two dynamic web projects to another project working as a library

Is there a way to split up a Dynamic Web Project in Eclipse into two libraries and link them up properly?
So, I'd like to have a library project and two other applications specific web projects. Both using the library project.
I looked into the "references" option in Eclipse to link projects up but didn't work as intended. I also looked into Web Fragment feature but that didn't let me define servlets which need to be defined in the lib project as well as the servlets will be the same for both projects.
Also, is there a way to overlay content from the lib project by content defined in each project? Example:
-Lib
-WEB-INF
-img.jpg
-AppProjectA (using Lib project)
-WEB-INF
-img.jpg
I'd like to be able to use the Lib project in AppProjectA and replace the img.jpg file imported from the lib project with the one defined in AppProjectA.
I looked into Maven overlay but that's a bit too crazy for what I need to do. I also prefer Ant script over Maven. Any ideas on how to accomplish what I need to do here?
I guess with sufficiently clever Ant you probably can achieve what you want, but I don't know of anything off the shelf. However do you really need to do this? Can you get the level of reuse by just referring to resources from the other web app?
Suppose you deploy them both, each with their own context root.
A page from appA can refer to appB
/appB/imgages/img.jpg
For common code, put it in a library JAR project, packaging the JAR in the root of the EAR, or in WEB-INF/lib of each app.

HttpModule Deployment aka HttpModule Installer

I have been working on a project which partially consists of a HttpModule. I would like to make setup of this HttpModule as simple as possible for admins. Thus, I am seeking any opinion or suggestion of technology/method as to the easiest method of deployment for this HttpModule.
If viewing the code is helpful, it can be found here: http://code.google.com/p/opendms-dot-net/source/browse/#svn%2Ftrunk%2FHttpModule
If your module is supposed to integrate with an existing web application, the simplest thing would probably be to just distribute the assembly and an example web.config, in a zip file. If your project is supposed to be installed as a stand-alone web application, you could create a "Web Setup Project".