mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-19 14:15:50 +02:00
[cleanup] Avoid using SystemStartHere in production code
This commit is contained in:
parent
95c9997567
commit
6a92276db8
1 changed files with 9 additions and 12 deletions
|
@ -102,9 +102,7 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi
|
||||||
if (!markFile.exists() && SystemPreferencesManager.getShowLocalConnection()) {
|
if (!markFile.exists() && SystemPreferencesManager.getShowLocalConnection()) {
|
||||||
// create the connection only if the local system type is enabled
|
// create the connection only if the local system type is enabled
|
||||||
IRSESystemType systemType = RSECorePlugin.getTheCoreRegistry().getSystemTypeById(IRSESystemType.SYSTEMTYPE_LOCAL_ID);
|
IRSESystemType systemType = RSECorePlugin.getTheCoreRegistry().getSystemTypeById(IRSESystemType.SYSTEMTYPE_LOCAL_ID);
|
||||||
if (systemType != null) {
|
if (systemType != null && systemType.isEnabled()) {
|
||||||
RSESystemTypeAdapter adapter = (RSESystemTypeAdapter)(systemType.getAdapter(RSESystemTypeAdapter.class));
|
|
||||||
if (adapter != null && adapter.isEnabled(systemType)) {
|
|
||||||
ISystemProfileManager profileManager = RSECorePlugin.getTheSystemProfileManager();
|
ISystemProfileManager profileManager = RSECorePlugin.getTheSystemProfileManager();
|
||||||
ISystemProfile profile = profileManager.getDefaultPrivateSystemProfile();
|
ISystemProfile profile = profileManager.getDefaultPrivateSystemProfile();
|
||||||
String userName = System.getProperty("user.name"); //$NON-NLS-1$
|
String userName = System.getProperty("user.name"); //$NON-NLS-1$
|
||||||
|
@ -115,7 +113,6 @@ public class RSEUIPlugin extends SystemBasePlugin implements ISystemMessageProvi
|
||||||
catch(Exception e){}
|
catch(Exception e){}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//System.err.println("InitRSEJob done"); //$NON-NLS-1$
|
//System.err.println("InitRSEJob done"); //$NON-NLS-1$
|
||||||
return Status.OK_STATUS;
|
return Status.OK_STATUS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue