Lines 12-18
Link Here
|
12 |
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. |
12 |
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. |
13 |
* |
13 |
* |
14 |
* Contributors: |
14 |
* Contributors: |
15 |
* {Name} (company) - description of contribution. |
15 |
* Kevin Doyle (IBM) - [194463] Use the result of _editable.download() to decide if file is to be opened |
16 |
*******************************************************************************/ |
16 |
*******************************************************************************/ |
17 |
|
17 |
|
18 |
package org.eclipse.rse.internal.files.ui.view; |
18 |
package org.eclipse.rse.internal.files.ui.view; |
Lines 80-97
Link Here
|
80 |
|
80 |
|
81 |
public IStatus run(IProgressMonitor monitor) |
81 |
public IStatus run(IProgressMonitor monitor) |
82 |
{ |
82 |
{ |
|
|
83 |
boolean downloadSuccessful = false; |
83 |
try |
84 |
try |
84 |
{ |
85 |
{ |
85 |
IFile localFile = _editable.getLocalResource(); |
86 |
IFile localFile = _editable.getLocalResource(); |
86 |
SystemUniversalTempFileListener listener = SystemUniversalTempFileListener.getListener(); |
87 |
SystemUniversalTempFileListener listener = SystemUniversalTempFileListener.getListener(); |
87 |
listener.addIgnoreFile(localFile); |
88 |
listener.addIgnoreFile(localFile); |
88 |
_editable.download(monitor); |
89 |
downloadSuccessful = _editable.download(monitor); |
89 |
listener.removeIgnoreFile(localFile); |
90 |
listener.removeIgnoreFile(localFile); |
90 |
} |
91 |
} |
91 |
catch (Exception e) |
92 |
catch (Exception e) |
92 |
{ |
93 |
{ |
93 |
} |
94 |
} |
94 |
if (!monitor.isCanceled()) |
95 |
if (downloadSuccessful) |
95 |
{ |
96 |
{ |
96 |
OpenEditorRunnable oe = new OpenEditorRunnable(_editable, _systemEditor); |
97 |
OpenEditorRunnable oe = new OpenEditorRunnable(_editable, _systemEditor); |
97 |
Display.getDefault().asyncExec(oe); |
98 |
Display.getDefault().asyncExec(oe); |