Jump to content
  • Error opening properties file


    iluvtr
    Assigned User Massimo Rabbi
    CategoryBug report
    PriorityHigh
    ReproducibilityAlways
    ResolutionFixed
    SeverityMajor
    StatusResolved

    When I open a properties file using File/Open I get a message: Could not open the editor: Invalid Input: Must be IFileEditorInput

     

    Here the stacktrace

    org.eclipse.ui.PartInitException: Invalid Input: Must be IFileEditorInput

    at com.essiembre.eclipse.rbe.ui.editor.ResourceBundleEditor.init(ResourceBundleEditor.java:117)

    at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)

    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)

    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)

    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)

    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)

    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2958)

    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2863)

    at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2855)

    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2806)

    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2802)

    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2786)

    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2769)

    at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1253)

    at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:107)

    at org.eclipse.ui.internal.ide.actions.OpenLocalFileAction.run(OpenLocalFileAction.java:76)

    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)

    at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)

    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)

    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)

    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)

    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:4169)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)

    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)

    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)

    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)

    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)

    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

    at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:97)

    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:353)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)

    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.equinox.launcher.Main.invokeFramework(Main.java:629)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

     


    Attachments: issueDetails.zip

    User Feedback

    Recommended Comments

    Yes it is fixed in the code trunk. I think there will be a Studio beta build this week.

    In the meanwhile you can workaround this by drag-and-drop from Explorer (Windows) to the Project (i.e. MyReports). This will popup a dialog, you can choose "Link To files". This way a link to the filesystem item will be created. You can later double click on the (link) file and use the editor.

    Link to comment
    Share on other sites


×
×
  • Create New...