blob: 6ad9eb432e2fdef4f00c2d938749c53a3d9e3868 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*******************************************************************************/
package org.eclipse.dltk.internal.ui.wizards.dialogfields;
import org.eclipse.swt.events.KeyEvent;
/**
* Change listener used by <code>TreeListDialogField</code>
*/
public interface ITreeListAdapter {
/**
* A button from the button bar has been pressed.
*/
void customButtonPressed(TreeListDialogField field, int index);
/**
* The selection of the list has changed.
*/
void selectionChanged(TreeListDialogField field);
/**
* The list has been double clicked
*/
void doubleClicked(TreeListDialogField field);
/**
* A key has been pressed
*/
void keyPressed(TreeListDialogField field, KeyEvent event);
Object[] getChildren(TreeListDialogField field, Object element);
Object getParent(TreeListDialogField field, Object element);
boolean hasChildren(TreeListDialogField field, Object element);
}