mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-19 06:05:56 +02:00
[281712] [dstore] Warning message is needed when disk is full
This commit is contained in:
parent
14714c05e1
commit
fee9bcda5c
3 changed files with 7 additions and 8 deletions
|
@ -13,6 +13,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* David McKnight (IBM) [224906] [dstore] changes for getting properties and doing exit due to single-process capability
|
* David McKnight (IBM) [224906] [dstore] changes for getting properties and doing exit due to single-process capability
|
||||||
|
* David McKnight (IBM) [281712] [dstore] Warning message is needed when disk is full
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.dstore.core.model;
|
package org.eclipse.dstore.core.model;
|
||||||
|
@ -178,8 +179,6 @@ public class ByteStreamHandler implements IByteStreamHandler
|
||||||
{
|
{
|
||||||
FileOutputStream outStream = new FileOutputStream(fileName, true);
|
FileOutputStream outStream = new FileOutputStream(fileName, true);
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (binary)
|
if (binary)
|
||||||
{
|
{
|
||||||
outStream.write(buffer, 0, size);
|
outStream.write(buffer, 0, size);
|
||||||
|
@ -191,11 +190,6 @@ public class ByteStreamHandler implements IByteStreamHandler
|
||||||
byte[] convertedBytes = byteConverter.convertClientBytesToHostBytes(buffer, 0, size);
|
byte[] convertedBytes = byteConverter.convertClientBytesToHostBytes(buffer, 0, size);
|
||||||
outStream.write(convertedBytes, 0, convertedBytes.length);
|
outStream.write(convertedBytes, 0, convertedBytes.length);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
_dataStore.trace(e);
|
|
||||||
}
|
|
||||||
|
|
||||||
outStream.close();
|
outStream.close();
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
* David McKnight (IBM) - [251136] Error copying local file to remote system when temp file is readonly
|
* David McKnight (IBM) - [251136] Error copying local file to remote system when temp file is readonly
|
||||||
* David McKnight (IBM) - [276103] Files with names in different cases are not handled properly
|
* David McKnight (IBM) - [276103] Files with names in different cases are not handled properly
|
||||||
* David McKnight (IBM) - [276534] Cache Conflict After Synchronization when Browsing Remote System with Case-Differentiated-Only Filenames
|
* David McKnight (IBM) - [276534] Cache Conflict After Synchronization when Browsing Remote System with Case-Differentiated-Only Filenames
|
||||||
|
* David McKnight (IBM) - [281712] [dstore] Warning message is needed when disk is full
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.files.ui.resources;
|
package org.eclipse.rse.files.ui.resources;
|
||||||
|
@ -255,7 +256,7 @@ public class UniversalFileTransferUtility {
|
||||||
|
|
||||||
boolean available = true;
|
boolean available = true;
|
||||||
try {
|
try {
|
||||||
tempFileAvailable(tempFile, srcFileOrFolder);
|
available = tempFileAvailable(tempFile, srcFileOrFolder);
|
||||||
}
|
}
|
||||||
catch (RemoteFileIOException e){
|
catch (RemoteFileIOException e){
|
||||||
// this is the case where a temp file exists for a file of a different case
|
// this is the case where a temp file exists for a file of a different case
|
||||||
|
@ -1990,10 +1991,12 @@ public class UniversalFileTransferUtility {
|
||||||
|
|
||||||
catch (RemoteFileIOException e)
|
catch (RemoteFileIOException e)
|
||||||
{
|
{
|
||||||
|
SystemMessageDialog.displayMessage(e);
|
||||||
return e.getSystemMessage();
|
return e.getSystemMessage();
|
||||||
}
|
}
|
||||||
catch (SystemMessageException e)
|
catch (SystemMessageException e)
|
||||||
{
|
{
|
||||||
|
SystemMessageDialog.displayMessage(e);
|
||||||
return e.getSystemMessage();
|
return e.getSystemMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,6 +58,7 @@
|
||||||
* David McKnight (IBM) - [278411] [dstore] upload status needs to be created in standard form when using windows server
|
* David McKnight (IBM) - [278411] [dstore] upload status needs to be created in standard form when using windows server
|
||||||
* David McKnight (IBM) - [279014] [dstore][encoding] text file corruption can occur when downloading from UTF8 to cp1252
|
* David McKnight (IBM) - [279014] [dstore][encoding] text file corruption can occur when downloading from UTF8 to cp1252
|
||||||
* David McKnight (IBM) - [279695] [dstore] Connection file encoding is not refreshed from the host
|
* David McKnight (IBM) - [279695] [dstore] Connection file encoding is not refreshed from the host
|
||||||
|
* David McKnight (IBM) - [281712] [dstore] Warning message is needed when disk is full
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.services.dstore.files;
|
package org.eclipse.rse.internal.services.dstore.files;
|
||||||
|
@ -562,6 +563,7 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
|
||||||
// upload bytes while available
|
// upload bytes while available
|
||||||
while (available > 0 && !isCancelled)
|
while (available > 0 && !isCancelled)
|
||||||
{
|
{
|
||||||
|
result.setAttribute(DE.A_SOURCE, "working"); //$NON-NLS-1$
|
||||||
|
|
||||||
numToRead = (available < buffer_size) ? available : buffer_size;
|
numToRead = (available < buffer_size) ? available : buffer_size;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue