|
Lines 24-29
Link Here
|
| 24 |
* David McKnight (IBM) - [225747] [dstore] Trying to connect to an "Offline" system throws an NPE |
24 |
* David McKnight (IBM) - [225747] [dstore] Trying to connect to an "Offline" system throws an NPE |
| 25 |
* David McKnight (IBM) - [235221] Files truncated on exit of Eclipse |
25 |
* David McKnight (IBM) - [235221] Files truncated on exit of Eclipse |
| 26 |
* David McKnight (IBM) - [251631] NullPointerException in SystemTempFileListener |
26 |
* David McKnight (IBM) - [251631] NullPointerException in SystemTempFileListener |
|
|
27 |
* David McKnight (IBM) - [256048] Saving a member open in Remote LPEX editor while Working Offline doesn't set the dirty property |
| 27 |
*******************************************************************************/ |
28 |
*******************************************************************************/ |
| 28 |
|
29 |
|
| 29 |
package org.eclipse.rse.files.ui.resources; |
30 |
package org.eclipse.rse.files.ui.resources; |
|
Lines 684-711
Link Here
|
| 684 |
} |
685 |
} |
| 685 |
|
686 |
|
| 686 |
// attempt the remote file synchronization |
687 |
// attempt the remote file synchronization |
| 687 |
if (doesHandle(fs) && !fs.isOffline()) |
688 |
if (doesHandle(fs)) |
| 688 |
{ |
689 |
{ |
| 689 |
// see if we're connected |
690 |
if (!fs.isOffline()){ |
| 690 |
try |
691 |
// see if we're connected |
| 691 |
{ |
692 |
try |
| 692 |
// check that the remote file system is connected |
|
|
| 693 |
// if not, attempt to connect to it |
| 694 |
if (!fs.isConnected()) |
| 695 |
{ |
693 |
{ |
| 696 |
fs.connect(false, null); |
694 |
// check that the remote file system is connected |
|
|
695 |
// if not, attempt to connect to it |
| 696 |
if (!fs.isConnected()) |
| 697 |
{ |
| 698 |
// make sure we connect synchronously from here |
| 699 |
fs.connect(monitor, false); |
| 700 |
} |
| 701 |
} |
| 702 |
catch (Exception e) |
| 703 |
{ |
| 704 |
// unable to connect to the remote server |
| 705 |
// do not attempt synchronization |
| 706 |
// instead, defer synchronization to later but allow user to edit |
| 707 |
// set the dirty flag to indicate that this file needs resynchronization |
| 708 |
properties.setDirty(true); |
| 709 |
return; |
| 697 |
} |
710 |
} |
| 698 |
} |
711 |
} |
| 699 |
catch (Exception e) |
712 |
doResourceSynchronization(fs, file, uploadPath, monitor); |
| 700 |
{ |
|
|
| 701 |
// unable to connect to the remote server |
| 702 |
// do not attempt synchronization |
| 703 |
// instead, defer synchronization to later but allow user to edit |
| 704 |
// set the dirty flag to indicate that this file needs resynchronization |
| 705 |
properties.setDirty(true); |
| 706 |
return; |
| 707 |
} |
| 708 |
doResourceSynchronization(fs, file, uploadPath, monitor); |
| 709 |
} |
713 |
} |
| 710 |
} |
714 |
} |
| 711 |
} |
715 |
} |