1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-10 18:45:26 +02:00

[cleanup] Prepare for possible removal of systemTypes attribute

This commit is contained in:
Uwe Stieber 2007-02-09 14:33:50 +00:00
parent 22d4c8efdd
commit 657a1c0080

View file

@ -224,9 +224,9 @@ public class SubSystemConfigurationProxy implements ISubSystemConfigurationProxy
if (category == null) category = "Unknown"; //$NON-NLS-1$ if (category == null) category = "Unknown"; //$NON-NLS-1$
// We default to all system types if neither systemTypeNames nor systemTypeIds are specified. // We default to all system types if neither systemTypeNames nor systemTypeIds are specified.
if (systemTypeNames == null && systemTypeIds == null) systemTypeNames = "*"; //$NON-NLS-1$ if (systemTypeNames == null && systemTypeIds == null) systemTypeIds = "*"; //$NON-NLS-1$
this.allTypes = systemTypeNames != null && systemTypeNames.equals("*"); //$NON-NLS-1$ this.allTypes = systemTypeIds != null && systemTypeIds.equals("*"); //$NON-NLS-1$
this.image = getPluginImage(element, element.getAttribute("icon")); //$NON-NLS-1$ this.image = getPluginImage(element, element.getAttribute("icon")); //$NON-NLS-1$
if (this.image == null) this.image = RSEUIPlugin.getDefault().getImageDescriptor(ISystemIconConstants.ICON_SYSTEM_CONNECTION_ID); if (this.image == null) this.image = RSEUIPlugin.getDefault().getImageDescriptor(ISystemIconConstants.ICON_SYSTEM_CONNECTION_ID);
@ -277,7 +277,7 @@ public class SubSystemConfigurationProxy implements ISubSystemConfigurationProxy
* @see org.eclipse.rse.core.subsystems.ISubSystemConfigurationProxy#getDeclaredSystemTypeIds() * @see org.eclipse.rse.core.subsystems.ISubSystemConfigurationProxy#getDeclaredSystemTypeIds()
*/ */
public String getDeclaredSystemTypeIds() { public String getDeclaredSystemTypeIds() {
return systemTypeIds; return "*".equals(systemTypeIds) ? null : systemTypeIds; //$NON-NLS-1$
} }
/* (non-Javadoc) /* (non-Javadoc)