mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 07:35:24 +02:00
[187536] fix Drag & Drop file to Editor launchs file in system editor
This commit is contained in:
parent
873ee7b9b6
commit
97ab7c9494
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@
|
|||
* Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API
|
||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||
* David Dykstal (IBM) - [142065] fix drag and drop on Mac OS X
|
||||
* Kevin Doyle (IBM) - [187536] Drag & Drop file to Editor launchs file in system editor
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -326,7 +327,7 @@ public class SystemViewDataDragAdapter extends DragSourceAdapter
|
|||
IFile theFile = editable.getLocalResource();
|
||||
|
||||
IEditorDescriptor preferredEditor = editRegistry.getDefaultEditor(theFile.getName()); // may be null
|
||||
if (preferredEditor == null)
|
||||
if (preferredEditor == null || preferredEditor.isOpenExternal())
|
||||
{
|
||||
preferredEditor = getDefaultTextEditor();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue