eclipse plugin: Ignore the OperationCanceledException...
...while setting up the workspace
This commit is contained in:
parent
bbd268d038
commit
33fe62c579
1 changed files with 9 additions and 3 deletions
|
@ -25,6 +25,7 @@ import org.eclipse.core.resources.WorkspaceJob;
|
|||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.core.runtime.IStatus;
|
||||
import org.eclipse.core.runtime.OperationCanceledException;
|
||||
import org.eclipse.core.runtime.Status;
|
||||
import org.eclipse.jface.preference.PreferenceDialog;
|
||||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
|
@ -398,9 +399,14 @@ public class WorkspaceUtils
|
|||
projectName = "_Mainline_" + file.getName( ); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
ProjectUtils.createWesnothProject( projectName,
|
||||
file.getAbsolutePath( ),
|
||||
paths.getInstallName( ), monitor );
|
||||
try {
|
||||
ProjectUtils.createWesnothProject( projectName,
|
||||
file.getAbsolutePath( ),
|
||||
paths.getInstallName( ), monitor );
|
||||
} catch( OperationCanceledException e ) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
|
||||
monitor.worked( 10 );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue