Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Copying a NoteFigure containing Hebrew text causes exception
Copying a NoteFigure containing Hebrew text causes exception [message #501567] Wed, 02 December 2009 20:08
Albert Choi is currently offline Albert ChoiFriend
Messages: 4
Registered: July 2009
Junior Member
Hi, I have a GMF diagram containing a NoteFigure that has Hebrew text in
it. If I select the figure and use Ctrl+C to copy, I see the following
stack trace and nothing is copied to the clipboard. A note with English
text can be copied with no problems.

I am using GMF version 1.2.1.v20090729, and the underlying draw2d plugin
is version 3.5.1.v20090813-1341.

!ENTRY org.eclipse.gmf.runtime.common.ui.action 4 3 2009-12-02 14:49:13.880
!MESSAGE While executing the operation, an exception occurred
!STACK 0
org.eclipse.core.commands.ExecutionException: While executing the
operation, an exception occurred
at
org.eclipse.core.commands.operations.DefaultOperationHistory .execute(DefaultOperationHistory.java:519)
at
org.eclipse.gmf.runtime.common.ui.action.global.GlobalAction .doRun(GlobalAction.java:123)
at
org.eclipse.gmf.runtime.common.ui.action.internal.actions.gl obal.GlobalCopyAction.doRun(GlobalCopyAction.java:91)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandl er.run(AbstractActionHandler.java:359)
at
org.eclipse.gmf.runtime.common.ui.action.ActionManager$1.run (ActionManager.java:225)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.gmf.runtime.common.ui.action.ActionManager.run(A ctionManager.java:223)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandl er.runWithEvent(AbstractActionHandler.java:377)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandl er.java:119)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
at
org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
at
org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeComman d(WorkbenchKeyboard.java:470)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(Workben chKeyboard.java:824)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEve nt(WorkbenchKeyboard.java:880)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequ enceBindings(WorkbenchKeyboard.java:569)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(Work benchKeyboard.java:510)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter .handleEvent(WorkbenchKeyboard.java:125)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:119 1)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040 )
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036 )
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1368)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4053)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:346)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3946 )
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589 )
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:24 10)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3471)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.RuntimeException: The class: class
org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.graphi cs.GraphicsToGraphics2DAdaptor
has not implemented this new graphics function
at org.eclipse.draw2d.Graphics.throwNotImplemented(Graphics.jav a:993)
at org.eclipse.draw2d.Graphics.drawTextLayout(Graphics.java:371 )
at
org.eclipse.gmf.runtime.draw2d.ui.internal.graphics.ScaledGr aphics.drawTextLayout(ScaledGraphics.java:409)
at org.eclipse.draw2d.Graphics.drawTextLayout(Graphics.java:356 )
at org.eclipse.draw2d.text.TextFlow.paintText(TextFlow.java:587 )
at
org.eclipse.gmf.runtime.draw2d.ui.text.TextFlowEx.paintFigur e(TextFlowEx.java:191)
at org.eclipse.draw2d.Figure.paint(Figure.java:1049)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1114)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1119)
at
org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel.pain tClientArea(WrappingLabel.java:1105)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1087)
at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1123)
at org.eclipse.draw2d.Figure.paint(Figure.java:1051)
at
org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramG enerator.paintFigure(DiagramGenerator.java:373)
at
org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramG enerator.renderToGraphics(DiagramGenerator.java:226)
at
org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramI mageGenerator.createAWTImageForParts(DiagramImageGenerator.j ava:175)
at
org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramG enerator.createAWTImageForParts(DiagramGenerator.java:154)
at
org.eclipse.gmf.runtime.diagram.ui.render.internal.commands. CopyImageCommand.doExecuteWithResult(CopyImageCommand.java:1 33)
at
org.eclipse.gmf.runtime.common.core.command.AbstractCommand. execute(AbstractCommand.java:135)
at
org.eclipse.core.commands.operations.DefaultOperationHistory .execute(DefaultOperationHistory.java:511)
... 54 more
Previous Topic:Avoid connections between container
Next Topic:GMF for mapping two models?
Goto Forum:
  


Current Time: Sun Apr 11 05:15:02 GMT 2021

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

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

Back to the top