package net.sourceforge.phpdt.externaltools.internal.ui;
/**********************************************************************
-Copyright (c) 2000, 2002 IBM Corp. All rights reserved.
-This file is made available under the terms of the Common Public License v1.0
-which accompanies this distribution, and is available at
-http://www.eclipse.org/legal/cpl-v10.html
-**********************************************************************/
+ Copyright (c) 2000, 2002 IBM Corp. All rights reserved.
+ This file is made available under the terms of the Common Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/cpl-v10.html
+ **********************************************************************/
import java.util.ArrayList;
import java.util.Arrays;
*/
public class ExternalToolsContentProvider implements IStructuredContentProvider {
protected List elements = new ArrayList();
+
protected TableViewer viewer;
public void add(Object o) {
elements.remove(o);
viewer.remove(o);
}
-
+
public void remove(IStructuredSelection selection) {
- Object[] array= selection.toArray();
+ Object[] array = selection.toArray();
elements.removeAll(Arrays.asList(array));
viewer.remove(array);
}