1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Logging errors in addition to the error dialogs shown.

This commit is contained in:
Markus Schorn 2007-12-17 10:20:24 +00:00
parent 8f15241d85
commit dee3496d78

View file

@ -46,6 +46,7 @@ import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.Text; import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.dialogs.WizardDataTransferPage; import org.eclipse.ui.dialogs.WizardDataTransferPage;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.model.CModelException; import org.eclipse.cdt.core.model.CModelException;
import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.ICProject; import org.eclipse.cdt.core.model.ICProject;
@ -322,11 +323,14 @@ public class TeamProjectIndexExportWizardPage extends WizardDataTransferPage im
} catch (InterruptedException e) { } catch (InterruptedException e) {
return false; return false;
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
CCorePlugin.log(CCorePlugin.createStatus(Messages.TeamProjectIndexExportWizardPage_errorExporting,
e.getTargetException()));
displayErrorDialog(e.getTargetException()); displayErrorDialog(e.getTargetException());
return false; return false;
} }
if (!status.isOK()) { if (!status.isOK()) {
CCorePlugin.log(status);
ErrorDialog.openError(getContainer().getShell(), ErrorDialog.openError(getContainer().getShell(),
getErrorDialogTitle(), getErrorDialogTitle(),
null, // no special message null, // no special message