mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
Replace RSEUIPlugin.getDefault().getSystemRegistry by getTheSystemRegistry()
This commit is contained in:
parent
b8052d89db
commit
5c4fec2dca
24 changed files with 49 additions and 49 deletions
|
@ -103,7 +103,7 @@ public class ServiceDiscoveryWizard extends Wizard {
|
|||
try {
|
||||
conn = registry.createHost("Discovery", "Discovery@" + hostName, hostName, "Discovered services in "+hostName);//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$;
|
||||
} catch (Exception e) {
|
||||
RSEUIPlugin.getDefault().getSystemRegistry().deleteHost(conn);
|
||||
RSEUIPlugin.getTheSystemRegistry().deleteHost(conn);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -181,7 +181,7 @@ public class ServiceDiscoveryWizard extends Wizard {
|
|||
}
|
||||
}
|
||||
|
||||
RSEUIPlugin.getDefault().getSystemRegistry().expandHost(conn);
|
||||
RSEUIPlugin.getTheSystemRegistry().expandHost(conn);
|
||||
}
|
||||
|
||||
systemRefreshAllAction.run();
|
||||
|
|
|
@ -121,7 +121,7 @@ public class ConnectionStatusListener implements IDomainListener, IRunnableWithP
|
|||
IRunnableContext runnableContext = getRunnableContext(getShell());
|
||||
runnableContext.run(false,true,_listener); // inthread, cancellable, IRunnableWithProgress
|
||||
_connection.reset();
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.connectedStatusChange(_connection.getPrimarySubSystem(), false, true, true);
|
||||
}
|
||||
catch (InterruptedException exc) // user cancelled
|
||||
|
|
|
@ -243,7 +243,7 @@ public class SshConnectorService extends StandardConnectorService implements ISs
|
|||
//runnableContext.run(false,true,this); // inthread, cancellable, IRunnableWithProgress
|
||||
runnableContext.run(true,true,this); // fork, cancellable, IRunnableWithProgress
|
||||
_connection.reset();
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.connectedStatusChange(_connection.getPrimarySubSystem(), false, true, true);
|
||||
}
|
||||
catch (InterruptedException exc) // user cancelled
|
||||
|
|
|
@ -136,7 +136,7 @@ public class SystemRemoteCommandEntryForm extends Composite
|
|||
IHost sysConn = sysConnCombo.getHost();
|
||||
if ( sysConn != null )
|
||||
{
|
||||
//SubSystem[] cmdSubSystems = RSEUIPlugin.getDefault().getSystemRegistry().getSubSystemsBySubSystemConfigurationCategory(ISubSystemConfigurationCategories.SUBSYSTEM_CATEGORY_CMDS, sysConn);
|
||||
//SubSystem[] cmdSubSystems = RSEUIPlugin.getTheSystemRegistry().getSubSystemsBySubSystemConfigurationCategory(ISubSystemConfigurationCategories.SUBSYSTEM_CATEGORY_CMDS, sysConn);
|
||||
IRemoteCmdSubSystem[] cmdSubSystems = RemoteCommandHelpers.getCmdSubSystems(sysConn);
|
||||
IRemoteCmdSubSystem currSubSystem = null;
|
||||
String subSystemName = subSysCombo.getText();
|
||||
|
@ -210,7 +210,7 @@ public class SystemRemoteCommandEntryForm extends Composite
|
|||
IHost sysConn = sysConnCombo.getHost();
|
||||
if ( sysConn != null )
|
||||
{
|
||||
//subSystems = RSEUIPlugin.getDefault().getSystemRegistry().getSubSystemsBySubSystemConfigurationCategory(ISubSystemConfigurationCategories.SUBSYSTEM_CATEGORY_CMDS, sysConn);
|
||||
//subSystems = RSEUIPlugin.getTheSystemRegistry().getSubSystemsBySubSystemConfigurationCategory(ISubSystemConfigurationCategories.SUBSYSTEM_CATEGORY_CMDS, sysConn);
|
||||
subSystems = RemoteCommandHelpers.getCmdSubSystems(sysConn);
|
||||
for (int i = 0; i < subSystems.length; i++)
|
||||
{
|
||||
|
|
|
@ -1395,7 +1395,7 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
|
|||
case CommunicationsEvent.AFTER_DISCONNECT :
|
||||
_cachedRemoteFiles.clear();
|
||||
// DKM - taking this out because it causes an exception when the event occurs in Modal Context
|
||||
//SystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
//SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
//sr.connectedStatusChange(this, false, true, true);
|
||||
getConnectorService().removeCommunicationsListener(this);
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ public class SystemMoveDownConnectionAction extends SystemBaseAction
|
|||
public boolean updateSelection(IStructuredSelection selection)
|
||||
{
|
||||
boolean enable = true;
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
prevProfile = null;
|
||||
Iterator e = selection.iterator();
|
||||
while (enable && e.hasNext())
|
||||
|
@ -94,7 +94,7 @@ public class SystemMoveDownConnectionAction extends SystemBaseAction
|
|||
*/
|
||||
public void run()
|
||||
{
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
SystemSortableSelection[] sortableArray = SystemSortableSelection.makeSortableArray(getSelection());
|
||||
IHost conn = null;
|
||||
for (int idx=0; idx<sortableArray.length; idx++)
|
||||
|
|
|
@ -62,7 +62,7 @@ public class SystemMoveUpConnectionAction extends SystemBaseAction
|
|||
public boolean updateSelection(IStructuredSelection selection)
|
||||
{
|
||||
boolean enable = true;
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
prevProfile = null;
|
||||
Iterator e = selection.iterator();
|
||||
while (enable && e.hasNext())
|
||||
|
@ -93,7 +93,7 @@ public class SystemMoveUpConnectionAction extends SystemBaseAction
|
|||
*/
|
||||
public void run()
|
||||
{
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
|
||||
SystemSortableSelection[] sortableArray = SystemSortableSelection.makeSortableArray(getSelection());
|
||||
IHost conn = null;
|
||||
|
|
|
@ -65,7 +65,7 @@ public class SystemPreferenceQualifyConnectionNamesAction extends SystemBaseActi
|
|||
*/
|
||||
private void firePreferenceChangeEvent(int type, boolean oldValue, boolean newValue)
|
||||
{
|
||||
RSEUIPlugin.getDefault().getSystemRegistry().fireEvent(
|
||||
RSEUIPlugin.getTheSystemRegistry().fireEvent(
|
||||
new SystemPreferenceChangeEvent(type,
|
||||
oldValue ? Boolean.TRUE : Boolean.FALSE,
|
||||
newValue ? Boolean.TRUE : Boolean.FALSE));
|
||||
|
|
|
@ -63,7 +63,7 @@ public class SystemPreferenceRestoreStateAction extends SystemBaseAction
|
|||
*/
|
||||
private void firePreferenceChangeEvent(int type, boolean oldValue, boolean newValue)
|
||||
{
|
||||
RSEUIPlugin.getDefault().getSystemRegistry().fireEvent(
|
||||
RSEUIPlugin.getTheSystemRegistry().fireEvent(
|
||||
new SystemPreferenceChangeEvent(type,
|
||||
oldValue ? Boolean.TRUE : Boolean.FALSE,
|
||||
newValue ? Boolean.TRUE : Boolean.FALSE));
|
||||
|
|
|
@ -64,7 +64,7 @@ public class SystemPreferenceShowFilterPoolsAction extends SystemBaseAction
|
|||
*/
|
||||
private void firePreferenceChangeEvent(int type, boolean oldValue, boolean newValue)
|
||||
{
|
||||
RSEUIPlugin.getDefault().getSystemRegistry().fireEvent(
|
||||
RSEUIPlugin.getTheSystemRegistry().fireEvent(
|
||||
new SystemPreferenceChangeEvent(type,
|
||||
oldValue ? Boolean.TRUE : Boolean.FALSE,
|
||||
newValue ? Boolean.TRUE : Boolean.FALSE));
|
||||
|
|
|
@ -121,7 +121,7 @@ public class SystemUpdateConnectionDialog extends SystemPromptDialog implements
|
|||
if (closeDialog)
|
||||
{
|
||||
IHost conn = (IHost)getInputObject();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.updateHost( conn,conn.getSystemType().getName(),form.getConnectionName(),form.getHostName(),
|
||||
form.getConnectionDescription(), form.getDefaultUserId(),
|
||||
form.getUserIdLocation() );
|
||||
|
|
|
@ -343,7 +343,7 @@ public class SystemFilterWorkWithFilterPoolsDialog
|
|||
|
||||
public boolean close()
|
||||
{
|
||||
//RSEUIPlugin.getDefault().getSystemRegistry().removeSystemResourceChangeListener(this);
|
||||
//RSEUIPlugin.getTheSystemRegistry().removeSystemResourceChangeListener(this);
|
||||
return super.close();
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -200,7 +200,7 @@ public class RemoteSystemsPreferencePage
|
|||
boolean newValue = showFilterPoolsEditor.getBooleanValue();
|
||||
if (newValue != lastShowFilterPoolsValue)
|
||||
{
|
||||
RSEUIPlugin.getDefault().getSystemRegistry().setShowFilterPools(newValue);
|
||||
RSEUIPlugin.getTheSystemRegistry().setShowFilterPools(newValue);
|
||||
firePreferenceChangeEvent(ISystemPreferenceChangeEvents.EVENT_SHOWFILTERPOOLS,lastShowFilterPoolsValue,newValue);
|
||||
}
|
||||
lastShowFilterPoolsValue = newValue;
|
||||
|
@ -210,7 +210,7 @@ public class RemoteSystemsPreferencePage
|
|||
boolean newValue = showNewConnectionPromptEditor.getBooleanValue();
|
||||
if (newValue != lastShowNewConnectionPromptValue)
|
||||
{
|
||||
RSEUIPlugin.getDefault().getSystemRegistry().setShowNewHostPrompt(newValue);
|
||||
RSEUIPlugin.getTheSystemRegistry().setShowNewHostPrompt(newValue);
|
||||
}
|
||||
lastShowNewConnectionPromptValue = newValue;
|
||||
}
|
||||
|
@ -219,7 +219,7 @@ public class RemoteSystemsPreferencePage
|
|||
boolean newValue = qualifyConnectionNamesEditor.getBooleanValue();
|
||||
if (newValue != lastQualifyConnectionNamesValue)
|
||||
{
|
||||
RSEUIPlugin.getDefault().getSystemRegistry().setQualifiedHostNames(newValue);
|
||||
RSEUIPlugin.getTheSystemRegistry().setQualifiedHostNames(newValue);
|
||||
firePreferenceChangeEvent(ISystemPreferenceChangeEvents.EVENT_QUALIFYCONNECTIONNAMES,lastQualifyConnectionNamesValue,newValue);
|
||||
}
|
||||
lastQualifyConnectionNamesValue = newValue;
|
||||
|
@ -242,7 +242,7 @@ public class RemoteSystemsPreferencePage
|
|||
*/
|
||||
private void firePreferenceChangeEvent(int type, boolean oldValue, boolean newValue)
|
||||
{
|
||||
RSEUIPlugin.getDefault().getSystemRegistry().fireEvent(
|
||||
RSEUIPlugin.getTheSystemRegistry().fireEvent(
|
||||
new SystemPreferenceChangeEvent(type,
|
||||
oldValue ? Boolean.TRUE : Boolean.FALSE,
|
||||
newValue ? Boolean.TRUE : Boolean.FALSE));
|
||||
|
|
|
@ -88,7 +88,7 @@ public class SystemConnectionPropertyPage extends SystemBasePropertyPage
|
|||
if (okToClose)
|
||||
{
|
||||
IHost conn = (IHost)getElement();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.updateHost( conn,conn.getSystemType().getName(),form.getConnectionName(),form.getHostName(),
|
||||
form.getConnectionDescription(), form.getDefaultUserId(),
|
||||
form.getUserIdLocation() );
|
||||
|
|
|
@ -1274,7 +1274,7 @@ implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelec
|
|||
*/
|
||||
public boolean doDelete(IProgressMonitor monitor)
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
//int selectedCount = selection.size();
|
||||
|
@ -1366,7 +1366,7 @@ implements IMenuListener, ISystemDeleteTarget, ISystemRenameTarget, ISystemSelec
|
|||
*/
|
||||
public boolean doRename(String[] newNames)
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
//int selectedCount = selection.size();
|
||||
|
|
|
@ -4505,7 +4505,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
* Required method from ISystemDeleteTarget
|
||||
*/
|
||||
public boolean doDelete(IProgressMonitor monitor) {
|
||||
SystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
//int selectedCount = selection.size();
|
||||
|
@ -4633,7 +4633,7 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
|
|||
* Required method from ISystemRenameTarget
|
||||
*/
|
||||
public boolean doRename(String[] newNames) {
|
||||
SystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
Object element = null;
|
||||
|
|
|
@ -622,7 +622,7 @@ public class SystemViewConnectionAdapter
|
|||
//System.out.println("Inside resetPropertyValue in adapter");
|
||||
String property = (String)propertyObject;
|
||||
IHost conn = (IHost)propertySourceInput;
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
|
||||
if (property.equals(ISystemPropertyConstants.P_DEFAULTUSERID))
|
||||
{
|
||||
|
@ -650,7 +650,7 @@ public class SystemViewConnectionAdapter
|
|||
//if (!data.getIsLocal())
|
||||
//whereToUpdate = USERID_LOCATION_DEFAULT_SYSTEMTYPE;
|
||||
String userId = data.getLocalValue(); // will be "" if !data.getIsLocal(), which results in wiping out local override
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.updateHost(conn, conn.getSystemType().getName(), conn.getAliasName(), conn.getHostName(),
|
||||
conn.getDescription(), userId, whereToUpdate);
|
||||
}
|
||||
|
@ -662,7 +662,7 @@ public class SystemViewConnectionAdapter
|
|||
{
|
||||
String name = (String)property;
|
||||
IHost conn = (IHost)propertySourceInput;
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistryUI sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
|
||||
if (name.equals(ISystemPropertyConstants.P_DEFAULTUSERID))
|
||||
{
|
||||
|
@ -707,7 +707,7 @@ public class SystemViewConnectionAdapter
|
|||
{
|
||||
IHost sysCon = (IHost) element;
|
||||
if (sysCon.getSystemType().getName().equals(IRSESystemType.SYSTEMTYPE_LOCAL)) return existsMoreThanOneLocalConnection();
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
return !sr.isAnySubSystemConnected((IHost)element);
|
||||
}
|
||||
return true;
|
||||
|
@ -715,7 +715,7 @@ public class SystemViewConnectionAdapter
|
|||
|
||||
protected boolean existsMoreThanOneLocalConnection()
|
||||
{
|
||||
IHost[] localCons = RSEUIPlugin.getDefault().getSystemRegistry().getHostsBySystemType(IRSESystemType.SYSTEMTYPE_LOCAL);
|
||||
IHost[] localCons = RSEUIPlugin.getTheSystemRegistry().getHostsBySystemType(IRSESystemType.SYSTEMTYPE_LOCAL);
|
||||
return localCons.length > 1;
|
||||
}
|
||||
|
||||
|
@ -726,7 +726,7 @@ public class SystemViewConnectionAdapter
|
|||
{
|
||||
boolean ok = true;
|
||||
IHost conn = (IHost)element;
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.deleteHost(conn);
|
||||
return ok;
|
||||
}
|
||||
|
@ -747,7 +747,7 @@ public class SystemViewConnectionAdapter
|
|||
{
|
||||
boolean ok = true;
|
||||
IHost conn = (IHost)element;
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.renameHost(conn,name); // renames and saves to disk
|
||||
return ok;
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
|||
if (selection.size() == 1) {
|
||||
Object element = selection.getFirstElement();
|
||||
ISubSystem ss = (ISubSystem)element;
|
||||
ISubSystemConfiguration ssFactory = RSEUIPlugin.getDefault().getSystemRegistry().getSubSystemConfiguration(ss);
|
||||
ISubSystemConfiguration ssFactory = RSEUIPlugin.getTheSystemRegistry().getSubSystemConfiguration(ss);
|
||||
ISubSystemConfigurationAdapter adapter = (ISubSystemConfigurationAdapter)ssFactory.getAdapter(ISubSystemConfigurationAdapter.class);
|
||||
|
||||
IAction[] actions = adapter.getSubSystemActions(menu, selection, shell, menuGroup, ssFactory, ss);
|
||||
|
@ -107,7 +107,7 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
|||
{
|
||||
//System.out.println("INSIDE GETIMAGEDESCRIPTOR FOR SUBSYSTEM VIEW ADAPTER: "+element);
|
||||
ISubSystem ss = (ISubSystem)element;
|
||||
ISubSystemConfiguration ssFactory = RSEUIPlugin.getDefault().getSystemRegistry().getSubSystemConfiguration(ss);
|
||||
ISubSystemConfiguration ssFactory = RSEUIPlugin.getTheSystemRegistry().getSubSystemConfiguration(ss);
|
||||
if (ssFactory != null)
|
||||
{
|
||||
ISubSystemConfigurationAdapter adapter = (ISubSystemConfigurationAdapter)ssFactory.getAdapter(ISubSystemConfigurationAdapter.class);
|
||||
|
@ -176,7 +176,7 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
|||
{
|
||||
//System.out.println("INSIDE GETPARENT FOR SUBSYSTEM VIEW ADAPTER: "+element);
|
||||
ISubSystem ss = (ISubSystem)element;
|
||||
return RSEUIPlugin.getDefault().getSystemRegistry().getHost(ss.getSystemProfile(),ss.getHostAliasName());
|
||||
return RSEUIPlugin.getTheSystemRegistry().getHost(ss.getSystemProfile(),ss.getHostAliasName());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -649,7 +649,7 @@ public class SystemViewSubSystemAdapter extends AbstractSystemViewAdapter
|
|||
{
|
||||
//System.out.println("INSIDE DODELETE FOR SUBSYSTEM VIEW ADAPTER: "+element);
|
||||
ISubSystem ss = (ISubSystem)element;
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.deleteSubSystem(ss);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -821,7 +821,7 @@ public class SystemScratchpadView
|
|||
*/
|
||||
public boolean doDelete(IProgressMonitor monitor)
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
//int selectedCount = selection.size();
|
||||
|
@ -913,7 +913,7 @@ public class SystemScratchpadView
|
|||
*/
|
||||
public boolean doRename(String[] newNames)
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
//int selectedCount = selection.size();
|
||||
|
|
|
@ -196,7 +196,7 @@ public class RSESystemTypeAdapter extends RSEAdapter {
|
|||
result = RSEPreferencesManager.getIsSystemTypeEnabled(systemType);
|
||||
// if enabled, check if the system type has any registered subsystems. If
|
||||
// not, this will auto-disable the system type.
|
||||
if (result && RSEUIPlugin.getDefault().getSystemRegistry().getSubSystemConfigurationsBySystemType(systemType, true).length == 0) {
|
||||
if (result && RSEUIPlugin.getTheSystemRegistry().getSubSystemConfigurationsBySystemType(systemType, true).length == 0) {
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ public class RSESystemTypeAdapter extends RSEAdapter {
|
|||
// SystemClearAllPasswordsAction is accepted only if passwords are supported
|
||||
// by any of the sub systems.
|
||||
if (actionClass.equals(SystemClearAllPasswordsAction.class)) {
|
||||
ISystemRegistry registry = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
|
||||
IConnectorService[] connectorServices = registry.getConnectorServices(host);
|
||||
boolean passwordsSupported = false;
|
||||
for (int i = 0; i < connectorServices.length && passwordsSupported == false; i++) {
|
||||
|
|
|
@ -131,7 +131,7 @@ public class SystemSimpleCopyDialog
|
|||
//ActionContributionItem[] actionItems = createActionContributionItems();
|
||||
//Composite buttons = createButtonBar(composite_prompts, actionItems);
|
||||
|
||||
//RSEUIPlugin.getDefault().getSystemRegistry().addSystemResourceChangeListener(this);
|
||||
//RSEUIPlugin.getTheSystemRegistry().addSystemResourceChangeListener(this);
|
||||
|
||||
return composite_prompts;
|
||||
}
|
||||
|
@ -200,7 +200,7 @@ public class SystemSimpleCopyDialog
|
|||
|
||||
public boolean close()
|
||||
{
|
||||
//RSEUIPlugin.getDefault().getSystemRegistry().removeSystemResourceChangeListener(this);
|
||||
//RSEUIPlugin.getTheSystemRegistry().removeSystemResourceChangeListener(this);
|
||||
return super.close();
|
||||
}
|
||||
/**
|
||||
|
|
|
@ -1404,7 +1404,7 @@ public class SystemTableView
|
|||
*/
|
||||
public boolean doDelete(IProgressMonitor monitor)
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
//int selectedCount = selection.size();
|
||||
|
@ -1496,7 +1496,7 @@ public class SystemTableView
|
|||
*/
|
||||
public boolean doRename(String[] newNames)
|
||||
{
|
||||
SystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
SystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
IStructuredSelection selection = (IStructuredSelection) getSelection();
|
||||
Iterator elements = selection.iterator();
|
||||
Object element = null;
|
||||
|
|
|
@ -207,7 +207,7 @@ public class RSEDefaultNewConnectionWizard extends RSEAbstractNewConnectionWizar
|
|||
if (defaultProfileName == null || !profileNames.contains(defaultProfileName)) {
|
||||
// 2. If the wizard is invoked the 1st time, the default private system profile is the
|
||||
// default profile.
|
||||
ISystemProfile defaultPrivateProfile = RSEUIPlugin.getDefault().getSystemRegistry().getSystemProfileManager().getDefaultPrivateSystemProfile();
|
||||
ISystemProfile defaultPrivateProfile = RSEUIPlugin.getTheSystemRegistry().getSystemProfileManager().getDefaultPrivateSystemProfile();
|
||||
if (defaultPrivateProfile != null) defaultProfileName = defaultPrivateProfile.getName();
|
||||
if (defaultProfileName == null || !profileNames.contains(defaultProfileName)) {
|
||||
// 4. The first non-empty profile from the list of active profiles is the default profile.
|
||||
|
@ -297,7 +297,7 @@ public class RSEDefaultNewConnectionWizard extends RSEAbstractNewConnectionWizar
|
|||
if (ok) {
|
||||
boolean cursorSet = true;
|
||||
setBusyCursor(true);
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
|
||||
// if private profile is not null, then we have to rename the private profile
|
||||
// with the new profile name
|
||||
|
|
|
@ -1624,7 +1624,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
|
|||
public void run()
|
||||
{
|
||||
getConnectorService().reset();
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.connectedStatusChange(_subsystem, false, true, _collapseTree);
|
||||
}
|
||||
|
||||
|
@ -1664,7 +1664,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
|
|||
|
||||
public IStatus runInUIThread(IProgressMonitor monitor)
|
||||
{
|
||||
final ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
final ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.connectedStatusChange(_subsystem, true, false);
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
|
@ -2580,7 +2580,7 @@ public abstract class SubSystem extends RSEModelObject implements IAdaptable, IS
|
|||
if (!isConnected() || !supportsConnecting)
|
||||
{
|
||||
// disconnected but may not have notified viewers (i.e. network problem)
|
||||
ISystemRegistry sr = RSEUIPlugin.getDefault().getSystemRegistry();
|
||||
ISystemRegistry sr = RSEUIPlugin.getTheSystemRegistry();
|
||||
sr.connectedStatusChange(this, false, true, collapseTree);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue