Sharing Single Editing Domain in GMF [message #147809] |
Fri, 24 August 2007 18:11  |
Eclipse User |
|
|
|
Using the GMF_Tips from the wiki.eclispe.org/GMF_Tips.
I implemented the shared doiman example. When I added an Element to the
canvas now I get a stack overflow because the
CreateElementCommand.doExecuteWithResult recursive calls itself.
Has anyone experienced the same problem or is this a know issue.
Gary
|
|
|
|
|
|
|
|
Re: Stack Overflow When Sharing Single Editing Domain in GMF [message #155376 is a reply to message #153901] |
Mon, 15 October 2007 10:22   |
Eclipse User |
|
|
|
Originally posted by: r.c.ladan.tue.nl
Nicolai Kamenzky wrote:
> Hi Gary, Greg, Renee, Volker!
>
> I have posted this in the thread "Stack Overflow When Sharing
> Single Editing Domain in GMF" before.
>
> Its just an idea. But you need just < 5 minutes to try this:
>
> In step 8 of:
> < http://wiki.eclipse.org/GMF_Tips#Sharing_single_EditingDomai n_instan
>> ce_across_several_diagrams
>
> you altered ???DocumentProvider.createEditingDomain().
>
The same problem is present with a completely generated MODEL.diagram editor.
> The id "org.eclipse.gmf.ecore.editor.EditingDomain" is used
> to indicate your EditingDomain.
>
No, this string is not present in the generated source code.
> Please replace both occurences in the altered code with your
> actual id of your EditingDomain which you set in step 6.
> (Which would be "SharedEditingDomain".) Do this for every editor.
>
I didn't find any occurrences of "SharedEditingDomain", there is
an instance of createEditingDomain in MODEL.part.MODELDocumentProvider
(declared as private TransactionalEditingDomain)
> Does the StackOverflowError still occur? If not, do your editors
> now work properly while sharing their EditingDomain?
>
Well, actually there is a recoverable error on startup :
java.lang.NoClassDefFoundError: org/atl/engine/extractors/ebnf/EBNFExtractor
at org.eclipse.gmt.am3.dsls.km3.Startup.earlyStartup(Startup.ja va:12)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup (EarlyStartupRunnable.java:87)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartu pRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190 )
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
but this is unrelated to the main issue. As stated in comment #20 of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=189399 , added elements are
created infinitely by the GMF editor. After adding 420-425 elements, the
editor 'crashes' the stack overflow exception. The GMF editor can be used
again after closing and reopening the file. If this file is saved after
adding the element, all 420 elements are visible upon reopening.
Eclipse 3.4.0 I20070921-0919
EMF 2.3.0 I20070925-2135
GEF 3.4.0 20070919
GMF 1.0.0 20070809-0000
Regards,
Rene
|
|
|
Re: Stack Overflow When Sharing Single Editing Domain in GMF [message #157327 is a reply to message #153901] |
Fri, 26 October 2007 14:43  |
Eclipse User |
|
|
|
Originally posted by: trommas.yahoo.com
I am also having these troubles.
I've tried changing the code for both editors createEditingDomain()
methods (using editingDomain.setID("SharedEditingDomain");)
Both editors fail to function. If I try to create something, the editors
hang for half a minute, then nothing appears. When I reopen them, there
are empty model elements there.
Is there any solutions that have come up?
Also, the wiki contains some typos (which makes me unsure of the exact
meaning). So it would be real nice if it got cleaned up together with an
update that prohibits this error :) (I would love to do it, but I don't
have the solution..)
Tomas
Nicolai Kamenzky wrote:
> Hi Gary, Greg, Renee, Volker!
>
> I have posted this in the thread "Stack Overflow When Sharing
> Single Editing Domain in GMF" before.
>
> Its just an idea. But you need just < 5 minutes to try this:
>
> In step 8 of:
> < http://wiki.eclipse.org/GMF_Tips#Sharing_single_EditingDomai n_instan
>> ce_across_several_diagrams
>
> you altered ???DocumentProvider.createEditingDomain().
>
> The id "org.eclipse.gmf.ecore.editor.EditingDomain" is used
> to indicate your EditingDomain.
>
> Please replace both occurences in the altered code with your
> actual id of your EditingDomain which you set in step 6.
> (Which would be "SharedEditingDomain".) Do this for every editor.
>
> Does the StackOverflowError still occur? If not, do your editors
> now work properly while sharing their EditingDomain?
>
> Cheers,
> Nicolai
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04490 seconds