X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/wizards/dialogfields/ITreeListAdapter.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/wizards/dialogfields/ITreeListAdapter.java new file mode 100644 index 0000000..d4d186b --- /dev/null +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/wizards/dialogfields/ITreeListAdapter.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2000, 2003 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 net.sourceforge.phpdt.internal.ui.wizards.dialogfields; + +import org.eclipse.swt.events.KeyEvent; + +/** + * Change listener used by TreeListDialogField + */ +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); + +}