Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Exception when extending a VE component
Exception when extending a VE component [message #616418] Fri, 31 August 2007 15:36
Krishna Vedula is currently offline Krishna Vedula
Messages: 10
Registered: July 2009
Junior Member
Hello All,
I am trying to extend VE to build GWT project. I have created a Label that creates a GWT label and the EditPart displays a draw2d.Label. When I create an instance of the label i get the following error

java.lang.ClassCastException: org.eclipse.ve.internal.cde.emf.EMFAnnotationLinkagePolicy
at org.eclipse.ve.internal.cde.core.AnnotationPolicy$Annotation Listener. <init>(AnnotationPolicy.java:319)
at org.eclipse.ve.internal.cde.core.VisualInfoPolicy$VisualInfo Listener. <init>(VisualInfoPolicy.java:144)
at org.eclipse.ve.internal.cde.core.VisualInfoXYLayoutEditPolic y$1. <init>(VisualInfoXYLayoutEditPolicy.java:357)
at org.eclipse.ve.internal.cde.core.VisualInfoXYLayoutEditPolic y$VisualConstraintRefreshPolicy.activate(VisualInfoXYLayoutE ditPolicy.java:357)
at org.eclipse.gef.editparts.AbstractEditPart.installEditPolicy (AbstractEditPart.java:641)
at org.eclipse.ve.internal.cde.core.VisualInfoXYLayoutEditPolic y.decorateChild(VisualInfoXYLayoutEditPolicy.java:454)
at org.eclipse.gef.editpolicies.LayoutEditPolicy$1.childAdded(L ayoutEditPolicy.java:78)
at org.eclipse.gef.editparts.AbstractEditPart.fireChildAdded(Ab stractEditPart.java:375)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:202)
at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
at org.eclipse.ve.internal.java.core.CompositionComponentsGraph icalEditPart.access$0(CompositionComponentsGraphicalEditPart .java:1)
at org.eclipse.ve.internal.java.core.CompositionComponentsGraph icalEditPart$2.doRun(CompositionComponentsGraphicalEditPart. java:82)
at org.eclipse.ve.internal.cde.core.EditPartRunnable.run(EditPa rtRunnable.java:43)
at org.eclipse.ve.internal.cde.core.ModelChangeController$1$Saf eRunnable.run(ModelChangeController.java:449)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ve.internal.cde.core.ModelChangeController.execu teAsyncRunnables(ModelChangeController.java:466)
at org.eclipse.ve.internal.cde.core.ModelChangeController.trans actionEnded(ModelChangeController.java:415)
at org.eclipse.ve.internal.cde.core.ModelChangeController.doMod elChanges(ModelChangeController.java:253)
at org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorCommandStack.execute(JavaVisualEditorCommandStack.java:5 2)
at org.eclipse.gef.tools.AbstractTool.executeCommand(AbstractTo ol.java:388)
at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(Abs tractTool.java:400)
at org.eclipse.gef.tools.CreationTool.performCreation(CreationT ool.java:254)
at org.eclipse.gef.tools.CreationTool.handleButtonUp(CreationTo ol.java:178)
at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java :1053)
at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:259)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouse Released(DomainEventDispatcher.java:374)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(Li ghtweightSystem.java:538)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:137)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

When I put a breakpoint in the code, I see that the AnnotationPolicy is looking for "GenericAnnotationLinkagePolicy" and is getting a "org.eclipse.ve.internal.cde.emf.EMFAnnotationLinkagePolicy" class. why is this happening? Why am getting errors in the "cde" packages? I thought these are for "c" development.

Thank you
Krishna
Previous Topic:Visual Editor for GWT
Next Topic:Migrate to VE from plan Swing
Goto Forum:
  


Current Time: Mon Sep 15 02:17:29 GMT 2014

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

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