Community
Participate
Working Groups
3.0.2 on GTK found in log. !ENTRY org.eclipse.ui 4 0 Jun 08, 2005 15:12:14.474 !MESSAGE The command for the key you pressed failed !STACK 0 java.lang.NullPointerException at org.eclipse.jface.text.source.projection.ProjectionViewer.handleVisibleDocumentChanged(ProjectionViewer.java(Compiled Code)) at org.eclipse.jface.text.TextViewer$VisibleDocumentListener.documentChanged(TextViewer.java(Compiled Code)) at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java(Compiled Code)) at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java(Inlined Compiled Code)) at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java(Compiled Code)) at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java(Compiled Code)) at org.eclipse.jface.text.projection.ProjectionDocument.fireDocumentChanged(ProjectionDocument.java:768) at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java(Compiled Code)) at org.eclipse.jface.text.projection.ProjectionDocument.replace(ProjectionDocument.java:551) at org.eclipse.jface.text.DefaultDocumentAdapter.replaceTextRange(DefaultDocumentAdapter.java:238) at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5601) at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6441) at org.eclipse.swt.custom.StyledText.doDelete(StyledText.java:2632) at org.eclipse.swt.custom.StyledText.invokeAction(StyledText.java:5485) at org.eclipse.jface.text.TextViewer.deleteText(TextViewer.java:3528) at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1378) at org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.doOperation(JavaSourceViewer.java:152) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:199) at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java(Compiled Code)) at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120) at org.eclipse.jface.action.Action.runWithEvent(Action.java:881) at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:143) at org.eclipse.ui.internal.commands.Command.execute(Command.java:132) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:453) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java(Compiled Code)) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java(Compiled Code)) at org.eclipse.ui.internal.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:69) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Inlined Compiled Code)) at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(Native Method) at org.eclipse.swt.widgets.Display.eventProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.gtk.OS.gtk_main_iteration(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41) at java.lang.reflect.Method.invoke(Method.java:386) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688)
Did anything strange happened in the UI? Any steps? Without those and without the line numbers there isn't much we can do.
The log was inspected after text started being inserted backwards in the Java editor (e.g. typing ABC would result in CBA being inserted). Eclipse had been restarted before looking at the log, and the problem has not occured again.
The problem just occured again. It was triggered when pasting some Java code from one file to the other. A message box appears with the following message: "The command for the key you pressed failed". Then text starts being inserted backwards, as previously described. Inspecting the log revealed that it was indeed the same problem as was previously reported. I don't know how I could go about trying to reproduce this on purpose, obviously copying and pasting normally work.
Adam, was the text written backwards in your case as well? Bruno: is this on fresh Eclipse SDK or did you install other plug-ins? Are other input languages (especially RTL) installed? Which build?
It was actually on Bruno's machine. So yes, it was backwards. Just like in Bruno's case :)
It is almost a fresh install, only EMF has been added. The build number is 200503110845. There are no other input languages installed.
Get rid of deprecated state.
.