Bug 197326 - [DND] EditorAreaDropAdapter should try to open files in default editor for EditorInputTransfers
Summary: [DND] EditorAreaDropAdapter should try to open files in default editor for Ed...
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks: 199322 187536
  Show dependency tree
 
Reported: 2007-07-20 14:30 EDT by Kevin Doyle CLA
Modified: 2019-09-06 16:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Doyle CLA 2007-07-20 14:30:38 EDT
Currently EditorInputTransfer's will only try to open the file dropped in the editor area with the editor ID that is in the editor input.  It should if that editor would launch externally try to open the file in the default editor.

When doing a DND to the Editor Area for an EditorInputTransfer it calls EditorAreaDropAdapter.openNonExternalEditor(IWorkbenchPage, IEditorInput, String).

In the case where where editorDesc.isOpenExternal() returns true openNonExternalEditor(IWorkbenchPage, IEditorInput, String) returns null.  The other 2 openNonExternalEditor methods in EditorAreaDropAdapter will try to find an in-place OS editor and if it doesn't it will use the default editor to open the file.

openNonExternalEditor(IWorkbenchPage, IMarker) calls openNonExternalEditor(IWorkbenchPage, IFile) to handle the case where editorDesc.isOpenExternal() is true.
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:06:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.