|
Lines 90-96
Link Here
|
| 90 |
final StatusInfo statusInfo = new StatusInfo(statusAdapter); |
90 |
final StatusInfo statusInfo = new StatusInfo(statusAdapter); |
| 91 |
|
91 |
|
| 92 |
if (!PlatformUI.isWorkbenchRunning()) { |
92 |
if (!PlatformUI.isWorkbenchRunning()) { |
| 93 |
// we are shuttting down, so just log |
93 |
// we are shutting down, so just log |
| 94 |
WorkbenchPlugin.log(statusInfo.getStatus().getStatus()); |
94 |
WorkbenchPlugin.log(statusInfo.getStatus().getStatus()); |
| 95 |
return; |
95 |
return; |
| 96 |
} |
96 |
} |
|
Lines 127-135
Link Here
|
| 127 |
Display.getDefault().asyncExec(new Runnable() { |
127 |
Display.getDefault().asyncExec(new Runnable() { |
| 128 |
public void run() { |
128 |
public void run() { |
| 129 |
dialog = new StatusDialog(ProgressManagerUtil |
129 |
dialog = new StatusDialog(ProgressManagerUtil |
| 130 |
.getDefaultParent(), statusInfo, IStatus.OK |
130 |
.getDefaultParent(), statusInfo, IStatus.INFO |
| 131 |
| IStatus.INFO | IStatus.WARNING |
131 |
| IStatus.WARNING | IStatus.ERROR, modal); |
| 132 |
| IStatus.ERROR, modal); |
|
|
| 133 |
dialog.open(); |
132 |
dialog.open(); |
| 134 |
dialog.getShell().addDisposeListener(disposeListener); |
133 |
dialog.getShell().addDisposeListener(disposeListener); |
| 135 |
} |
134 |
} |
|
Lines 157-164
Link Here
|
| 157 |
dialog.getShell().removeDisposeListener(disposeListener); |
156 |
dialog.getShell().removeDisposeListener(disposeListener); |
| 158 |
dialog.close(); |
157 |
dialog.close(); |
| 159 |
dialog = new StatusDialog(ProgressManagerUtil.getDefaultParent(), |
158 |
dialog = new StatusDialog(ProgressManagerUtil.getDefaultParent(), |
| 160 |
statusInfo, IStatus.OK | IStatus.INFO | IStatus.WARNING |
159 |
statusInfo, IStatus.INFO | IStatus.WARNING | IStatus.ERROR, |
| 161 |
| IStatus.ERROR, modal); |
160 |
modal); |
| 162 |
|
161 |
|
| 163 |
dialog.open(); |
162 |
dialog.open(); |
| 164 |
dialog.getShell().addDisposeListener(disposeListener); |
163 |
dialog.getShell().addDisposeListener(disposeListener); |