mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +02:00
[cleanup] Deprecate "Initialize RSE" Job name
This commit is contained in:
parent
6a6303d8ce
commit
1dff8ab352
1 changed files with 8 additions and 5 deletions
|
@ -52,7 +52,10 @@ import org.eclipse.rse.services.clientserver.SystemEncodingUtil;
|
||||||
public final class RSEInitJob extends Job {
|
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$
|
public final static String NAME = "Initialize RSE"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
@ -217,16 +220,16 @@ public final class RSEInitJob extends Job {
|
||||||
}
|
}
|
||||||
submonitor.done();
|
submonitor.done();
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the default encoding provider
|
// set the default encoding provider
|
||||||
SystemEncodingUtil encodingUtil = SystemEncodingUtil.getInstance();
|
SystemEncodingUtil encodingUtil = SystemEncodingUtil.getInstance();
|
||||||
encodingUtil.setDefaultEncodingProvider(
|
encodingUtil.setDefaultEncodingProvider(
|
||||||
new SystemEncodingUtil.DefaultEncodingProvider(){
|
new SystemEncodingUtil.DefaultEncodingProvider(){
|
||||||
public String getLocalDefaultEncoding() {
|
public String getLocalDefaultEncoding() {
|
||||||
return ResourcesPlugin.getEncoding();
|
return ResourcesPlugin.getEncoding();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
initializerPhase.done(result);
|
initializerPhase.done(result);
|
||||||
// finish up - propogate cancel if necessary
|
// finish up - propogate cancel if necessary
|
||||||
if (monitor.isCanceled()) {
|
if (monitor.isCanceled()) {
|
||||||
|
@ -315,7 +318,7 @@ public final class RSEInitJob extends Job {
|
||||||
waitForCompletion(RSECorePlugin.INIT_ALL);
|
waitForCompletion(RSECorePlugin.INIT_ALL);
|
||||||
return getResult();
|
return getResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wait for the completion of a particular phase
|
* Wait for the completion of a particular phase
|
||||||
* @param phase the phase to wait for
|
* @param phase the phase to wait for
|
||||||
|
|
Loading…
Add table
Reference in a new issue