1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-09 18:15:23 +02:00

Remove unnecessary code

This commit is contained in:
Martin Oberhuber 2007-05-15 21:53:16 +00:00
parent 8d0d5ea796
commit 0b519aff19

View file

@ -1,5 +1,5 @@
/******************************************************************************** /********************************************************************************
* Copyright (c) 2006 IBM Corporation. All rights reserved. * Copyright (c) 2006, 2007 IBM Corporation and others. All rights reserved.
* This program and the accompanying materials are made available under the terms * 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 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html * available at http://www.eclipse.org/legal/epl-v10.html
@ -9,7 +9,7 @@
* component that contains this file: David McKnight. * component that contains this file: David McKnight.
* *
* Contributors: * Contributors:
* {Name} (company) - description of contribution. * Martin Oberhuber (Wind River) - [181145] restore selection after deferred query
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.ui.operations; package org.eclipse.rse.ui.operations;
@ -54,26 +54,6 @@ public class SystemDeferredTreeContentManager extends
return super.getAdapter(element); return super.getAdapter(element);
} }
/*
* (non-Javadoc)
* @see org.eclipse.ui.progress.DeferredTreeContentManager#getChildren(java.lang.Object)
*/
public Object[] getChildren(final Object parent) {
IDeferredWorkbenchAdapter element = getAdapter(parent);
if (element == null) {
return null;
}
PendingUpdateAdapter placeholder = createPendingUpdateAdapter();
if (!_pendingQueries.contains(parent))
{
startFetchingDeferredChildren(parent, element, placeholder);
_pendingQueries.add(parent);
return new Object[] { placeholder };
}
return null;
}
/** /**
* Returns the child elements of the given element, or in the case of a * Returns the child elements of the given element, or in the case of a
* deferred element, returns a placeholder. If a deferred element is used, a * deferred element, returns a placeholder. If a deferred element is used, a
@ -91,9 +71,6 @@ public class SystemDeferredTreeContentManager extends
*/ */
public Object[] getChildren(final Object parent, final Viewer viewer) { public Object[] getChildren(final Object parent, final Viewer viewer) {
final ISelection selection = viewer.getSelection(); final ISelection selection = viewer.getSelection();
if (selection.isEmpty()) {
return getChildren(parent);
}
IDeferredWorkbenchAdapter element = getAdapter(parent); IDeferredWorkbenchAdapter element = getAdapter(parent);
if (element == null) { if (element == null) {
return null; return null;