mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 13:25:45 +02:00
[222270][api] adapt to new createSystemFilter API
This commit is contained in:
parent
054297d712
commit
491e8c8997
3 changed files with 5 additions and 14 deletions
|
@ -17,8 +17,6 @@
|
|||
|
||||
package samples.subsystems;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import org.eclipse.rse.core.filters.ISystemFilter;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
|
||||
|
@ -69,14 +67,13 @@ public class DeveloperSubSystemConfiguration extends SubSystemConfiguration {
|
|||
ISystemFilterPool defaultPool = null;
|
||||
try {
|
||||
defaultPool = mgr.createSystemFilterPool(getDefaultFilterPoolName(mgr.getName(), getId()), true); // true=>is deletable by user
|
||||
Vector strings = new Vector();
|
||||
strings.add("*"); //$NON-NLS-1$
|
||||
String[] strings = new String[] { "*" }; //$NON-NLS-1$
|
||||
//--tutorial part 1
|
||||
//mgr.createSystemFilter(defaultPool, "All teams", strings);
|
||||
//--tutorial part 2
|
||||
ISystemFilter filter = mgr.createSystemFilter(defaultPool,
|
||||
RSESamplesPlugin.getResourceString("filter.default.name"), //$NON-NLS-1$
|
||||
strings);
|
||||
strings );
|
||||
filter.setType("team"); //$NON-NLS-1$
|
||||
} catch (Exception exc) {}
|
||||
return defaultPool;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2006, 2007 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2006, 2008 Wind River Systems, Inc. and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -10,8 +10,6 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.rse.tests.internal.testsubsystem;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import org.eclipse.rse.core.filters.ISystemFilter;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterPool;
|
||||
import org.eclipse.rse.core.filters.ISystemFilterPoolManager;
|
||||
|
@ -53,8 +51,7 @@ public class TestSubSystemConfiguration extends SubSystemConfiguration implement
|
|||
try {
|
||||
defaultPool = mgr.createSystemFilterPool(getDefaultFilterPoolName(mgr.getName(), getId()), true); // true=>is deletable by user
|
||||
|
||||
Vector strings = new Vector();
|
||||
strings.add(".*"); //$NON-NLS-1$
|
||||
String[] strings = new String[] { ".*" }; //$NON-NLS-1$
|
||||
|
||||
ISystemFilter filter = mgr.createSystemFilter(defaultPool, "All", strings); //$NON-NLS-1$
|
||||
filter.setType("all"); //$NON-NLS-1$
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.rse.tests.subsystems.testsubsystem;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
import junit.framework.AssertionFailedError;
|
||||
|
||||
import org.eclipse.jface.viewers.AbstractTreeViewer;
|
||||
|
@ -177,8 +175,7 @@ public class TestSubsystemTestCase extends RSEBaseConnectionTestCase {
|
|||
RSEWaitAndDispatchUtil.waitAndDispatch(1000);
|
||||
|
||||
ISystemFilterPoolManager mgr = testSubSystem.getFilterPoolReferenceManager().getDefaultSystemFilterPoolManager();
|
||||
Vector strings = new Vector();
|
||||
strings.add("Node.*"); //$NON-NLS-1$
|
||||
String[] strings = new String[] { "Node.*" }; //$NON-NLS-1$
|
||||
|
||||
try {
|
||||
mgr.createSystemFilter(mgr.getFirstDefaultSystemFilterPool(), "Node*", strings, "Node*"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
|
|
Loading…
Add table
Reference in a new issue