1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 09:15:38 +02:00

[385420] double-click to open System editor from Remote Systems view not working

This commit is contained in:
David McKnight 2012-07-19 20:29:18 +00:00
parent 4007c67606
commit 6345d1b3e7

View file

@ -46,6 +46,7 @@
* David McKnight (IBM) - [359704] SystemEditableRemoteFile does not release reference to editor * David McKnight (IBM) - [359704] SystemEditableRemoteFile does not release reference to editor
* Rick Sawyer (IBM) - [376535] RSE does not respect editor overrides * Rick Sawyer (IBM) - [376535] RSE does not respect editor overrides
* David McKnight (IBM) - [357111] [DSTORE]File with invalid characters can't be opened in editor * David McKnight (IBM) - [357111] [DSTORE]File with invalid characters can't be opened in editor
* David McKnight (IBM) - [385420] double-click to open System editor from Remote Systems view not working
*******************************************************************************/ *******************************************************************************/
package org.eclipse.rse.files.ui.resources; package org.eclipse.rse.files.ui.resources;
@ -1737,6 +1738,7 @@ public class SystemEditableRemoteFile implements ISystemEditableRemoteObject, IP
if (_usingDefaultDescriptor){ if (_usingDefaultDescriptor){
_editorDescriptor = IDE.getEditorDescriptor(file); _editorDescriptor = IDE.getEditorDescriptor(file);
editorId = _editorDescriptor.getId(); editorId = _editorDescriptor.getId();
_usingDefaultDescriptor = false;
} }
else { else {
editorId = _editorDescriptor.getId(); editorId = _editorDescriptor.getId();
@ -1744,7 +1746,10 @@ public class SystemEditableRemoteFile implements ISystemEditableRemoteObject, IP
} }
IDE.setDefaultEditor(file, editorId); IDE.setDefaultEditor(file, editorId);
if (_editorDescriptor.isOpenExternal()){
openSystemEditor(); // opening regular way doesn't work anymore
}
else {
FileEditorInput finput = new FileEditorInput(file); FileEditorInput finput = new FileEditorInput(file);
// check for files already open // check for files already open
@ -1766,6 +1771,7 @@ public class SystemEditableRemoteFile implements ISystemEditableRemoteObject, IP
updateDirtyIndicator(); updateDirtyIndicator();
} }
} }
}
/** /**
* Open the system editor * Open the system editor