facebook

[Closed]Struts designer missing

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #238945 Reply

    purplemug
    Member

    Hello,
    I’m following the struts quickstart tutorial. I’m at the step that tells you to open the struts designer by opening the struts-config.xml file and clicking the design tab. The problem is that when I open the struts-config.xml file (by double clicking on the file), the file opens fine but my tabs say “source” and “grid”, not “design” and “source” as shown in the tutorial. Since the “design” tab is not there, I don’t see a way to access the struts designer. I also tried closing the struts-config.xml file, then right clicking on it, then clicking “Open With” and then clicking “MyEclipse Struts Editor”, but all I get is a blank grey screen … no designer.

    Here’s my configuration info:

    *** Date: Fri Oct 07 12:38:45 EDT 2005

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_03

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.1 GA
    Build id: 20050930-4.0.1-GA

    *** Eclipse details:
    Eclipse Platform

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse Platform

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse Java Development Tools

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse Plug-in Development Environment

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse Project SDK

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    808_38
    -vm
    C:\WINDOWS\system32\javaw.exe

    #238962

    purplemug
    Member

    Additional info: if I try to open the struts-config.xml file using the MyEclipse Struts Designer (by right clicking on struts-config.xml in the Package Explorer and then clicking Open With … MyEclipse Struts Designer), I then see the following in the Error Log:

    !ENTRY org.eclipse.ui 4 4 2005-10-07 14:14:21.937
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 2005-10-07 14:14:21.953
    !MESSAGE org.eclipse.swt.graphics.GC.getAdvanced()Z
    !STACK 0
    java.lang.NoSuchMethodError: org.eclipse.swt.graphics.GC.getAdvanced()Z
    at org.eclipse.draw2d.SWTGraphics.init(SWTGraphics.java:707)
    at org.eclipse.draw2d.SWTGraphics.<init>(SWTGraphics.java:258)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite$RotatedTitleLabel.updateImage(FlyoutPaletteComposite.java:1051)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite$RotatedTitleLabel.setFont(FlyoutPaletteComposite.java:1033)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite$TitleCanvas.setFont(FlyoutPaletteComposite.java:1321)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite$FontManager.register(FlyoutPaletteComposite.java:1422)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite$TitleCanvas.init(FlyoutPaletteComposite.java:1277)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite$TitleCanvas.<init>(FlyoutPaletteComposite.java:1244)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite.createTitle(FlyoutPaletteComposite.java:269)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite.access$5(FlyoutPaletteComposite.java:268)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite$Sash.<init>(FlyoutPaletteComposite.java:673)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite.createSash(FlyoutPaletteComposite.java:265)
    at org.eclipse.gef.ui.palette.FlyoutPaletteComposite.<init>(FlyoutPaletteComposite.java:190)
    at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.createPartControl(GraphicalEditorWithFlyoutPalette.java:75)
    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:577)
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:357)
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:559)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:266)
    at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
    at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
    at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
    at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
    at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1064)
    at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1013)
    at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1222)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:406)
    at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
    at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
    at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
    at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
    at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:719)
    at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:631)
    at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:594)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2254)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2185)
    at org.eclipse.ui.internal.WorkbenchPage.access$8(WorkbenchPage.java:2177)
    at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2163)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2158)
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2132)
    at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu.java:278)
    at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.java:270)
    at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMenu.java:177)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2921)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2554)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1601)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1565)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315)
    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:230)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)
    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.invokeFramework(Main.java:330)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    #238963

    purplemug
    Member

    The above error log entry was from 4.0.2 … here’s my new config info:

    *** Date: Fri Oct 07 14:21:12 EDT 2005

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_03

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.2 GA
    Build id: 20051010-4.0.2-GA

    *** Eclipse details:
    Eclipse Platform

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse Platform

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse Java Development Tools

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse Plug-in Development Environment

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse Project SDK

    Version: 3.1.0
    Build id: I20050513-1415

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    894_38
    -vm
    C:\WINDOWS\system32\javaw.exe

    #238971

    Greg
    Member

    It looks like your Eclipse isn’t the correct version. You need to download the latest Eclipse 3.1.0 (build id: I20050627-1435) or the latest Eclipse 3.1.1 build.

    #238988

    purplemug
    Member

    That worked — I upgraded to Eclipse 3.1.1 and that corrected the issue. Actually, I had to upgrade Eclipse, then uninstall MyEclipse, then reinstall MyEclipse and let it update, and then it worked.

    Your forum support is excellent, by the way. Your responses have been quick, professional, and so far have resolved all my issues.

    My two cents is that MyEclipse should block installation unless the underlying Eclipse version is compatible. MyEclipse should either offer to upgrade Eclipse automatically, or provide instructions on how to ugrade Eclipse to the appropriate version, or should at least tell you that your version is out of date and what version you need. The MyEclipse download page indicated that 3.1 was compatible, which is what I had. I was left with an apparently successful MyEclipse installation that didn’t work because the underlying Eclipse installation was not current enough, even though it was the same version number that the MyEclipse site said it needed.

    Once past the installation issues, the product is a joy to use, from what I’ve experienced so far (just getting started though). The Struts Designer looks very strong to me so far and should be a major help to me in designing struts apps.

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: [Closed]Struts designer missing

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