Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320835 - cant open php files from 'svn repo exploring' perspective
Summary: cant open php files from 'svn repo exploring' perspective
Status: RESOLVED WORKSFORME
Alias: None
Product: Subversive
Classification: Technology
Component: Core (show other bugs)
Version: 0.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Igor Burilo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-25 02:02 EDT by jxncl CLA
Modified: 2011-03-17 16:14 EDT (History)
5 users (show)

See Also:


Attachments
Stack-Trace for invalid Content-Type in Editor Exception (3.88 KB, text/plain)
2010-10-13 10:32 EDT, Silvio Ginter CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jxncl CLA 2010-07-25 02:02:10 EDT
I install Eclipse pdt (PHP devel tool) plugin and subclipse pulgin. When I go to SVN repository exploring  perspective and choose to open a file from the repo, I get this error in the window which suppose to display code :  
Could not open the editor: org.eclipse.jface.text.Document cannot be cast to org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument


-- Configuration Details --
Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY
Comment 1 Benjamin Kalytta CLA 2010-07-28 07:05:07 EDT
I can confirm that bug with my installation.

Eclipse Platform: Version: 3.6.0
Build id: I20100608-0911 (org.eclipse.platform_3.6.0.v201006080911)
Comment 2 rvirani CLA 2010-08-18 09:54:18 EDT
i can confirm this also happens on my build: 

OSX 10.6.4

Version: Helios Release
Build id: 20100617-1415

Subclipse 1.6.13
Comment 3 Verena CLA 2010-08-23 07:29:37 EDT
Same for me when I try to open a specific revision of a file from the history view. I'm using subversive (SVN Connectors 2.2.2.I20100512-190).

Eclipse SDK
Version: 3.6.0
Build id: I20100608-0911
Comment 4 Silvio Ginter CLA 2010-10-13 10:32:44 EDT
Created attachment 180771 [details]
Stack-Trace for invalid Content-Type in Editor Exception

Hi,

i think this must be PDT related, since this issue only affects PHP Content-Type Files. It worked for me with any other type, except PHP. Therefore it might be a very big fluke, if this bug effects Subclipse and Subversive and would be in their charge.

The message for this error is the following:
org.eclipse.team.svn.ui.repository.RepositoryFileEditorInput cannot be cast to org.eclipse.php.internal.ui.editor.input.NonExistingPHPFileEditorInput


Error occurs since Update PDT 2.1 to 2.2.x
Comment 5 Alexander Gurov CLA 2011-03-17 16:14:45 EDT
>java.lang.ClassCastException: org.eclipse.team.svn.ui.repository.RepositoryFileEditorInput cannot be cast to org.eclipse.php.internal.ui.editor.input.NonExistingPHPFileEditorInput

There is no way Subversive could implement or extend something like org.eclipse.php.internal.ui.editor.input.NonExistingPHPFileEditorInput. So the issue is really related to the PDT and the good point about it is that in the Eclipse 3.6 SR 2 PDT the issue does not seem to appear.

P.S.
If it is only me who does not have the problem in SR2 PDT, please tell me, then I will reopen the issue and move it to the PDT component.