- This topic has 5 replies, 2 voices, and was last updated 14 years, 6 months ago by
Neil Ramsey.
-
AuthorPosts
-
Neil RamseyMemberHi,
I installed the PDT plugin today to enable to craete a PHP project, etc, but when I created a PHP source file. I couldn’t open it and I got the following error
Could not open the editor: java.lang.ClassCastException: org.eclipse.wst.sse.ui.internal.contentassist.StructuredContentAssistant cannot be cast to org.eclipse.jface.text.contentassist.ContentAssistant at org.eclipse.php.internal.ui.editor.configuration.PHPStructuredTextViewerConfiguration.getPHPProcessors(PHPStructuredTextViewerConfiguration.java:152) at org.eclipse.php.internal.ui.editor.configuration.PHPStructuredTextViewerConfiguration.getContentAssistProcessors(PHPStructuredTextViewerConfiguration.java:134) at org.eclipse.php.internal.ui.editor.configuration.PHPStructuredTextViewerConfiguration.getPHPContentAssistant(PHPStructuredTextViewerConfiguration.java:203) at org.eclipse.php.internal.ui.editor.configuration.PHPStructuredTextViewerConfiguration.getPHPContentAssistant(PHPStructuredTextViewerConfiguration.java:176) at org.eclipse.php.internal.ui.editor.configuration.PHPStructuredTextViewerConfiguration.getPHPProcessors(PHPStructuredTextViewerConfiguration.java:152) at org.eclipse.php.internal.ui.editor.configuration.PHPStructuredTextViewerConfiguration.getContentAssistProcessors(PHPStructuredTextViewerConfiguration.java:134) at org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration.getContentAssistant(StructuredTextViewerConfiguration.java:286) at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.configure(StructuredTextViewer.java:208) at org.eclipse.php.internal.ui.editor.PHPStructuredTextViewer.configure(PHPStructuredTextViewer.java:334) at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3323) at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:53) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl(AbstractDecoratedTextEditor.java:427) at org.eclipse.wst.sse.ui.StructuredTextEditor.createPartControl(StructuredTextEditor.java:1336) at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.createPartControl(PHPStructuredEditor.java:1939) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:662) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:462) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:286) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2857) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2762) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2754) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2705) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2701) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2685) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2676) at org.eclipse.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:408) at org.eclipse.dltk.internal.ui.editor.EditorUtility.openInEditor(EditorUtility.java:166) at org.eclipse.dltk.internal.ui.actions.OpenActionUtil.open(OpenActionUtil.java:45) at org.eclipse.dltk.ui.actions.OpenAction.run(OpenAction.java:256) at org.eclipse.dltk.ui.actions.OpenAction.run(OpenAction.java:237) at org.eclipse.dltk.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:259) at org.eclipse.dltk.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:235) at org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerActionGroup.handleOpen(ScriptExplorerActionGroup.java:304) at org.eclipse.dltk.internal.ui.scriptview.ScriptExplorerPart$4.open(ScriptExplorerPart.java:662) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:842) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.runtime.Platform.run(Platform.java:888) 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.fireOpen(StructuredViewer.java:840) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1101) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1205) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298) 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:3910) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493) 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:194) 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:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
I’m running the following:
MyEclipse Enterprise Workbench Version: 8.6.1 Build id: 8.6.1-20101117
Can you help please?
Best regards,
fingers25.
January 31, 2011 at 6:22 am #314079
support-joyMemberfingers25,
Sorry to hear you are running into this issue. Can you answer below queries?
1. How did you add PDT plugin? Can you elaborate the steps here. In case you have added using update site, please share the update site and the weblink for PDT.
2. How did you install ME? Meaning all-in-one installer / pulse / archived update site on top of eclipse classic?January 31, 2011 at 7:49 am #314083
Neil RamseyMemberHi Joy,
1. I added the PDT plugin via the Software tab in the Software and Workspace Center. I did this by searching for PDT in the plugin search facility and right-clicking it (Eclipse PHP IDE (PDT)) to do Add to Profile…
It updated fine and restarted MyEclipse correctly.
2. ME 8.6 was installed originally from the all-in-one installer and subsequently updated to 8.6.1 using Pulse. I did have trouble doing the update but you helped me out there…many thanks.February 1, 2011 at 4:28 am #314101
Neil RamseyMemberHi Joy,
I’ve decided to purchase MyEclipse for Spring 8.6.1 and install that instead of my existing ME. I might as well, as most of my work revolves around Spring anyway.
It would still be nice to know if there is a way round the problem I described above though, just in case I decide to try PHP again in the future.Best wishes,
fingers.
February 3, 2011 at 3:49 am #314175
support-joyMemberfingers,
I am afraid, I cannot reproduce this issue at my end. I have added PDT plugin on ME for Spring 8.6.1 and was able to create a PHP project without any issue.
Can you try the following –
1. Switch to a new workspace. Does that help?
2. Perform -clean, please refer – https://www.genuitec.com/forums/topic/troubleshoot-using-the-clean-command-line-argument/
3. In case none of the above steps help, can you please perform a re-install and run.Attachments:
You must be logged in to view attached files.February 3, 2011 at 8:17 am #314185
Neil RamseyMemberHi Joy,
absolutely no problem with creating the project; it’s when I create a PHP source file that the trouble starts. When I attempt to open the file using the PHP editor, the error I listed above happens.
I think it’s best to leave this for now; I’ll try again using the methods you’ve listed above some time in the future.
Many thanks for your help,
fingers25.
-
AuthorPosts