-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration between Che and diagram drawing library JointJS #3639
Comments
@alortsoc - very helpful description. @vzhukovskii @dkuleshov - would be nice for you to investigate. |
@TylerJewell the issue must have been lost in a pile of kind/questions. Do you want this to be investigated? |
Let's see if Alberto still wants this pursued. It is over a month old. |
Hi all. I have moved to version 5.2.2 of Che. Same issue, reproducible in the same way described in my previous comment Although for my proof of concept I have moved on with GoJS instead of JointJS, I still feel this issue is topical because the following reasons:
Related with the proof of concept I am developing, I have a question related with the LanguageServer editor provided by Che: issue #4188 Thanks, |
@eivantsov - let's ask a support engineer to perform formal investigation for this issue. |
@alortsoc can you share source code of your assembly? |
Source code of my extension is available in my first comment. Assembly code has not been changed (only pom files & IDE.gwt.xml to add the extension as explained in Che documentation), I attach those source files too. Thanks, |
Hi @alortsoc
Considering It looks like your script doesn't want to work with IDE javascipt, so it is can not be loaded in the main frame. Now I'm still playing with your extension. There is a little problem with accessing javascript in iframe from the parent frame. I will solve this problem and give you the result. |
@vitaliy-guliy Thank you very much 👍 I need to access javascript from my GWT code because I am interested in the library events (which would cause GWT invocation from javascript). So, I will look forward to hearing from you! |
Hi @vitaliy-guliy , I've a similar problem (with che 5.2.2), have you already find a solution ? |
Hi @vitaliy-guliy , I tried to integrate the extension che-graphic-editor-extension.tar.gz. log file : _.Cn @ _app-0.js:505 |
Hi.
I am trying to build a simple graphic modelling editor integrated with Che, and in order to do that, I am using JavaScript libraries and integrating them as shown in the sample che-sample-plugin-embedjs-ide (exposed in Che documentation) or in this EMF plugin implemented by EclipseSource.
The library selected to do that was JointJS a JS library with an easy way to draw several kind of diagrams (in particular I am focused in UML diagrams). So, I have built a small Che extension that draws a static UML diagram through an action (as in the sample che-sample-plugin-embedjs-ide). Code of this extension is attached.
But when doing the integration with Che, I am finding issues. The diagram is not drawn and an error indicating that a basic object is not defined is raised.
JointJS (version 1.0.3) depends on other 3 JavaScript libraries:
In the code supplied, JS dependencies are included in the same JavaScript file (to ease its loading with GWT). As shown in the Expected behavior section, they work fine.
My main idea with this issue is to discard "easy" things that perhaps I am missing...
Reproduction Steps:
Expected behavior:
An UML diagram is drawn. An example of this behavior can be watched in:
1.Replace the value of the constant JS_RESOURCE in Java interface JavaScriptResource by the commented value
2.In the Java class JointEditorViewOverlay, replace the JavaScript invocation for JointJS by the one for GoJS (available in the comment located above class definition). The result can be seen in the attached snapshot
Observed behavior:
Nothing is drawn and following error can be seen in browser logs:
The error indicates that the basic object of JointJS library is not defined. Typically, this suggests that some dependency is missing but as shown in the HTML page testUML.html pointed above, the Javascript provided apparently is working fine.
Che version: 5.0.0-M7
OS and version: Ubuntu 16.04 (Linux kernel 4.4.0-57-generic)
Docker version: 1.12.5
Che install: Native server from Eclipse Che version 5.0.0-M7 compilation (as explained here)
Additional information:
Attachments
Thank you very much for your help,
Best Regards,
Alberto.
che-graphic-editor-extension.tar.gz
The text was updated successfully, but these errors were encountered: