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:
parent
8f15241d85
commit
dee3496d78
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue