Barry LaFond created TEIIDDES-1977:
--------------------------------------
Summary: Clean up Diagram printing and save jpg file features.
Key: TEIIDDES-1977
URL:
https://issues.jboss.org/browse/TEIIDDES-1977
Project: Teiid Designer
Issue Type: Bug
Components: Diagrams
Affects Versions: 8.3
Reporter: Barry LaFond
Fix For: 8.4
Print Diagram feature does not work. There are a few ways you can get the SWT ERROR : No
more handles.
* Zooming in and out
* Modify Diagram Printing preferences and click OK
* Run Print action for diagram
Looks like the Save Diagram to File (*.jpg) action works OK though.
We need to decide if we want/need to fix this or not. Maybe investigate other JBoss Tools
(BRMS, etc.) that use GEF/SWT and see if they have Printing feature implemented that
works.
{code}
rg.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:4423)
at org.eclipse.swt.SWT.error(SWT.java:4312)
at org.eclipse.swt.SWT.error(SWT.java:4283)
at org.eclipse.swt.printing.Printer.internal_new_GC(Printer.java:415)
at org.eclipse.swt.graphics.GC.<init>(GC.java:159)
at org.eclipse.swt.graphics.GC.<init>(GC.java:125)
at
org.teiid.designer.diagram.ui.printing.DiagramPrintingAnalyzer.getPrinterGC(DiagramPrintingAnalyzer.java:231)
at
org.teiid.designer.diagram.ui.printing.DiagramPrintingAnalyzer.getFreshPrinterGraphics(DiagramPrintingAnalyzer.java:223)
at
org.teiid.designer.diagram.ui.printing.DiagramPrintingOperation.printLandscape_PrinterIsPortrait(DiagramPrintingOperation.java:693)
at
org.teiid.designer.diagram.ui.printing.DiagramPrintingOperation.printPages(DiagramPrintingOperation.java:406)
at
org.teiid.designer.diagram.ui.printing.DiagramPrintingAnalyzer.countPages(DiagramPrintingAnalyzer.java:173)
at
org.teiid.designer.diagram.ui.printing.DiagramPrintingAnalyzer.setPageSize(DiagramPrintingAnalyzer.java:71)
at
org.teiid.designer.diagram.ui.printing.DiagramPrintingAnalyzer.<init>(DiagramPrintingAnalyzer.java:47)
at
org.teiid.designer.diagram.ui.editor.DiagramViewer.updateForPrintPreferences(DiagramViewer.java:363)
at
org.teiid.designer.diagram.ui.editor.DiagramEditor.handleZoomChanged(DiagramEditor.java:863)
at
org.teiid.designer.diagram.ui.actions.ZoomComboActionContributeItem.handleWidgetSelected(ZoomComboActionContributeItem.java:330)
at
org.teiid.designer.diagram.ui.actions.ZoomComboActionContributeItem$3.widgetSelected(ZoomComboActionContributeItem.java:226)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira