Skip to main content



      Home
Home » Eclipse Projects » GEF » GefDescription2 class diagram example
GefDescription2 class diagram example [message #168757] Fri, 18 February 2005 12:03
Eclipse UserFriend
Hello!

I have a problem running the class diagram exmple that is available at
http://eclipsewiki.editme.com/GefDescription2

In particular I talk about the file at
http://eclipse-wiki.info/files/GefDescription/plugin.1.zip
that you can download through link
"plugin ( plug in + projet + pdf and word tutorial in french)" at the
(almost) bottom of page http://eclipsewiki.editme.com/GefDescription2

I'm using Eclipse3.1M4 + GEF 3.1.0. I can compile the the plugin, run
the runtime workbench (the plugin is loaded). When I create the empty
file with extension "truc" and double click it I get the
java.lang.IllegalArgumentException exception (the full exception stack
trace is at the end of mail).

Do you also observe the same bahaviour?
Is it because my file empty.truc is empty?
Do you have working *.truc file (Google fails to find it)?
Is there other way to run the editor? (There is no entry in File|New menu)

Many thanks for you confirmation (and hints),
Ondrej





org.eclipse.core.runtime.CoreException[1]:
java.lang.IllegalArgumentException: This container can not contain this
type of child: $Palette Tool
at org.eclipse.gef.palette.PaletteContainer.add(PaletteContaine r.java:77)
at org.eclipse.gef.palette.PaletteContainer.add(PaletteContaine r.java:67)
at rlemaigr.classdiagrameditor.MyEditor.getPaletteRoot(MyEditor .java:42)
at
org.eclipse.gef.ui.parts.GraphicalEditorWithPalette.setEditD omain(GraphicalEditorWithPalette.java:134)
at rlemaigr.classdiagrameditor.MyEditor.<init>(MyEditor.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknow n Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Un known
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:171)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:151)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:138)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:203)
at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.ja va:909)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:747)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:907)
at
org.eclipse.ui.internal.EditorManager.openInternalEditor(Edi torManager.java:893)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:651)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:637)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2207)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2139)
at org.eclipse.ui.internal.WorkbenchPage.access$5(WorkbenchPage .java:2131)
at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.ja va:2117)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2112)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2097)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu. java:276)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.ja va:268)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMe nu.java:176)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:2803)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2448)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1569)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1540)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:285)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:102)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:220)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:129)
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.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:710)
at org.eclipse.core.launcher.Main.main(Main.java:694)
Previous Topic:question about connection anchors and routers
Next Topic:CellEditorValidator Question
Goto Forum:
  


Current Time: Sat Jun 14 14:09:58 EDT 2025

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

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

Back to the top