Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 184089 - [EditorMgmt] CVS Repositories view opens remote files with registered editor
Summary: [EditorMgmt] CVS Repositories view opens remote files with registered editor
Status: RESOLVED DUPLICATE of bug 90582
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Michael Valenta CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-25 15:00 EDT by Randy Giffen CLA
Modified: 2007-04-26 11:03 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Giffen CLA 2007-04-25 15:00:32 EDT
Build ID: 3.2.2

Steps To Reproduce:
Using the latest build of the 6.1 version of WID
(Websphere Integration Developer)
1. In the CVS Repositories view connect to a repository containing a .bpel file
2. From the context menu for a .bpel file select open
3. The editor will fail to open - the editor area will
be blank wit the following message "Unable to create this part due to an internal error. Reason for failure: Error opening editor. Can't read input file"



More information:
Since 3.1 the CVS Repositories view has used the associated editor when viewing files in the repository.
The BPEL editor is a logical editor and requires a set of addtional files to open (this set of files is dynamic depending on the contents of the bpel process).
Our editor is unable to open a single .bpel file and
thus it is unsuitable for showing the contents of the file in the CVS repository exploring perspective.
We need a way to specify (perhaps in the editor extension point) that the editor is not suitable for viewing remote files. Alternatively the Editor Manager could silently use a text editor if the BPEL edior failed.

In Eclipse 3.0 (WID 6.0) this scenario worked since the CVS repository view used a text editor for .bpel files
Comment 1 Michael Valenta CLA 2007-04-25 16:20:23 EDT
I will investigate this.
Comment 2 Randy Giffen CLA 2007-04-25 16:27:13 EDT
Reducing to Normal for consideration in 3.4 while we investigate a workaround
for 3.2.2
Comment 3 Boris Bokowski CLA 2007-04-25 16:41:21 EDT
Michael, this is related to bug 90582.
Comment 4 Boris Bokowski CLA 2007-04-25 16:43:35 EDT
oops
Comment 5 Randy Giffen CLA 2007-04-25 16:54:35 EDT
Just confirmed the the WSDL RAD 7.0 editor has the same problem

java.lang.ClassCastException: org.eclipse.team.internal.ccvs.ui.RemoteFileEditorInput incompatible with org.eclipse.ui.IFileEditorInput
	at org.eclipse.wst.wsdl.ui.internal.asd.ASDMultiPageEditor.buildAndSetModel(ASDMultiPageEditor.java:172)
	at org.eclipse.wst.wsdl.ui.internal.asd.ASDMultiPageEditor.createPages(ASDMultiPageEditor.java:148)
	at org.eclipse.wst.wsdl.ui.internal.InternalWSDLMultiPageEditor.createPages(InternalWSDLMultiPageEditor.java:383)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:276)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
	at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)
Comment 6 Michael Valenta CLA 2007-04-26 11:03:19 EDT
This is the same issue as 90582.

*** This bug has been marked as a duplicate of bug 90582 ***