blob: 32cb8fd98b7d813a2f23d93f47cd6460eda3c185 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2005 IBM Corporation 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.tests.decorators;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
/**
* The DecoratorTreeView is a TreeView that tests the
* font and color decorations.
*/
public class DecoratorTreeView extends DecoratorTestPart {
TreeViewer viewer;
/**
*
*/
public DecoratorTreeView() {
super();
// XXX Auto-generated constructor stub
}
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
*/
public void createPartControl(Composite parent) {
viewer = new TreeViewer(parent){
/* (non-Javadoc)
* @see org.eclipse.jface.viewers.AbstractTreeViewer#labelProviderChanged()
*/
protected void labelProviderChanged() {
super.labelProviderChanged();
}
};
viewer.setLabelProvider(getLabelProvider());
viewer.setContentProvider(new TestTreeContentProvider());
viewer.setInput(this);
GridData data = new GridData(GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL
| GridData.FILL_BOTH);
viewer.getControl().setLayoutData(data);
}
/* (non-Javadoc)
* @see org.eclipse.ui.IWorkbenchPart#setFocus()
*/
public void setFocus() {
// XXX Auto-generated method stub
}
}