1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.jface.viewers; 12 13 /** 14 * A listener which is notified when a tree viewer expands or collapses 15 * a node. 16 */ 17 public interface ITreeViewerListener { 18 /** 19 * Notifies that a node in the tree has been collapsed. 20 * 21 * @param event event object describing details 22 */ 23 public void treeCollapsed(TreeExpansionEvent event); 24 25 /** 26 * Notifies that a node in the tree has been expanded. 27 * 28 * @param event event object describing details 29 */ 30 public void treeExpanded(TreeExpansionEvent event); 31 } 32