### Eclipse Workspace Patch 1.0 #P org.eclipse.ui.ide Index: src/org/eclipse/ui/internal/ide/IDEWorkbenchMessages.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchMessages.java,v retrieving revision 1.71 diff -u -r1.71 IDEWorkbenchMessages.java --- src/org/eclipse/ui/internal/ide/IDEWorkbenchMessages.java 10 Dec 2009 11:21:22 -0000 1.71 +++ src/org/eclipse/ui/internal/ide/IDEWorkbenchMessages.java 22 Jan 2010 20:06:25 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2009 IBM Corporation and others. + * Copyright (c) 2005, 2010 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 @@ -868,6 +868,10 @@ public static String UnsupportedVM_message; public static String IDEWorkbenchActivityHelper_jobName; + + public static String OpenDelayedFileAction_title; + public static String OpenDelayedFileAction_message_errorOnOpen; + public static String OpenDelayedFileAction_message_fileNotFound; static { // load message values from bundle file Index: src/org/eclipse/ui/internal/ide/messages.properties =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/messages.properties,v retrieving revision 1.182 diff -u -r1.182 messages.properties --- src/org/eclipse/ui/internal/ide/messages.properties 10 Dec 2009 16:55:18 -0000 1.182 +++ src/org/eclipse/ui/internal/ide/messages.properties 22 Jan 2010 20:06:25 -0000 @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2000, 2009 IBM Corporation and others. +# Copyright (c) 2000, 2010 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 @@ -881,4 +881,9 @@ SystemSettingsChange_no = No UnsupportedVM_message=GCJ has been detected as the current Java virtual machine. Use of GCJ is untested and unsupported. Please consult the documentation for more information. -IDEWorkbenchActivityHelper_jobName=Update Capability Enablement for Natures \ No newline at end of file +IDEWorkbenchActivityHelper_jobName=Update Capability Enablement for Natures + +OpenDelayedFileAction_title = Open File +OpenDelayedFileAction_message_errorOnOpen = The file ''{0}'' could not be opened.\nSee log for details. +OpenDelayedFileAction_message_fileNotFound= The file ''{0}'' could not be found. + #P org.eclipse.ui.ide.application Index: META-INF/MANIFEST.MF =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.ui.ide.application/META-INF/MANIFEST.MF,v retrieving revision 1.14 diff -u -r1.14 MANIFEST.MF --- META-INF/MANIFEST.MF 1 Sep 2009 04:32:22 -0000 1.14 +++ META-INF/MANIFEST.MF 22 Jan 2010 20:06:26 -0000 @@ -12,7 +12,8 @@ org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)", org.eclipse.ui;bundle-version="[3.5.0,4.0.0)", org.eclipse.ui.navigator.resources;bundle-version="[3.4.0,4.0.0)", - org.eclipse.core.net;bundle-version="[1.0.0,2.0.0)" + org.eclipse.core.net;bundle-version="[1.0.0,2.0.0)", + org.eclipse.core.filesystem;bundle-version="1.3.0" Export-Package: org.eclipse.ui.internal.ide.application;x-internal:=true, org.eclipse.ui.internal.ide.application.dialogs;x-internal:=true Import-Package: com.ibm.icu.text Index: src/org/eclipse/ui/internal/ide/application/DelayedEventsProcessor.java =================================================================== RCS file: src/org/eclipse/ui/internal/ide/application/DelayedEventsProcessor.java diff -N src/org/eclipse/ui/internal/ide/application/DelayedEventsProcessor.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/ui/internal/ide/application/DelayedEventsProcessor.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,115 @@ +/******************************************************************************* + * Copyright (c) 2010 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 + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + ******************************************************************************/ + +package org.eclipse.ui.internal.ide.application; + +import java.util.ArrayList; + +import org.eclipse.core.filesystem.EFS; +import org.eclipse.core.filesystem.IFileInfo; +import org.eclipse.core.filesystem.IFileStore; +import org.eclipse.core.runtime.Path; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.osgi.util.NLS; +import org.eclipse.swt.SWT; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Event; +import org.eclipse.swt.widgets.Listener; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.IWorkbenchWindow; +import org.eclipse.ui.PartInitException; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.ide.IDE; +import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; +import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; + +/** + * Helper class used to process delayed events. + * Events currently supported: + *