1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[cleanup] Deprecate "Initialize RSE" Job name

This commit is contained in:
Martin Oberhuber 2008-09-02 17:53:12 +00:00
parent 6a6303d8ce
commit 1dff8ab352

View file

@ -52,7 +52,10 @@ import org.eclipse.rse.services.clientserver.SystemEncodingUtil;
public final class RSEInitJob extends Job {
/**
* The name of this job. This is API. Clients may use this name to find this job by name.
* The name of this job. This is API. Clients may use this name to find this
* job by name.
*
* @deprecated use {@link RSECorePlugin#isInitComplete(int)}
*/
public final static String NAME = "Initialize RSE"; //$NON-NLS-1$
@ -217,16 +220,16 @@ public final class RSEInitJob extends Job {
}
submonitor.done();
}
// set the default encoding provider
SystemEncodingUtil encodingUtil = SystemEncodingUtil.getInstance();
encodingUtil.setDefaultEncodingProvider(
new SystemEncodingUtil.DefaultEncodingProvider(){
public String getLocalDefaultEncoding() {
return ResourcesPlugin.getEncoding();
return ResourcesPlugin.getEncoding();
}
});
initializerPhase.done(result);
// finish up - propogate cancel if necessary
if (monitor.isCanceled()) {
@ -315,7 +318,7 @@ public final class RSEInitJob extends Job {
waitForCompletion(RSECorePlugin.INIT_ALL);
return getResult();
}
/**
* Wait for the completion of a particular phase
* @param phase the phase to wait for