|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2008 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 23-31
Link Here
|
| 23 |
import org.eclipse.core.runtime.Path; |
23 |
import org.eclipse.core.runtime.Path; |
| 24 |
import org.eclipse.core.runtime.Platform; |
24 |
import org.eclipse.core.runtime.Platform; |
| 25 |
import org.eclipse.core.runtime.Status; |
25 |
import org.eclipse.core.runtime.Status; |
|
|
26 |
import org.eclipse.core.runtime.jobs.ISchedulingRule; |
| 26 |
import org.eclipse.core.runtime.jobs.Job; |
27 |
import org.eclipse.core.runtime.jobs.Job; |
|
|
28 |
|
| 29 |
import org.eclipse.swt.SWT; |
| 30 |
import org.eclipse.swt.events.SelectionAdapter; |
| 31 |
import org.eclipse.swt.events.SelectionEvent; |
| 32 |
import org.eclipse.swt.graphics.Image; |
| 33 |
import org.eclipse.swt.layout.GridData; |
| 34 |
import org.eclipse.swt.layout.GridLayout; |
| 35 |
import org.eclipse.swt.widgets.Button; |
| 36 |
import org.eclipse.swt.widgets.Composite; |
| 37 |
import org.eclipse.swt.widgets.Control; |
| 38 |
import org.eclipse.swt.widgets.Label; |
| 39 |
import org.eclipse.swt.widgets.Shell; |
| 40 |
import org.eclipse.swt.widgets.TableColumn; |
| 41 |
|
| 27 |
import org.eclipse.jface.dialogs.DialogTray; |
42 |
import org.eclipse.jface.dialogs.DialogTray; |
| 28 |
import org.eclipse.core.runtime.jobs.ISchedulingRule; |
|
|
| 29 |
import org.eclipse.jface.dialogs.IDialogConstants; |
43 |
import org.eclipse.jface.dialogs.IDialogConstants; |
| 30 |
import org.eclipse.jface.viewers.ArrayContentProvider; |
44 |
import org.eclipse.jface.viewers.ArrayContentProvider; |
| 31 |
import org.eclipse.jface.viewers.IBaseLabelProvider; |
45 |
import org.eclipse.jface.viewers.IBaseLabelProvider; |
|
Lines 38-56
Link Here
|
| 38 |
import org.eclipse.jface.viewers.TableViewer; |
52 |
import org.eclipse.jface.viewers.TableViewer; |
| 39 |
import org.eclipse.jface.viewers.Viewer; |
53 |
import org.eclipse.jface.viewers.Viewer; |
| 40 |
import org.eclipse.jface.viewers.ViewerComparator; |
54 |
import org.eclipse.jface.viewers.ViewerComparator; |
| 41 |
import org.eclipse.osgi.util.NLS; |
55 |
|
| 42 |
import org.eclipse.swt.SWT; |
|
|
| 43 |
import org.eclipse.swt.events.SelectionAdapter; |
| 44 |
import org.eclipse.swt.events.SelectionEvent; |
| 45 |
import org.eclipse.swt.graphics.Image; |
| 46 |
import org.eclipse.swt.layout.GridData; |
| 47 |
import org.eclipse.swt.layout.GridLayout; |
| 48 |
import org.eclipse.swt.widgets.Button; |
| 49 |
import org.eclipse.swt.widgets.Composite; |
| 50 |
import org.eclipse.swt.widgets.Control; |
| 51 |
import org.eclipse.swt.widgets.Label; |
| 52 |
import org.eclipse.swt.widgets.Shell; |
| 53 |
import org.eclipse.swt.widgets.TableColumn; |
| 54 |
import org.eclipse.ui.PlatformUI; |
56 |
import org.eclipse.ui.PlatformUI; |
| 55 |
import org.eclipse.ui.internal.IWorkbenchGraphicConstants; |
57 |
import org.eclipse.ui.internal.IWorkbenchGraphicConstants; |
| 56 |
import org.eclipse.ui.internal.IWorkbenchHelpContextIds; |
58 |
import org.eclipse.ui.internal.IWorkbenchHelpContextIds; |
|
Lines 60-66
Link Here
|
| 60 |
import org.eclipse.ui.internal.about.AboutBundleData; |
62 |
import org.eclipse.ui.internal.about.AboutBundleData; |
| 61 |
import org.eclipse.ui.internal.misc.StatusUtil; |
63 |
import org.eclipse.ui.internal.misc.StatusUtil; |
| 62 |
import org.eclipse.ui.internal.util.BundleUtility; |
64 |
import org.eclipse.ui.internal.util.BundleUtility; |
|
|
65 |
import org.eclipse.ui.progress.UIJob; |
| 63 |
import org.eclipse.ui.statushandlers.StatusManager; |
66 |
import org.eclipse.ui.statushandlers.StatusManager; |
|
|
67 |
|
| 68 |
import org.eclipse.osgi.util.NLS; |
| 64 |
import org.osgi.framework.Bundle; |
69 |
import org.osgi.framework.Bundle; |
| 65 |
|
70 |
|
| 66 |
/** |
71 |
/** |
|
Lines 86-91
Link Here
|
| 86 |
return rule == this; |
91 |
return rule == this; |
| 87 |
}}; |
92 |
}}; |
| 88 |
|
93 |
|
|
|
94 |
private Job sortingJob= new UIJob(getShell().getDisplay(), AboutPluginsDialog.class.getName()) { |
| 95 |
{ |
| 96 |
setRule(resolveRule); |
| 97 |
setSystem(true); |
| 98 |
setPriority(Job.DECORATE); |
| 99 |
} |
| 100 |
|
| 101 |
/* (non-Javadoc) |
| 102 |
* @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) |
| 103 |
*/ |
| 104 |
public IStatus runInUIThread(IProgressMonitor monitor) { |
| 105 |
fireLabelProviderChanged(new LabelProviderChangedEvent( |
| 106 |
BundleTableLabelProvider.this)); |
| 107 |
return Status.OK_STATUS; |
| 108 |
} |
| 109 |
}; |
| 110 |
|
| 89 |
/* (non-Javadoc) |
111 |
/* (non-Javadoc) |
| 90 |
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int) |
112 |
* @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int) |
| 91 |
*/ |
113 |
*/ |
|
Lines 115-120
Link Here
|
| 115 |
} |
137 |
} |
| 116 |
}); |
138 |
}); |
| 117 |
|
139 |
|
|
|
140 |
sortingJob.schedule(); |
| 118 |
|
141 |
|
| 119 |
return Status.OK_STATUS; |
142 |
return Status.OK_STATUS; |
| 120 |
} |
143 |
} |