diff --git a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/DeveloperSubSystem.html b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/DeveloperSubSystem.html index cd27ebf588f..cd163a8910c 100755 --- a/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/DeveloperSubSystem.html +++ b/rse/doc/org.eclipse.rse.doc.isv/guide/tutorial/DeveloperSubSystem.html @@ -4,7 +4,7 @@
- +- * The default implementation of this simply calls {@link #internalResolveFilterStrings(IProgressMonitor, String[])}. + * The default implementation of this simply calls {@link #internalResolveFilterStrings(String[], IProgressMonitor)}. *
* After successful resolve, the sort method is called to sort the concatenated results before * returning them. @@ -2094,7 +2094,7 @@ public abstract class SubSystem extends RSEModelObject ok = promptForPassword(); if (ok) { - Object[] results = internalResolveFilterStrings(monitor, filterStrings); + Object[] results = internalResolveFilterStrings(filterStrings, monitor); if (sortResults && (results!=null)) results = sortResolvedFilterStringObjects(results); return results; @@ -2146,7 +2146,7 @@ public abstract class SubSystem extends RSEModelObject if (ok) { - Object[] results= internalResolveFilterString(monitor, parent, filterString); + Object[] results= internalResolveFilterString(parent, filterString, monitor); if (sortResults && (results!=null)) results = sortResolvedFilterStringObjects(results); return results; @@ -2649,7 +2649,7 @@ public abstract class SubSystem extends RSEModelObject * * YOU MUST OVERRIDE THIS IF YOU SUPPORT FILTERS! */ - protected Object[] internalResolveFilterString(IProgressMonitor monitor, String filterString) + protected Object[] internalResolveFilterString(String filterString, IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException { @@ -2659,20 +2659,20 @@ public abstract class SubSystem extends RSEModelObject * Resolve multiple absolute filter strings. This is only applicable if the subsystem * factory reports true for supportsFilters(). *
- * This is the same as {@link #internalResolveFilterString(IProgressMonitor, Object, String)} but takes an array of + * This is the same as {@link #internalResolveFilterString(Object, String, IProgressMonitor)} but takes an array of * filter strings versus a single filter string. *
- * The default implementation of this simply calls {@link #internalResolveFilterString(IProgressMonitor, String)} + * The default implementation of this simply calls {@link #internalResolveFilterString(String, IProgressMonitor)} * once for each filter string, and concatenates the result. The method sortResolvedFilterStringObject * is called on the concatenated result, given subclasses an opportunity to sort the result. *
* After successful resolve, the sort method is called to sort the concatenated results before * returning them. - * @param monitor the progress monitor we are running under * @param filterStrings array of filter patterns for objects to return. + * @param monitor the progress monitor we are running under * @return Array of objects that are the result of resolving all the filter strings */ - public Object[] internalResolveFilterStrings(IProgressMonitor monitor, String[] filterStrings) + public Object[] internalResolveFilterStrings(String[] filterStrings, IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException { @@ -2684,7 +2684,7 @@ public abstract class SubSystem extends RSEModelObject { monitor.setTaskName(getResolvingMessage(filterStrings[idx])); } - children = internalResolveFilterString(monitor, filterStrings[idx]); + children = internalResolveFilterString(filterStrings[idx], monitor); //monitor.worked(1); if (children != null) addResolvedFilterStringObjects(vChildren, children, filterStrings, idx); @@ -2743,7 +2743,7 @@ public abstract class SubSystem extends RSEModelObject * * YOU MUST OVERRIDE THIS IF YOU SUPPORT FILTERS! */ - protected Object[] internalResolveFilterString(IProgressMonitor monitor, Object parent, String filterString) + protected Object[] internalResolveFilterString(Object parent, String filterString, IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException { @@ -2773,7 +2773,7 @@ public abstract class SubSystem extends RSEModelObject * * YOU MUST OVERRIDE THIS IF YOU SUPPORT PROPERTIES! */ - protected String internalGetProperty(IProgressMonitor monitor, Object subject, String key) + protected String internalGetProperty(Object subject, String key, IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException { @@ -2792,7 +2792,7 @@ public abstract class SubSystem extends RSEModelObject * * YOU MUST OVERRIDE THIS IF YOU SUPPORT PROPERTIES! */ - protected Object internalSetProperty(IProgressMonitor monitor, Object subject, String key, String value) + protected Object internalSetProperty(Object subject, String key, String value, IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException { @@ -2811,7 +2811,7 @@ public abstract class SubSystem extends RSEModelObject * * YOU MUST OVERRIDE THIS IF YOU SUPPORT PROPERTIES! */ - protected String[] internalGetProperties(IProgressMonitor monitor, Object subject, String[] keys) + protected String[] internalGetProperties(Object subject, String[] keys, IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException { @@ -2830,7 +2830,7 @@ public abstract class SubSystem extends RSEModelObject * * YOU MUST OVERRIDE THIS IF YOU SUPPORT PROPERTIES! */ - protected Object internalSetProperties(IProgressMonitor monitor, Object subject, String[] keys, String[] values) + protected Object internalSetProperties(Object subject, String[] keys, String[] values, IProgressMonitor monitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException { diff --git a/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/internal/testsubsystem/TestSubSystem.java b/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/internal/testsubsystem/TestSubSystem.java index 5bd1f62fbc7..5e93768f3c6 100644 --- a/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/internal/testsubsystem/TestSubSystem.java +++ b/rse/tests/org.eclipse.rse.tests/src/org/eclipse/rse/tests/internal/testsubsystem/TestSubSystem.java @@ -8,6 +8,7 @@ * Contributors: * Tobias Schwarz (Wind River) - initial API and implementation * Martin Oberhuber (Wind River) - [182454] improve getAbsoluteName() documentation + * Martin Oberhuber (Wind River) - [186128][refactoring] Move IProgressMonitor last in public base classes *******************************************************************************/ package org.eclipse.rse.tests.internal.testsubsystem; @@ -80,7 +81,7 @@ public class TestSubSystem extends SubSystem implements ITestSubSystem { /* (non-Javadoc) * @see org.eclipse.rse.core.subsystems.SubSystem#internalResolveFilterString(org.eclipse.core.runtime.IProgressMonitor, java.lang.String) */ - protected Object[] internalResolveFilterString(IProgressMonitor monitor, String filterString) throws InvocationTargetException, InterruptedException { + protected Object[] internalResolveFilterString(String filterString, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { ArrayList filteredChilds = new ArrayList(); ITestSubSystemNode[] childs = getChildNodes(); for (int i = 0; i < childs.length; i++) { @@ -95,7 +96,7 @@ public class TestSubSystem extends SubSystem implements ITestSubSystem { /* (non-Javadoc) * @see org.eclipse.rse.core.subsystems.SubSystem#internalResolveFilterString(org.eclipse.core.runtime.IProgressMonitor, java.lang.Object, java.lang.String) */ - protected Object[] internalResolveFilterString(IProgressMonitor monitor, Object parent, String filterString) throws InvocationTargetException, InterruptedException { + protected Object[] internalResolveFilterString(Object parent, String filterString, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { ArrayList filteredChilds = new ArrayList(); if (parent instanceof ITestSubSystemNodeContainer) { ITestSubSystemNodeContainer container = (ITestSubSystemNodeContainer)parent;