diff options
Diffstat (limited to 'tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/views/ContentProviderTestView.java')
-rw-r--r-- | tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/views/ContentProviderTestView.java | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/views/ContentProviderTestView.java b/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/views/ContentProviderTestView.java deleted file mode 100644 index 6e8574b73..000000000 --- a/tests/org.eclipse.team.tests.core/src/org/eclipse/team/tests/ui/views/ContentProviderTestView.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are 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 - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.team.tests.ui.views; - -import org.eclipse.swt.SWT; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.team.internal.ui.TeamUIPlugin; -import org.eclipse.ui.*; -import org.eclipse.ui.part.ViewPart; - -public class ContentProviderTestView extends ViewPart { - - public static final String VIEW_ID = "org.eclipse.team.tests.ui.views.ContentProviderTestView"; - - private TestTreeViewer viewer; - - public static ContentProviderTestView findViewInActivePage(IWorkbenchPage activePage) { - try { - if (activePage == null) { - activePage = TeamUIPlugin.getActivePage(); - if (activePage == null) return null; - } - IViewPart part = activePage.findView(VIEW_ID); - if (part == null) - part = activePage.showView(VIEW_ID); - return (ContentProviderTestView)part; - } catch (PartInitException pe) { - return null; - } - } - - public ContentProviderTestView() { - } - - public void createPartControl(Composite parent) { - viewer = new TestTreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); - } - - public void setFocus() { - viewer.getControl().setFocus(); - } - - public TestTreeViewer getViewer() { - return viewer; - } -} |