Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321709 - [stateMachine Diagram] LoopException on resizing stateMachine element
Summary: [stateMachine Diagram] LoopException on resizing stateMachine element
Status: CLOSED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 08:50 EDT by Raphael Faudou CLA
Modified: 2010-09-01 09:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Faudou CLA 2010-08-04 08:50:37 EDT
when creating a statemachine element from the palette I have tried to resize it (enlarge it) and Eclipse froze. In fact, there is a loopException.

eclipse.buildId=I20100608-0911
java.version=1.5.0_19
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments:  -product org.eclipse.epp.package.modeling.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.modeling.product


Error
Wed Aug 04 14:40:32 CEST 2010
Unhandled event loop exception

java.lang.NullPointerException
at org.eclipse.draw2d.Figure.setBounds(Figure.java:1501)
at org.eclipse.gef.editpolicies.NonResizableEditPolicy.createDragSourceFeedbackFigure(NonResizableEditPolicy.java:69)
at org.eclipse.gef.editpolicies.NonResizableEditPolicy.getDragSourceFeedbackFigure(NonResizableEditPolicy.java:148)
at org.eclipse.papyrus.diagram.statemachine.custom.policies.CustomRegionResizableEditPolicy.showChangeBoundsFeedback(CustomRegionResizableEditPolicy.java:142)
at org.eclipse.papyrus.diagram.statemachine.custom.policies.CustomRegionResizableEditPolicy.showSourceFeedback(CustomRegionResizableEditPolicy.java:164)
at org.eclipse.gef.editparts.AbstractEditPart.showSourceFeedback(AbstractEditPart.java:1046)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.showSourceFeedback(GraphicalEditPart.java:1380)
at org.eclipse.gef.tools.SimpleDragTracker.showSourceFeedback(SimpleDragTracker.java:239)
at org.eclipse.gef.tools.ResizeTracker.handleDragInProgress(ResizeTracker.java:243)
at org.eclipse.gef.tools.AbstractTool.mouseDrag(AbstractTool.java:1120)
at org.eclipse.gef.tools.SelectionTool.mouseDrag(SelectionTool.java:536)
at org.eclipse.gef.EditDomain.mouseDrag(EditDomain.java:259)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseMoved(DomainEventDispatcher.java:363)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove(LightweightSystem.java:543)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:205)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 David Servat CLA 2010-09-01 08:53:10 EDT
Can you test this again in the 0.7.X? The state machine diagram creation has been changed, see BUG 324188. But resize remains the same and I have not been able to reproduce your problem.
Comment 2 Raphael Faudou CLA 2010-09-01 09:23:35 EDT
No more issues with stateMachine resizing. Closed