[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[tm-cvs-commit] dmcknight org.eclipse.tm.rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources SystemTempFileListener.java
|
- From: Eclipse CVS Genie <genie@xxxxxxxxxxx>
- Date: Mon, 04 Jun 2012 15:30:32 +0000
- Delivered-to: tm-cvs-commit@eclipse.org
Update of /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources
In directory dev1:/tmp/cvs-serv29056/src/org/eclipse/rse/files/ui/resources
Modified Files:
SystemTempFileListener.java
Log Message:
[381482] Improper use of save participant is causing a workspace hang
Index: SystemTempFileListener.java
===================================================================
RCS file: /cvsroot/tools/org.eclipse.tm.rse/plugins/org.eclipse.rse.files.ui/src/org/eclipse/rse/files/ui/resources/SystemTempFileListener.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** SystemTempFileListener.java 25 Nov 2008 15:11:28 -0000 1.33
--- SystemTempFileListener.java 4 Jun 2012 15:30:30 -0000 1.34
***************
*** 1,4 ****
/*******************************************************************************
! * Copyright (c) 2002, 2008 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
--- 1,4 ----
/*******************************************************************************
! * Copyright (c) 2002, 2012 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
***************
*** 26,29 ****
--- 26,30 ----
* David McKnight (IBM) - [251631] NullPointerException in SystemTempFileListener
* David McKnight (IBM) - [256048] Saving a member open in Remote LPEX editor while Working Offline doesn't set the dirty property
+ * David McKnight (IBM) - [381482] Improper use of save participant is causing a workspace hang
*******************************************************************************/
***************
*** 69,72 ****
--- 70,74 ----
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IWorkbenchWindow;
+ import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.progress.UIJob;
import org.eclipse.ui.progress.WorkbenchJob;
***************
*** 96,107 ****
public void saving(ISaveContext context) throws CoreException {
-
// wait for completion of synch
! while (isSynching()){
! try {
! Thread.sleep(1000);
! }
! catch (Exception e){
!
}
}
--- 98,110 ----
public void saving(ISaveContext context) throws CoreException {
// wait for completion of synch
! if (PlatformUI.getWorkbench().isClosing() &&
! context.getKind() == ISaveContext.FULL_SAVE) {
! while (isSynching()){
! try {
! Thread.sleep(1000);
! }
! catch (Exception e){
! }
}
}