mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-22 00:15:25 +02:00
[222270][api][breaking] Clean up interfaces in org.eclipse.rse.core.filters
https://bugs.eclipse.org/bugs/show_bug.cgi?id=222270
This commit is contained in:
parent
d0aa83ebef
commit
a16ef7950c
6 changed files with 11 additions and 17 deletions
|
@ -629,6 +629,7 @@ public class SystemFilterPoolManager extends RSEPersistableObject implements ISy
|
||||||
*/
|
*/
|
||||||
public ISystemFilter createSystemFilter(ISystemFilterContainer parent, String aliasName, List filterStrings, String type, boolean promptable) throws Exception {
|
public ISystemFilter createSystemFilter(ISystemFilterContainer parent, String aliasName, List filterStrings, String type, boolean promptable) throws Exception {
|
||||||
String[] filterStringsArray = new String[filterStrings.size()];
|
String[] filterStringsArray = new String[filterStrings.size()];
|
||||||
|
filterStrings.toArray(filterStringsArray);
|
||||||
ISystemFilter result = doCreateSystemFilter(parent, aliasName, filterStringsArray, type, promptable);
|
ISystemFilter result = doCreateSystemFilter(parent, aliasName, filterStringsArray, type, promptable);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -637,8 +638,7 @@ public class SystemFilterPoolManager extends RSEPersistableObject implements ISy
|
||||||
* @see org.eclipse.rse.core.filters.ISystemFilterPoolManager#createSystemFilter(org.eclipse.rse.core.filters.ISystemFilterContainer, java.lang.String, java.util.List, java.lang.String)
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolManager#createSystemFilter(org.eclipse.rse.core.filters.ISystemFilterContainer, java.lang.String, java.util.List, java.lang.String)
|
||||||
*/
|
*/
|
||||||
public ISystemFilter createSystemFilter(ISystemFilterContainer parent, String aliasName, List filterStrings, String type) throws Exception {
|
public ISystemFilter createSystemFilter(ISystemFilterContainer parent, String aliasName, List filterStrings, String type) throws Exception {
|
||||||
String[] filterStringsArray = new String[filterStrings.size()];
|
ISystemFilter result = createSystemFilter(parent, aliasName, filterStrings, type, false);
|
||||||
ISystemFilter result = doCreateSystemFilter(parent, aliasName, filterStringsArray, type, false);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -646,8 +646,7 @@ public class SystemFilterPoolManager extends RSEPersistableObject implements ISy
|
||||||
* @see org.eclipse.rse.core.filters.ISystemFilterPoolManager#createSystemFilter(org.eclipse.rse.core.filters.ISystemFilterContainer, java.lang.String, java.util.List)
|
* @see org.eclipse.rse.core.filters.ISystemFilterPoolManager#createSystemFilter(org.eclipse.rse.core.filters.ISystemFilterContainer, java.lang.String, java.util.List)
|
||||||
*/
|
*/
|
||||||
public ISystemFilter createSystemFilter(ISystemFilterContainer parent, String aliasName, List filterStrings) throws Exception {
|
public ISystemFilter createSystemFilter(ISystemFilterContainer parent, String aliasName, List filterStrings) throws Exception {
|
||||||
String[] filterStringsArray = new String[filterStrings.size()];
|
ISystemFilter result = createSystemFilter(parent, aliasName, filterStrings, null, false);
|
||||||
ISystemFilter result = doCreateSystemFilter(parent, aliasName, filterStringsArray, null, false);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
* Martin Oberhuber (Wind River) - [189130] Move SystemIFileProperties from UI to Core
|
* Martin Oberhuber (Wind River) - [189130] Move SystemIFileProperties from UI to Core
|
||||||
* Martin Oberhuber (Wind River) - [189123] Move renameSubSystemProfile() from UI to Core
|
* Martin Oberhuber (Wind River) - [189123] Move renameSubSystemProfile() from UI to Core
|
||||||
* David Dykstal (IBM) - [197036] fixed NPE found during testing
|
* David Dykstal (IBM) - [197036] fixed NPE found during testing
|
||||||
|
* David Dykstal (IBM) - [222270] clean up interfaces in org.eclipse.rse.core.filters
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.files.core.subsystems;
|
package org.eclipse.rse.subsystems.files.core.subsystems;
|
||||||
import java.util.Vector;
|
|
||||||
|
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IFolder;
|
import org.eclipse.core.resources.IFolder;
|
||||||
|
@ -228,7 +228,6 @@ public abstract class RemoteFileSubSystemConfiguration extends SubSystemConfigur
|
||||||
* Return true if you support user-defined actions for the remote system objects returned from expansion of
|
* Return true if you support user-defined actions for the remote system objects returned from expansion of
|
||||||
* subsystems created by this subsystem factory.
|
* subsystems created by this subsystem factory.
|
||||||
* <p>We return true.
|
* <p>We return true.
|
||||||
* @see #createActionSubSystem()
|
|
||||||
*/
|
*/
|
||||||
public boolean supportsUserDefinedActions()
|
public boolean supportsUserDefinedActions()
|
||||||
{
|
{
|
||||||
|
|
|
@ -13,12 +13,11 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
||||||
|
* David Dykstal (IBM) - [222270] clean up interfaces in org.eclipse.rse.core.filters
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.files.dstore;
|
package org.eclipse.rse.subsystems.files.dstore;
|
||||||
|
|
||||||
import java.util.Vector;
|
|
||||||
|
|
||||||
import org.eclipse.rse.core.filters.ISystemFilter;
|
import org.eclipse.rse.core.filters.ISystemFilter;
|
||||||
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
||||||
import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
|
import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
|
||||||
|
|
|
@ -15,12 +15,11 @@
|
||||||
* Martin Oberhuber (Wind River) - [186997] No deferred queries in Local Files
|
* Martin Oberhuber (Wind River) - [186997] No deferred queries in Local Files
|
||||||
* Kevin Doyle (IBM) - [199871] LocalFileService needs to implement getMessage()
|
* Kevin Doyle (IBM) - [199871] LocalFileService needs to implement getMessage()
|
||||||
* Martin Oberhuber (Wind River) - [220020][api][breaking] SystemFileTransferModeRegistry should be internal
|
* Martin Oberhuber (Wind River) - [220020][api][breaking] SystemFileTransferModeRegistry should be internal
|
||||||
|
* David Dykstal (IBM) - [222270] clean up interfaces in org.eclipse.rse.core.filters
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.files.local;
|
package org.eclipse.rse.subsystems.files.local;
|
||||||
|
|
||||||
import java.util.Vector;
|
|
||||||
|
|
||||||
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
||||||
import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
|
import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
|
||||||
import org.eclipse.rse.core.model.IHost;
|
import org.eclipse.rse.core.model.IHost;
|
||||||
|
|
|
@ -12,12 +12,11 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
||||||
|
* David Dykstal (IBM) - [222270] clean up interfaces in org.eclipse.rse.core.filters
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.processes.core.subsystem.impl;
|
package org.eclipse.rse.subsystems.processes.core.subsystem.impl;
|
||||||
|
|
||||||
import java.util.Vector;
|
|
||||||
|
|
||||||
import org.eclipse.rse.core.filters.ISystemFilter;
|
import org.eclipse.rse.core.filters.ISystemFilter;
|
||||||
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
||||||
import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
|
import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
* Martin Oberhuber (Wind River) - [168870] refactor org.eclipse.rse.core package of the UI plugin
|
||||||
|
* David Dykstal (IBM) - [222270] clean up interfaces in org.eclipse.rse.core.filters
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.ui.filters.dialogs;
|
package org.eclipse.rse.ui.filters.dialogs;
|
||||||
|
@ -629,14 +630,12 @@ public class SystemNewFilterWizard
|
||||||
* @throws Exception if an error occurs
|
* @throws Exception if an error occurs
|
||||||
*/
|
*/
|
||||||
public ISystemFilter createNewFilter(Shell shell, ISystemFilterContainer filterParent, String aliasName, Vector filterStringsVector, String type) throws Exception {
|
public ISystemFilter createNewFilter(Shell shell, ISystemFilterContainer filterParent, String aliasName, Vector filterStringsVector, String type) throws Exception {
|
||||||
String[] filterStrings = new String[filterStringsVector.size()];
|
|
||||||
filterStringsVector.toArray(filterStrings);
|
|
||||||
ISystemFilter newFilter = null;
|
ISystemFilter newFilter = null;
|
||||||
ISystemFilterPoolManager fpMgr = filterParent.getSystemFilterPoolManager();
|
ISystemFilterPoolManager fpMgr = filterParent.getSystemFilterPoolManager();
|
||||||
if (type == null)
|
if (type == null)
|
||||||
newFilter = fpMgr.createSystemFilter(filterParent, aliasName, filterStrings);
|
newFilter = fpMgr.createSystemFilter(filterParent, aliasName, filterStringsVector);
|
||||||
else
|
else
|
||||||
newFilter = fpMgr.createSystemFilter(filterParent, aliasName, filterStrings, type);
|
newFilter = fpMgr.createSystemFilter(filterParent, aliasName, filterStringsVector, type);
|
||||||
return newFilter;
|
return newFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue