Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » can't open GMF Editor after adding Audit Rules to mapping model since using Galileo
can't open GMF Editor after adding Audit Rules to mapping model since using Galileo [message #234826] Mon, 29 June 2009 08:31 Go to next message
Eclipse UserFriend
Originally posted by: rene.boettge.gmx.net

Hi,

I'm new to EMF and GMF and I did the GMF Mindmap Example and I'm working
with the book "Eclipse Modeling Project - A DSL Toolkit"

Everything was fine with Audit Rules as long I was using Ganymede. Last
week I installed Galileo (Modeling version) and after regeneration of
the editor with audit rules nothing works - I can't open my GMF Editor
because of the following exception

Can anybody give me a hint how to solve?

I created already a new(very simple) project in Galileo - running
without audit rules works fine...but not with them :-(

Thanks in advance!

René

org.eclipse.ui.PartInitException: No editor descriptor for id
wurst.diagram.part.MyDiagramEditorID
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:598)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
at
org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at
org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Re: can't open GMF Editor after adding Audit Rules to mapping model sinceusing Galileo [message #234833 is a reply to message #234826] Mon, 29 June 2009 11:25 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello René,

> org.eclipse.ui.PartInitException: No editor descriptor for id
> wurst.diagram.part.MyDiagramEditorID
Well, it looks like it was not possible to load generated DiagramEditor class.
Usually this means that diagram editor plugin was unloaded due to not satisfied
dependencies of this plugin or one of the used plugins. Can you please check
if there any other messages in the log concerning incorrectly specified dependencies/not
existing plugins?

And if it is possible to reproduce this problem with simple diagram (and
you have full GMF + GMF dependencies installation) then you can file bugzilla
request – it looks like a bug.

-----------------
Alex Shatalin
Re: can't open GMF Editor after adding Audit Rules to mapping model sinceusing Galileo [message #234841 is a reply to message #234833] Mon, 29 June 2009 13:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rene.boettge.gmx.net

thanks alex

there was another exception in the log file after the PartInitException
(see below)

you can reproduce this exception only if you were able to open the GMF
Editor once(before generation with an audit rule) then you have to close
eclipse, regenerate with an audit rule and run eclipse - then you can
see the exception
you won't get this exception if you closed the editor before closing
eclipse because in the menu there is no entry to create a new diagram
for the genrated GMF editor(it disappeared during regeneration)
it is also impossible to open an existing diagram with the generated
editor (this entry is missing, too)

shall I create a bugzilla request?


org.eclipse.core.runtime.AssertionFailedException: unknown saveable:
org.eclipse.ui.internal.DefaultSaveable@1cb0a16 from part:
org.eclipse.ui.internal.ErrorEditorPart@1cb0a16
at org.eclipse.ui.internal.SaveablesList.logWarning(SaveablesLi st.java:187)
at org.eclipse.ui.internal.SaveablesList.addModel(SaveablesList .java:117)
at org.eclipse.ui.internal.SaveablesList.addModels(SaveablesLis t.java:289)
at org.eclipse.ui.internal.SaveablesList.postOpen(SaveablesList .java:684)
at org.eclipse.ui.internal.PartList.partOpened(PartList.java:23 4)
at org.eclipse.ui.internal.PartList.access$0(PartList.java:210)
at org.eclipse.ui.internal.PartList$1.propertyChanged(PartList. java:40)
at
org.eclipse.ui.internal.WorkbenchPartReference.fireInternalP ropertyChange(WorkbenchPartReference.java:375)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:610)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:271)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1417)
at
org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:942)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at
org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3476)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


Alex Shatalin schrieb:
> Hello René,
>
>> org.eclipse.ui.PartInitException: No editor descriptor for id
>> wurst.diagram.part.MyDiagramEditorID
> Well, it looks like it was not possible to load generated DiagramEditor
> class. Usually this means that diagram editor plugin was unloaded due to
> not satisfied dependencies of this plugin or one of the used plugins.
> Can you please check if there any other messages in the log concerning
> incorrectly specified dependencies/not existing plugins?
> And if it is possible to reproduce this problem with simple diagram (and
> you have full GMF + GMF dependencies installation) then you can file
> bugzilla request – it looks like a bug.
>
> -----------------
> Alex Shatalin
>
>
Re: can't open GMF Editor after adding Audit Rules to mapping modelsinceusing Galileo [message #234852 is a reply to message #234841] Mon, 29 June 2009 16:50 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello René,

It looks like generated diagram editor plugin was disabled (possible reason
- one of required plugins was not found).
Can you please compare MANIFEST.MF file generated by GMF with- and without-
Audit Rules?
Is there any differences?

> shall I create a bugzilla request?
If you are sure you have all necessary plugins installed then it's clear
- file a request with simple project attached.

-----------------
Alex Shatalin
Re: can't open GMF Editor after adding Audit Rules to mapping modelsinceusing Galileo [message #234857 is a reply to message #234852] Mon, 29 June 2009 18:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rene.boettge.gmx.net

Hello Alex,

thanks a lot and sorry for wating your time!

It was my fault, you were right that a plugin was missing.

I configured my run configurations to load only required plugins because
I have just 1GB RAM in my notebook and got always a permGen space error
even when I tried to start the VM with -Xmx768M
....I selected "required plugins" before generating the graphical editor
so that obviously at least one was missing :-(

Thanks a lot!
René

Alex Shatalin schrieb:
> Hello René,
>
> It looks like generated diagram editor plugin was disabled (possible
> reason - one of required plugins was not found).
> Can you please compare MANIFEST.MF file generated by GMF with- and
> without- Audit Rules?
> Is there any differences?
>
>> shall I create a bugzilla request?
> If you are sure you have all necessary plugins installed then it's clear
> - file a request with simple project attached.
>
> -----------------
> Alex Shatalin
>
>
Re: can't open GMF Editor after adding Audit Rules to mapping modelsinceusingGalileo [message #234889 is a reply to message #234857] Tue, 30 June 2009 10:51 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello René,

> even when I tried to start the VM with -Xmx768M
Try using -Xms128m -Xmx256m -XX:MaxPermSize=128m

Last parameter is one for increasing permGen size.

-----------------
Alex Shatalin
Previous Topic:need help on GMF graphic definition, how to add a vertical line in a rectangle?
Next Topic:How to add a menu item on the context menu
Goto Forum:
  


Current Time: Sat Apr 04 21:56:12 GMT 2020

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

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

Back to the top