Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366249

Summary: R4Eclipse CoreException when creating a review item from an external file
Product: z_Archived Reporter: Jacques Bouthillier <lmcbout>
Component: MylynAssignee: Project Inbox <r4e-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P5 CC: fchouinard, lmcbout, sebastien.dubois
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Bug Depends on:    
Bug Blocks: 399536    

Description Jacques Bouthillier CLA 2011-12-09 15:48:20 EST
How to reproduce:
1- Create a review.
2- Select any ".txt: or ".java" file from you "C\" drive. The file is nowhere inside your workspace, just in the eclipse editor.
3- Now Open the pull-down menu from the editor and try to create a review item from this external file. It will trigger the following error:
!ENTRY org.eclipse.mylyn.reviews.r4e.ui 4 0 2011-12-09 14:31:57.969
!MESSAGE Exception: org.eclipse.core.runtime.CoreException: Invalid input class org.eclipse.ui.ide.FileStoreEditorInput
!STACK 1
org.eclipse.core.runtime.CoreException: Invalid input class org.eclipse.ui.ide.FileStoreEditorInput
	at org.eclipse.mylyn.reviews.r4e.ui.internal.utils.CommandUtils.getBaseFileData(CommandUtils.java:245)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.NewReviewItemHandler.addReviewItemFromText(NewReviewItemHandler.java:185)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.NewReviewItemHandler.access$0(NewReviewItemHandler.java:180)
	at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.NewReviewItemHandler$1.runInUIThread(NewReviewItemHandler.java:108)
	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
Comment 1 Sebastien Dubois CLA 2013-01-24 16:59:20 EST
Should we support this scenario anyways?
Comment 2 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn