facebook

problems with editor

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #233736 Reply

    YellowDog
    Member

    I cannot cut-and-paste or copy-and-paste either between or within the same java editor. If I use menu commands, nothing happens when I paste, but examining the log I see an error. If I use the keyboard to paste, I get a popup dialog box that says “The command for the key you pressed failed”.

    Here’s the relevant data:
    What operating system and version are you running?
    Win XP
    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Version: 3.0.1 Build id: 200409161125
    Was Eclipse freshly installed for MyEclipse?
    Yes
    If not, was it upgraded to its current version using the update manager?
    Are any other external plugins installed?
    RSS Reader for Eclipse
    How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    8
    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    Version: 3.8.3 Build id: 200412061200-3.8.3
    What JDK version are you using to run Eclipse? (java -version)
    1.4.2
    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)

    !ENTRY org.eclipse.ui 4 4 Jul 27, 2005 09:27:16.666
    !MESSAGE The command for the key you pressed failed

    !ENTRY org.eclipse.ui 4 0 Jul 27, 2005 09:27:16.666
    !MESSAGE The command for the key you pressed failed
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jdt.internal.ui.text.JavaIndenter.prefIndentBracesForMethods(JavaIndenter.java:1346)
    at org.eclipse.jdt.internal.ui.text.JavaIndenter.findReferencePosition(JavaIndenter.java:386)
    at org.eclipse.jdt.internal.ui.text.JavaIndenter.findReferencePosition(JavaIndenter.java:300)
    at org.eclipse.jdt.internal.ui.text.java.JavaAutoIndentStrategy.smartPaste(JavaAutoIndentStrategy.java:607)
    at org.eclipse.jdt.internal.ui.text.java.JavaAutoIndentStrategy.customizeDocumentCommand(JavaAutoIndentStrategy.java:1017)
    at org.eclipse.jface.text.TextViewer.customizeDocumentCommand(TextViewer.java:3234)
    at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.customizeDocumentCommand(CompilationUnitEditor.java:248)
    at org.eclipse.jface.text.TextViewer.handleVerifyEvent(TextViewer.java:3256)
    at org.eclipse.jface.text.source.projection.ProjectionViewer.handleVerifyEvent(ProjectionViewer.java:1175)
    at org.eclipse.jface.text.TextViewer$TextVerifyListener.verifyText(TextViewer.java:347)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:613)
    at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5571)
    at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6441)
    at org.eclipse.swt.custom.StyledText.paste(StyledText.java:5638)
    at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3417)
    at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:757)
    at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1410)
    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.jdt.internal.ui.javaeditor.ClipboardOperationAction.doPasteWithImportsOperation(ClipboardOperationAction.java:422)
    at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:254)
    at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction$1.run(ClipboardOperationAction.java:225)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:223)
    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:871)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:912)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:530)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2(WorkbenchKeyboard.java:478)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent(WorkbenchKeyboard.java:243)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:740)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:795)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
    at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
    at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
    at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3517)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:2997)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
    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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    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)

    !ENTRY org.eclipse.ui 4 4 Jul 27, 2005 09:31:24.120
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 Jul 27, 2005 09:31:24.120
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jdt.internal.ui.text.JavaIndenter.prefIndentBracesForMethods(JavaIndenter.java:1346)
    at org.eclipse.jdt.internal.ui.text.JavaIndenter.findReferencePosition(JavaIndenter.java:386)
    at org.eclipse.jdt.internal.ui.text.JavaIndenter.findReferencePosition(JavaIndenter.java:300)
    at org.eclipse.jdt.internal.ui.text.java.JavaAutoIndentStrategy.smartPaste(JavaAutoIndentStrategy.java:607)
    at org.eclipse.jdt.internal.ui.text.java.JavaAutoIndentStrategy.customizeDocumentCommand(JavaAutoIndentStrategy.java:1017)
    at org.eclipse.jface.text.TextViewer.customizeDocumentCommand(TextViewer.java:3234)
    at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.customizeDocumentCommand(CompilationUnitEditor.java:248)
    at org.eclipse.jface.text.TextViewer.handleVerifyEvent(TextViewer.java:3256)
    at org.eclipse.jface.text.source.projection.ProjectionViewer.handleVerifyEvent(ProjectionViewer.java:1175)
    at org.eclipse.jface.text.TextViewer$TextVerifyListener.verifyText(TextViewer.java:347)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:613)
    at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5571)
    at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6441)
    at org.eclipse.swt.custom.StyledText.paste(StyledText.java:5638)
    at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3417)
    at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:757)
    at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1410)
    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.jdt.internal.ui.javaeditor.ClipboardOperationAction.doPasteWithImportsOperation(ClipboardOperationAction.java:422)
    at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:254)
    at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction$1.run(ClipboardOperationAction.java:225)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction.run(ClipboardOperationAction.java:223)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
    at org.eclipse.ui.actions.RetargetAction.runWithEvent(RetargetAction.java:212)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
    at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
    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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    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)

    #233771 Reply

    Riyad Kalla
    Member

    Yellow,
    This is a straight Eclipse stack trace, are you having this problem with the Java Editor? (we don’t instrument it or augment it in anyway)

    #233841 Reply

    YellowDog
    Member

    Yes, with the Java editor in the MyEclipse perspective. But oddly enough, the problem has disappeared (after Eclipse sat idle for 24 hours). Even though this happens intermittently, I’ve never been able to associate it with some other event or condition.

    #233850 Reply

    Riyad Kalla
    Member

    Please let us know if you are able to nail down this behavior with a reproducable set of actions, we will look into it ASAP.

    #235321 Reply

    ndenkha
    Member

    I’m having the same issue and it doesn’t get resolved unless I restart the IDE and no my problem didn’t get fixed when the ide was ide for 24 hours.

    Beside the copy/paste issues sometimes the ide starts reversing the typed words and it doesn’t response to undo, delete, etc… Basically at that point the ide is useless and have to restart. This starts happening after using the ide for 30 mins or so.

    I’ve been reading many similar behaviors in your forms about this but don’t see any solution. This is a definit bug in MyEclipse cause it started happening AFTER installing MyEclipse. Here’s a portion of my stacktrace. How do you attach files to this msg? I wanted to send you the log file.

    System info: Win XP prof
    Eclipse version 3.0.2 – Build id: 200503110845
    MyEclipse: 3.8.4

    !ENTRY org.eclipse.ui 4 0 Aug 19, 2005 11:24:21.85
    !MESSAGE The command for the key you pressed failed
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jface.text.DefaultPositionUpdater.update(DefaultPositionUpdater.java:227)
    at org.eclipse.jface.text.AbstractDocument.updatePositions(AbstractDocument.java:1028)
    at org.eclipse.jface.text.AbstractDocument.updateDocumentStructures(AbstractDocument.java:616)
    at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:704)
    at org.eclipse.jface.text.AbstractDocument.replace(AbstractDocument.java:998)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.updateParentDocument(Unknown Source)
    at com.ibm.sse.model.jsp.parser.JSPReParser.reparse(Unknown Source)
    at com.ibm.sse.model.internal.text.StructuredDocumentReParser.reparse(Unknown Source)
    at com.ibm.sse.model.internal.text.StructuredDocumentReParser.checkForQuotes(Unknown Source)
    at com.ibm.sse.model.internal.text.StructuredDocumentReParser.checkForCrossStructuredDocumentRegionSyntax(Unknown Source)
    at com.ibm.sse.model.jsp.parser.JSPReParser.checkForCrossStructuredDocumentRegionSyntax(Unknown Source)
    at com.ibm.sse.model.internal.text.StructuredDocumentReParser.checkForCrossStructuredDocumentRegionBoundryCases(Unknown Source)
    at com.ibm.sse.model.internal.text.StructuredDocumentReParser.checkHeuristics(Unknown Source)
    at com.ibm.sse.model.internal.text.StructuredDocumentReParser.reparse(Unknown Source)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.updateModel(Unknown Source)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(Unknown Source)
    at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(Unknown Source)
    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:2616)
    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.TextViewer.doOperation(TextViewer.java:3423)
    at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:757)
    at com.ibm.sse.editor.StructuredTextViewer.doOperation(Unknown Source)
    at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    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:871)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:912)
    at org.eclipse.ui.internal.keys.OutOfOrderListener.handleEvent(OutOfOrderListener.java:69)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
    at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
    at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
    at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3517)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:2997)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:3339)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2430)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
    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(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    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)

    #235327 Reply

    Riyad Kalla
    Member

    The horrific reverse typing issue should be resolved in 4.0 M3, I noticed you are still on Eclipse 3.0. In order to use 4.0 M3 and eventually 4.0 GA at the end of this month you will need to upgrade to Eclipse 3.1. If you choose to do this, please create a new workspace and use the File > import functionality to pull in your preferences and projects from your old install, don’t use the same workspace.

    #235329 Reply

    ndenkha
    Member

    Thank you, will look forward to that fix.

    #236965 Reply

    garand
    Member

    I had the same problem while updating automatically the latest MyEclipse version but it desappeared after restart.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: problems with editor

You must be logged in to post in the forum log in