|
27 | 27 | import org.eclipse.core.internal.resources.Workspace;
|
28 | 28 | import org.eclipse.core.internal.utils.Messages;
|
29 | 29 | import org.eclipse.core.internal.utils.Policy;
|
30 |
| -import org.eclipse.core.runtime.*; |
| 30 | +import org.eclipse.core.runtime.CoreException; |
| 31 | +import org.eclipse.core.runtime.IProgressMonitor; |
| 32 | +import org.eclipse.core.runtime.IStatus; |
| 33 | +import org.eclipse.core.runtime.Platform; |
| 34 | +import org.eclipse.core.runtime.Plugin; |
| 35 | +import org.eclipse.core.runtime.Status; |
31 | 36 | import org.eclipse.core.runtime.jobs.IJobManager;
|
32 | 37 | import org.eclipse.core.runtime.jobs.Job;
|
33 | 38 | import org.eclipse.osgi.service.datalocation.Location;
|
34 | 39 | import org.eclipse.osgi.service.debug.DebugOptions;
|
35 | 40 | import org.eclipse.osgi.service.debug.DebugOptionsListener;
|
36 |
| -import org.osgi.framework.*; |
| 41 | +import org.osgi.framework.BundleActivator; |
| 42 | +import org.osgi.framework.BundleContext; |
| 43 | +import org.osgi.framework.ServiceReference; |
| 44 | +import org.osgi.framework.ServiceRegistration; |
37 | 45 | import org.osgi.util.tracker.ServiceTracker;
|
38 | 46 | import org.osgi.util.tracker.ServiceTrackerCustomizer;
|
39 | 47 |
|
@@ -169,6 +177,18 @@ public final class ResourcesPlugin extends Plugin {
|
169 | 177 | */
|
170 | 178 | public static final Object FAMILY_MANUAL_REFRESH = new Object();
|
171 | 179 |
|
| 180 | + /** |
| 181 | + * Constant identifying the job family identifier for a background workspace |
| 182 | + * snapshot job. All clients that schedule background jobs for performing |
| 183 | + * background workspace snapshots should include this job family in their |
| 184 | + * implementation of <code>belongsTo</code>. |
| 185 | + * |
| 186 | + * @see IJobManager#join(Object, IProgressMonitor) |
| 187 | + * @see Job#belongsTo(Object) |
| 188 | + * @since 3.21 |
| 189 | + */ |
| 190 | + public static final Object FAMILY_SNAPSHOT = new Object(); |
| 191 | + |
172 | 192 | /**
|
173 | 193 | * Name of a preference indicating the encoding to use when reading text files
|
174 | 194 | * in the workspace. The value is a string, and may be the default empty string,
|
|
0 commit comments