Bug 46395 - [RCP] Open With not persistent
Summary: [RCP] Open With not persistent
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2003-11-11 03:56 EST by Dani Megert CLA
Modified: 2003-11-17 21:54 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2003-11-11 03:56:31 EST
N20031111

Start fresh workspace and create a type in a new Java project.
Close the Java editor
Select the file, Open With > Text editor
Close the text editor
Double-click the file
==> opens in Java editor. Before RCP it used to remember which editor was used.
Comment 1 Nick Edgar CLA 2003-11-11 22:25:12 EST
Fixed in >I20031111, by adding a call to IDE.setDefaultEditor(file, editorId) 
in OpenWithMenu.openEditor.

This is not ideal though.  The old code used to just call page.openEditor(file, 
editorId).  The equivalent post-RCP call should be IDE.openEditor(page, file, 
editorId) but there is no such API currently.

Should have 1-to-1 equivalents for the old openEditor methods on IDE, including 
the openEditor(IEditorInput, ...) variants to handle the special case for 
IFileEditorInput.

Comment 2 Nick Edgar CLA 2003-11-17 21:54:43 EST
This is fixed.
Filed bug 46818 for the openEditor API problems.