rrgonzalez1992 / gmftools

Automatically exported from code.google.com/p/gmftools
0 stars 0 forks source link

GMF Tools put Workbench in a state with no active window #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run GMF Tools
2. Follow http://code.google.com/p/gmftools/wiki/Examples

What is the expected output? What do you see instead?
Processing model/Entity.gmfmap throws an error "Failed to execute item
null". Details show this backtrace:

org.eclipse.core.commands.ExecutionException: No activeWorkbenchWindow
found while executing de.itemis.gmf.tools.commands.generatePredefined
    at org.eclipse.ui.handlers.HandlerUtil.noVariableFound(HandlerUtil.java:40)
    at org.eclipse.ui.handlers.HandlerUtil.getVariableChecked(HandlerUtil.java:89)
    at
org.eclipse.ui.handlers.HandlerUtil.getActiveWorkbenchWindowChecked(HandlerUtil.
java:210)
    at
de.itemis.gmf.tools.contribution.GMFToolsHandler.execute(GMFToolsHandler.java:53
)
:

After processing model/Entity.gmfmap the Workbench has no acitve window
anymore. Selecting any workbench part does not really activate it. You need
the move the mouse out of the main Eclipse window, activate some other
application window and then get back to Eclipse.

What version of the product are you using? On what operating system?
de.itemis.gmf.tools r183
de.itemis.gmf.tools.m2t r136
Eclipse Galileo Version: 3.5.2, Build id: M20100211-1343
Host: Ubuntu 9.10

Please provide any additional information below.

Original issue reported on code.google.com by marius.g...@googlemail.com on 26 May 2010 at 11:03

GoogleCodeExporter commented 9 years ago
Sounds pretty bad. Unfortunately, it is not reproducible here, but I haven't 
got a
Linux box at hand.

* Which version of GMF are you using?
* Does it still happen with the HEAD revision of GMFTools?
* Does it work if you follow the plain GMF procedure, i.e. generate the gmfgen 
from
the gmfmap model and the diagram plugin from the gmfgen model using the context 
menu
actions?

Can you try to debug that to give us a hint what could go wrong? 
1) Import the source code of de.itemis.gmf.tools and de.itemis.gmf.tools.m2t 
into
your workspace
2) Set a breakpoint in
de.itemis.gmf.tools.contribution.GMFToolsHandler.execute(ExecutionEvent)
3) Start a new runtime workbench by right-clicking one of these projects and
selecting "Debug as->Eclipse application"
4) Import the de.itemis.gmf.tools.example, de.itemis.gmf.runtime.extensions, and
de.itemis.gmf.tools.example.entity.edit into the new workspace
5) Follow the steps as described in the Wiki and debug until it fails.

Original comment by jan.koeh...@gmail.com on 27 May 2010 at 8:39

GoogleCodeExporter commented 9 years ago
I cannot confirm this bug on a Kubuntu 10.04.
I'm not sure what exact Eclipse package was used by M. Groeger as the latest 
downloadable official Galileo states "20100218-1602" contrary to the on 
mentioned in 
the bug report (M20100211-1343).

I tried to reproduce using:
Sun JDK 1.6.0_12-b04
eclipse-modeling-galileo-SR2-incubation-linux-gtk.tar.gz (Build id: 
20100218-1602)
de.itemis.gmf.tools r183
de.itemis.gmf.tools.m2t r136
The bug described above does NOT occur.

Original comment by rob...@rowlo.de on 27 May 2010 at 5:21

GoogleCodeExporter commented 9 years ago
Robert, thanks for testing this. AFAICT these are the differences in our setups:

Ubuntu 9.10 vs Kubuntu 10.04

eclipse-modeling-galileo-SR2-incubation-linux-gtk.tar.gz (Build id: 
20100218-1602)
vs
eclipse-SDK-3.5.2-linux-gtk.tar.gz + prerequisit plugins in dropins/

Sun JDK 1.6.0_12-b04 vs openjdk-6-jdk 6b16-1.6.1-3ubuntu3

At this time, its probably not worth it trying to debug this issue. At least 
not as
long as we get more confirmations.

For documentation purposes and to give other victims a chance to hook up I 
suggest to
leave this PR open for just a little while longer.

Original comment by marius.g...@googlemail.com on 28 May 2010 at 4:46