Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Thanks for Jet Editor(JET Editor)
Thanks for Jet Editor [message #1818607] Fri, 20 December 2019 12:34 Go to next message
Scott Dybiec is currently offline Scott DybiecFriend
Messages: 148
Registered: July 2009
Senior Member
Ed Merks,

Just wanted to thank you for the JET Editor you created. I've been using it for a couple weeks now, and it's a huge help!

Scott Dybiec
Re: Thanks for Jet Editor [message #1818616 is a reply to message #1818607] Fri, 20 December 2019 16:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30896
Registered: July 2009
Senior Member
You're welcome, and hank you for saying thank you. One never knows what people actually use, at least until they complain about it. So it's very refreshing to get a thank you instead of a complaint.
Re: Thanks for Jet Editor [message #1818766 is a reply to message #1818616] Fri, 27 December 2019 17:54 Go to previous messageGo to next message
Scott Dybiec is currently offline Scott DybiecFriend
Messages: 148
Registered: July 2009
Senior Member
It must have been pretty complex to implement this JETEditor. Nice work.

One bit of feedback. After I've opened and closed a number of .javajet files, the JETEditor stops accepting input and won't open new files. The only way I've found to get it to work again is by restarting my Eclipse workspace. But at that point Eclipse won't close using Exit or Restart, so I need to kill the Eclipse process manually. No error message, but here's what I see in the log file:

ava.lang.StackOverflowError
at org.eclipse.emf.codegen.presentation.JETEditor$JETDocumentManager.getDocument(JETEditor.java:2567)
at org.eclipse.emf.codegen.presentation.JETEditor$JETDocumentManager.getEditorInput(JETEditor.java:2660)
at org.eclipse.emf.codegen.presentation.JETEditor.getEditorInput(JETEditor.java:435)
at org.eclipse.emf.codegen.presentation.JETEditor$JETDocumentManager.getEditorInput(JETEditor.java:2661)
at org.eclipse.emf.codegen.presentation.JETEditor.getEditorInput(JETEditor.java:435)
at org.eclipse.emf.codegen.presentation.JETEditor$JETDocumentManager.getEditorInput(JETEditor.java:2661)
at org.eclipse.emf.codegen.presentation.JETEditor.getEditorInput(JETEditor.java:435)
at org.eclipse.emf.codegen.presentation.JETEditor$JETDocumentManager.getEditorInput(JETEditor.java:2661)
at org.eclipse.emf.codegen.presentation.JETEditor.getEditorInput(JETEditor.java:435)
at org.eclipse.emf.codegen.presentation.JETEditor$JETDocumentManager.getEditorInput(JETEditor.java:2661)
at org.eclipse.emf.codegen.presentation.JETEditor.getEditorInput(JETEditor.java:435)
at org.eclipse.emf.codegen.presentation.JETEditor$JETDocumentManager.getEditorInput(JETEditor.java:2661)

[Updated on: Fri, 27 December 2019 17:57]

Report message to a moderator

Re: Thanks for Jet Editor [message #1818781 is a reply to message #1818766] Sat, 28 December 2019 07:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30896
Registered: July 2009
Senior Member
I can't reproduce that but I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=558657 and committed a fix (more of a hack really) to prevent such an overflow. You can update to this build and see if that addresses the problem:

http://download.eclipse.org/modeling/emf/emf/builds/nightly/latest

And yes, this was super complex to implement. The code that's overflowing is there because the JET editor edits multiple documents (because it must support JET includes which can even include the same template more than once, each of which is in a different context where the variables in the Java code could resolve to different variables declared in that context) and hence there are multiple editor inputs involved. The context menu must of course be for the document/editor input of the current document which might well be different from the editor input (root template) of the overall editor. The Eclipse frameworks are not well designed to support this use case, and we must leverage the Java Editor which is most certainly not designed for such a use case.

If you experience other problems, please open a Bugzilla, ideally with a sample (or steps) that reproduces it.
Re: Thanks for Jet Editor [message #1821611 is a reply to message #1818781] Mon, 17 February 2020 10:47 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 312
Registered: December 2015
Senior Member
Hey so where can I find this new JET Editor? Would like to check it out :)
Re: Thanks for Jet Editor [message #1821615 is a reply to message #1821611] Mon, 17 February 2020 12:30 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30896
Registered: July 2009
Senior Member
It's in the most recent release. It will be available in you have the EMF Code Generation UI feature installed (or something that includes it such as the EMF SDK). Quite shockingly, I even wrote documentation:

https://help.eclipse.org/2019-12/index.jsp?topic=%2Forg.eclipse.emf.doc%2Ftutorials%2Fjet%2Fjet.html
Re: Thanks for Jet Editor [message #1821616 is a reply to message #1821611] Mon, 17 February 2020 12:35 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6588
Registered: July 2009
Senior Member
Hi

It's in org.eclipse.emf.codegen.ui which can be installed from "2019-12 - http://download.eclipse.org/releases/2019-12" after unchecking "Group items by category".

But if you've already installed the EMF SDK, you should already have the JET editor.

Open With... any file and search down the Other... editors; JET Editor should be there.

Regards

Ed Willink
Previous Topic:How to refer two different meta models (like autosar422 and 446)in one project
Next Topic:[CDO] Possibly deadlock during the session invalidation
Goto Forum:
  


Current Time: Fri Feb 21 19:19:24 GMT 2020

Powered by FUDForum. Page generated in 0.02074 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top