facebook

[Closed] struts-config.xml editor failed

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #241397 Reply

    Michal Kuna
    Member

    Hi,

    Not sure if it’s the right place to post this topic.

    I have made a recent upgrade of myeclipse ide, and found out that, I can’t edit struts-config.xml file with the graphical editor.
    I can send you additional information if needed.

    Message I get:

    Unable to create this part due to an internal error. Reason for the failure: org.eclipse.draw2d.geometry.Dimension

    plus the exception:

    java.lang.ClassCastException: org.eclipse.draw2d.geometry.Dimension
    at org.eclipse.gef.editparts.FreeformGraphicalRootEditPart.refreshGridLayer(FreeformGraphicalRootEditPart.java:280)
    at org.eclipse.gef.editparts.FreeformGraphicalRootEditPart$1.propertyChange(FreeformGraphicalRootEditPart.java:108)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
    at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setProperty(AbstractEditPartViewer.java:687)
    at com.genuitec.eclipse.struts.editor.modeler.core.StrutsEditor.loadProperties(StrutsEditor.java:375)
    at com.genuitec.eclipse.struts.editor.modeler.core.StrutsEditor.configureGraphicalViewer(StrutsEditor.java:350)
    at com.genuitec.eclipse.struts.editor.modeler.core.StrutsEditor.createGraphicalViewer(StrutsEditor.java:321)
    at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(GraphicalEditor.java:148)
    at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.createPartControl(GraphicalEditorWithFlyoutPalette.java:76)
    at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:155)
    at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:132)
    at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.createFlowModeler(StrutsConfigEditor.java:262)
    at com.genuitec.eclipse.struts.editor.multipage.StrutsConfigEditor.createPages(StrutsConfigEditor.java:281)
    at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:585)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2325)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2258)
    at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2250)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2236)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2231)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:279)
    at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:271)
    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:178)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

    #241444 Reply

    Riyad Kalla
    Member

    If you navigate to your <Eclipse dir>\plugins directory, do you have any GEF or EMF plugin directories? Did you happen to install VEP recently? (this is the problem you need to get rid of the EMF or GEF versions that VEP installed out of your <Eclipse dir>\plugins directory.)

    #241451 Reply

    Michal Kuna
    Member

    I have both GEF and EMF plugins, don’t have VEP
    gef 3.1.1
    emf 2.1.0

    everything worked fine until I upgraded myeclipse.

    #241894 Reply

    Michal Kuna
    Member

    do you need any more info?

    #241898 Reply

    Riyad Kalla
    Member

    No, I thought I was clear about what the problem was:

    (this is the problem you need to get rid of the EMF or GEF versions that VEP installed out of your <Eclipse dir>\plugins directory.)

    #243069 Reply

    Michal Kuna
    Member

    solved 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: [Closed] struts-config.xml editor failed

You must be logged in to post in the forum log in