|
Lines 15-20
import org.eclipse.core.runtime.IProgressMonitor;
Link Here
|
| 15 |
import org.eclipse.core.runtime.IStatus; |
15 |
import org.eclipse.core.runtime.IStatus; |
| 16 |
import org.eclipse.core.runtime.Platform; |
16 |
import org.eclipse.core.runtime.Platform; |
| 17 |
import org.eclipse.core.runtime.Status; |
17 |
import org.eclipse.core.runtime.Status; |
|
|
18 |
import org.eclipse.core.runtime.jobs.Job; |
| 18 |
import org.eclipse.jface.dialogs.IDialogConstants; |
19 |
import org.eclipse.jface.dialogs.IDialogConstants; |
| 19 |
import org.eclipse.jface.resource.JFaceResources; |
20 |
import org.eclipse.jface.resource.JFaceResources; |
| 20 |
import org.eclipse.swt.SWT; |
21 |
import org.eclipse.swt.SWT; |
|
Lines 29-35
import org.eclipse.ui.PlatformUI;
Link Here
|
| 29 |
import org.eclipse.ui.internal.ConfigurationInfo; |
30 |
import org.eclipse.ui.internal.ConfigurationInfo; |
| 30 |
import org.eclipse.ui.internal.IWorkbenchHelpContextIds; |
31 |
import org.eclipse.ui.internal.IWorkbenchHelpContextIds; |
| 31 |
import org.eclipse.ui.internal.WorkbenchMessages; |
32 |
import org.eclipse.ui.internal.WorkbenchMessages; |
| 32 |
import org.eclipse.ui.progress.WorkbenchJob; |
|
|
| 33 |
|
33 |
|
| 34 |
/** |
34 |
/** |
| 35 |
* Displays system information about the eclipse application. The content of |
35 |
* Displays system information about the eclipse application. The content of |
|
Lines 148-159
public final class AboutSystemPage extends ProductInfoPage {
Link Here
|
| 148 |
|
148 |
|
| 149 |
private void fetchConfigurationInfo(final Text text) { |
149 |
private void fetchConfigurationInfo(final Text text) { |
| 150 |
text.setText(WorkbenchMessages.AboutSystemPage_RetrievingSystemInfo); |
150 |
text.setText(WorkbenchMessages.AboutSystemPage_RetrievingSystemInfo); |
| 151 |
WorkbenchJob job = new WorkbenchJob( |
151 |
Job job = new Job( |
| 152 |
WorkbenchMessages.AboutSystemPage_FetchJobTitle) { |
152 |
WorkbenchMessages.AboutSystemPage_FetchJobTitle) { |
| 153 |
public IStatus runInUIThread(IProgressMonitor monitor) { |
153 |
public IStatus run(IProgressMonitor monitor) { |
| 154 |
String info = ConfigurationInfo.getSystemSummary(); |
154 |
final String info = ConfigurationInfo.getSystemSummary(); |
| 155 |
if (!text.isDisposed()) |
155 |
if (!text.isDisposed()) { |
| 156 |
text.setText(info); |
156 |
text.getDisplay().asyncExec(new Runnable() { |
|
|
157 |
|
| 158 |
@Override |
| 159 |
public void run() { |
| 160 |
if (!text.isDisposed()) |
| 161 |
text.setText(info); |
| 162 |
|
| 163 |
} |
| 164 |
}); |
| 165 |
} |
| 157 |
return Status.OK_STATUS; |
166 |
return Status.OK_STATUS; |
| 158 |
} |
167 |
} |
| 159 |
}; |
168 |
}; |
| 160 |
- |
|
|