Bug 148887 - Problems with PAGE_UP/PAGE_DOWN/HOME/END
Summary: Problems with PAGE_UP/PAGE_DOWN/HOME/END
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: 1.0.1   Edit
Assignee: Syed Atif CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-06-27 16:32 EDT by Randy Hudson CLA
Modified: 2010-07-19 12:26 EDT (History)
0 users

See Also:


Attachments
Patch that fixes the null poiner bug and correctly implements the PAGE_UP/PAGE_DOWN behavior. (7.62 KB, patch)
2006-07-18 13:14 EDT, Syed Atif CLA
no flags Details | Diff
Patch that fixes the NPE only (3.92 KB, patch)
2006-08-29 16:51 EDT, Syed Atif CLA
no flags Details | Diff
Updated NPE patch that does not depend on DiagramEditPart and DiagramRootEditPart (3.26 KB, patch)
2006-09-08 10:59 EDT, Syed Atif CLA
no flags Details | Diff
Minor changes (3.18 KB, patch)
2006-09-08 11:38 EDT, Syed Atif CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2006-06-27 16:32:36 EDT
PAGE_UP and DOWN have unpredictable behavior that doesn't really help the user any. HOME and END throw exceptions when nothing is selected.

java.lang.NullPointerException
	at org.eclipse.gmf.runtime.diagram.ui.internal.parts.DiagramGraphicalViewerKeyHandler.getPartNavigationSiblings(DiagramGraphicalViewerKeyHandler.java:123)
	at org.eclipse.gmf.runtime.diagram.ui.internal.parts.DiagramGraphicalViewerKeyHandler.navigateEndSibling(DiagramGraphicalViewerKeyHandler.java:215)
	at org.eclipse.gmf.runtime.diagram.ui.internal.parts.DiagramGraphicalViewerKeyHandler.keyPressed(DiagramGraphicalViewerKeyHandler.java:69)
	at org.eclipse.gef.KeyHandler.keyPressed(KeyHandler.java:54)
	at org.eclipse.gmf.runtime.diagram.ui.internal.parts.DirectEditKeyHandler.keyPressed(DirectEditKeyHandler.java:89)
	at org.eclipse.gef.tools.SelectionTool.handleKeyDown(SelectionTool.java:319)
	at org.eclipse.gef.tools.AbstractTool.keyDown(AbstractTool.java:901)
	at org.eclipse.gef.tools.SelectionTool.keyDown(SelectionTool.java:468)
	at org.eclipse.gef.EditDomain.keyDown(EditDomain.java:153)
	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchKeyPressed(DomainEventDispatcher.java:246)
	at org.eclipse.draw2d.LightweightSystem$EventHandler.keyPressed(LightweightSystem.java:488)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:122)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
	at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1560)
	at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3567)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:3275)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1923)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	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:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Syed Atif CLA 2006-07-18 13:14:48 EDT
Created attachment 46459 [details]
Patch that fixes the null poiner bug and correctly implements the PAGE_UP/PAGE_DOWN behavior.
Comment 2 Mohammed Mostafa CLA 2006-08-02 18:05:22 EDT
with the patch, HOME and END does not throw the exceptions any more but page up and down still have unpredictable behavior 
Comment 3 Syed Atif CLA 2006-08-29 16:51:18 EDT
Created attachment 49002 [details]
Patch that fixes the NPE only

This patch does not attempt to implement PAGE UP/PAGE DOWN behavior, instead just fixes the NPE. PAGE UP/PAGE DOWN has yet to be implemented in GEF.
Comment 4 Syed Atif CLA 2006-09-08 10:59:54 EDT
Created attachment 49726 [details]
Updated NPE patch that does not depend on DiagramEditPart and DiagramRootEditPart
Comment 5 Syed Atif CLA 2006-09-08 11:38:08 EDT
Created attachment 49731 [details]
Minor changes
Comment 6 Cherie Revells CLA 2006-09-08 11:51:21 EDT
Committed the patch to avoid the NPEs.
Comment 7 Eclipse Webmaster CLA 2010-07-19 12:26:36 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug