From 8fab345f078e511f8178d8e55661280a22d17997 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Fri, 28 Jun 2013 09:11:26 -0400 Subject: [PATCH] [411820] getResource() wrong for event generated in FileSubSystemOutputStream.close() --- .../core/servicesubsystem/FileSubSystemOutputStream.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileSubSystemOutputStream.java b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileSubSystemOutputStream.java index 18ba5f861da..ce97d3d2b24 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileSubSystemOutputStream.java +++ b/rse/plugins/org.eclipse.rse.subsystems.files.core/src/org/eclipse/rse/subsystems/files/core/servicesubsystem/FileSubSystemOutputStream.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2008 IBM Corporation and others. + * Copyright (c) 2007, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -11,6 +11,7 @@ * * Contributors: * David McKnight (IBM) - [207100] decorated output stream + * David McKnight (IBM) - [411820] getResource() wrong for event generated in FileSubSystemOutputStream.close() *******************************************************************************/ package org.eclipse.rse.subsystems.files.core.servicesubsystem; @@ -51,7 +52,7 @@ public class FileSubSystemOutputStream extends OutputStream { // notify that the file was uploaded ISystemRegistry sr = RSECorePlugin.getTheSystemRegistry(); - sr.fireEvent(new SystemRemoteChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_UPLOADED, _remoteParent, _remoteFile, _fs)); + sr.fireEvent(new SystemRemoteChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_UPLOADED, _remoteFile, _remoteParent, _fs)); } public void flush() throws IOException {