blob: b94c8b200da1d5883b8856f296e302fbf0951c2e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2012 Mia-Software.
* 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:
* Nicolas Bros (Mia-Software) - Bug 370806 - [table] rewrite the "allowed contents" query selection dialog for v0.2
* Vincent Lorenzo (CEA-LIST) - Bug 372644 - Create Customizable tooltips for the TreeViewer using a CustomizableLabelProvider
*******************************************************************************/
package org.eclipse.emf.facet.efacet.ui.internal.widget;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.emf.facet.efacet.ui.internal.exported.widget.IETypedElementSelectionWidget;
import org.eclipse.jface.viewers.IOpenListener;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.dialogs.FilteredTree;
public interface IETypedElementSelectionWidgetInternal extends IETypedElementSelectionWidget {
/** Adds a listener that is notified when an element is double-clicked or the Enter key is pressed */
void addOpenListener(IOpenListener openListener);
/** Adds a listener that is notified when the selection changes */
void addSelectionChangedListener(ISelectionChangedListener listener);
/** @return the validation status : the selection is not valid if {@link IStatus#getSeverity()} >= {@link IStatus#ERROR} */
IStatus getValidationStatus();
/** @return whether the widget is disposed */
boolean isDisposed();
FilteredTree getFilteredTree();
void createContents();
void setSelection(IStructuredSelection selection);
}