facebook

[Closed]Error trying to print XSD Schema (graphical view)

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #239095 Reply

    Arvoreen
    Member

    Whenever I try to print the graphical view of an XSD Schema, I am getting SWT Errors.

    Here is my config:

    
    *** Date: Mon Oct 10 14:56:12 EDT 2005
    
    *** System properties:
    OS=Linux
    OS version=2.6.12-gentoo-r9
    Java version=1.5.0_05
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 4.0.2 GA
    Build id: 20051010-4.0.2-GA
    
    *** Eclipse details:
    Eclipse SDK
    
    Version: 3.1.1
    Build id: M20050929-0840
    
    Eclipse Project SDK
    
    Version: 3.1.1
    Build id: M20050929-0840
    
    Eclipse Platform
    
    Version: 3.1.1
    Build id: M20050929-0840
    
    Eclipse Java Development Tools
    
    Version: 3.1.1
    Build id: I20050627-1435
    
    Eclipse Graphical Editing Framework
    
    Version: 3.1
    Build id: 200507071758
    
    Eclipse RCP
    
    Version: 3.1.1
    Build id: I20050627-1435
    
    Eclipse Plug-in Development Environment
    
    Version: 3.1.1
    Build id: I20050627-1435
    
    Eclipse startup command=-os
    linux
    -ws
    gtk
    -arch
    x86
    -launcher
    /usr/lib/eclipse-3.1/eclipse-gtk
    -name
    Eclipse-gtk
    -showsplash
    600
    -exitdata
    b88001
    -Xmx600m
    -vm
    /opt/sun-jdk-1.5.0.05/bin/java
    

    The errors are as follows:

    
    !ENTRY org.eclipse.ui 4 4 2005-10-10 11:55:09.647
    !MESSAGE Unhandled event loop exception
    
    !ENTRY org.eclipse.ui 4 0 2005-10-10 11:55:09.648
    !MESSAGE No more handles
    !STACK 0
    org.eclipse.swt.SWTError: No more handles
            at org.eclipse.swt.SWT.error(SWT.java:2968)
            at org.eclipse.swt.SWT.error(SWT.java:2865)
            at org.eclipse.swt.SWT.error(SWT.java:2836)
            at org.eclipse.swt.printing.Printer.<init>(Printer.java:100)
            at com.ibm.xsdeditor.internal.graph.PrintGraphAction.run(PrintGraphAction.java:43)
            at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
            at org.eclipse.ui.actions.RetargetAction.runWithEvent(RetargetAction.java:222)
            at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
            at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
            at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
            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)
    
    #239187 Reply

    Greg
    Member

    Printing on linux from Eclipse is currently not possible. This is because there is no native way to print in GTK+, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=24796

    The issue is that the Print action is being enabled for the Graph view and it shouldn’t be. So when you try to print, the “No more handles” is just an automatic error that is thrown when you try to use the printer class on linux with GTK. We should disable this print action for the XSD graph viewer just to remove the confusion. Sorry for the inconvenience.

    #239274 Reply

    Arvoreen
    Member

    Ok, that makes sense. Hopefully the whole printing issue can be resolved at some point, but at least disabling the button will prevent the errors from happening.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: [Closed]Error trying to print XSD Schema (graphical view)

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