diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/view/SystemViewFilterAdapter.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/view/SystemViewFilterAdapter.java
index 6d26b6e170b..79d62bd8a57 100644
--- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/view/SystemViewFilterAdapter.java
+++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/view/SystemViewFilterAdapter.java
@@ -47,10 +47,10 @@ import org.eclipse.rse.ui.SystemResources;
import org.eclipse.rse.ui.validators.ISystemValidator;
import org.eclipse.rse.ui.validators.ValidatorFilterName;
import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IActionFilter;
import org.eclipse.ui.views.properties.IPropertyDescriptor;
import org.eclipse.ui.views.properties.PropertyDescriptor;
-
/**
* Default Adapter for displaying filter objects in tree views.
* For some subsystems, these are children of SubSystem objects.
@@ -184,17 +184,17 @@ public class SystemViewFilterAdapter extends AbstractSystemViewAdapter implement
Object[] children = null;
SystemFilterSimple simpleFilter = (SystemFilterSimple)filter;
String[] filterStrings = simpleFilter.getFilterStrings();
- // 50167pc: The following was a problem, as the parent in a SimpleFilterSimpleImpl is not
- // to be trusted, since we tend to use the same instance for each connection in the list.
+ // 50167pc: The following was a problem, as the parent in a SystemFilterSimpleImpl is not
+ // to be trusted, since we tend to use the same instance for each connection in the list.
ISubSystem ss = (ISubSystem)simpleFilter.getParent();
String preSelectName = null;
try
{
- Shell shell = getShell();
+// Shell shell = getShell();
// hack to propogate type filters down from connection in select dialogs...
ISystemViewInputProvider inputProvider = getInput();
- if ( (inputProvider != null) && (inputProvider instanceof SystemSelectRemoteObjectAPIProviderImpl) &&
- (filterStrings != null) && (filterStrings.length>0) )
+ if ((inputProvider instanceof SystemSelectRemoteObjectAPIProviderImpl) &&
+ (filterStrings != null) && (filterStrings.length > 0) )
{
SystemSelectRemoteObjectAPIProviderImpl ip = (SystemSelectRemoteObjectAPIProviderImpl)inputProvider;
if (ip.filtersNeedDecoration(element))
@@ -232,7 +232,10 @@ public class SystemViewFilterAdapter extends AbstractSystemViewAdapter implement
match = child;
}
//if (match != null) always reset even if it is null
- ((SystemSelectRemoteObjectAPIProviderImpl)inputProvider).setPreSelectFilterChildObject(match);
+ if (inputProvider instanceof SystemSelectRemoteObjectAPIProviderImpl)
+ {
+ ((SystemSelectRemoteObjectAPIProviderImpl) inputProvider).setPreSelectFilterChildObject(match);
+ }
}
}
catch (InterruptedException exc)
@@ -359,8 +362,8 @@ public class SystemViewFilterAdapter extends AbstractSystemViewAdapter implement
/**
* Return our unique property values
* The parent handles P_TEXT and P_TYPE only, and we augment that here.
- * @param property the name of the property as named by its property descriptor
- * @return the current value of the property
+ * @param key the name of the property as named by its property descriptor
+ * @return the current value of the property
*/
protected Object internalGetPropertyValue(Object key)
{
@@ -455,8 +458,8 @@ public class SystemViewFilterAdapter extends AbstractSystemViewAdapter implement
return true;
}
/**
- * Return a validator for verifying the new name is correct.
- * @param either a filter for a rename action, or a filter pool for a "new" action.
+ * @param element either a filter for a rename action, or a filter pool for a "new" action.
+ * @return a validator for verifying the new name is correct.
*/
public ISystemValidator getNameValidator(Object element)
{
@@ -524,37 +527,38 @@ public class SystemViewFilterAdapter extends AbstractSystemViewAdapter implement
}
/**
- * Overide of parent method.
- * From IActionFilter so the popupMenus extension point can use <filter>, <enablement>
- * or <visibility>. We add support is for the following:
+ * Test an object to see if it has an attribute with a particular value.
+ * From IActionFilter
so the popupMenus extension point can use
+ * <filter>, <enablement> or <visibility>.
+ * We add support for the following attributes:
*
true
or false
.
*