1
0
Fork 0
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:
Xuan Chen 2007-08-08 20:04:35 +00:00
parent 873ee7b9b6
commit 97ab7c9494

View file

@ -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();