Subclipse can only operate via generic base interfaces from Eclipse.
If a custom editor does not support those, then we cannot open it.
It is the same as this issue:
http://subclipse.tigris.org/issues/show_bug.cgi?id=585
On Fri, Sep 11, 2009 at 11:51 AM, Fraser Suyetsugu
<fsuyetsugu_at_covestic.com> wrote:
> Users,
>
> I am using Eclipse V 3.4.2 with plug-ins Force.com IDE V.Summer '09 (16.0.0)
> and Subversion Client Adapter V 1.6.4.1
>
> When in the SVN Repositories perspective I am attempting to open an Apex
> class by right clicking and then 'open'. In doing so I get the following
> error: "Could not open the editor: An exception was thrown during
> initialization"
>
> Any reason why this error is being thrown ? I am able to open the same
> class in the force.com perspective just not the SVN repository perspective.
>
> The details of the error are below:
>
> java.lang.ClassCastException:
> org.tigris.subversion.subclipse.ui.editor.RemoteFileEditorInput cannot be
> cast to org.eclipse.ui.IFileEditorInput
> at
> com.salesforce.ide.ui.internal.editor.BaseMultiPageEditorPart.getEditorInputFile(BaseMultiPageEditorPart.java:142)
> at
> com.salesforce.ide.ui.editors.internal.BaseComponentMultiPageEditorPart.setInput(BaseComponentMultiPageEditorPart.java:110)
> at
> org.eclipse.ui.part.MultiPageEditorPart.init(MultiPageEditorPart.java:687)
> at
> com.salesforce.ide.ui.editors.internal.BaseComponentMultiPageEditorPart.init(BaseComponentMultiPageEditorPart.java:102)
> at
> com.salesforce.ide.ui.editors.apex.ApexCodeMultiPageEditor.init(ApexCodeMultiPageEditor.java:53)
> at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:799)
> at
> org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:643)
> at
> org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
> at
> org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
> at
> org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:266)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820)
> at
> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729)
> at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721)
> at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652)
> at
> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2635)
> at
> org.tigris.subversion.subclipse.ui.actions.OpenRemoteFileAction$1.run(OpenRemoteFileAction.java:63)
> at
> org.tigris.subversion.subclipse.ui.repository.RepositoryManager.run(RepositoryManager.java:375)
> at
> org.tigris.subversion.subclipse.ui.actions.SVNAction$1.run(SVNAction.java:226)
> at
> org.tigris.subversion.subclipse.ui.actions.SVNAction$2.run(SVNAction.java:235)
> at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> at
> org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:232)
> at
> org.tigris.subversion.subclipse.ui.actions.OpenRemoteFileAction.execute(OpenRemoteFileAction.java:38)
> at
> org.tigris.subversion.subclipse.ui.actions.SVNAction.run(SVNAction.java:56)
> at
> org.tigris.subversion.subclipse.ui.repository.RepositoriesView.handleDoubleClick(RepositoriesView.java:554)
> at
> org.tigris.subversion.subclipse.ui.repository.RepositoriesView.access$2(RepositoriesView.java:544)
> at
> org.tigris.subversion.subclipse.ui.repository.RepositoriesView$12.doubleClick(RepositoriesView.java:410)
> at
> org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:799)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at org.eclipse.core.runtime.Platform.run(Platform.java:880)
> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
> at
> org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:797)
> at
> org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1419)
> at
> org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1173)
> at
> org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:237)
> at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:234)
> at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:295)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
> 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:386)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 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:549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2393653
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2009-09-11 18:18:02 CEST