de.cau.cs.kieler.core.ui.listeners
Class AffectedFileSelectionDialog

java.lang.Object
  extended by de.cau.cs.kieler.core.ui.listeners.AffectedFileSelectionDialog
All Implemented Interfaces:
IBaseLabelProvider, IContentProvider, ILabelProvider, IStructuredContentProvider

public class AffectedFileSelectionDialog
extends Object
implements IStructuredContentProvider, ILabelProvider

Dialog for selecting the files affected by a refactoring operation.

Rating red

Constructor Summary
AffectedFileSelectionDialog(Shell theShell, List<File> files, RefactoringListener.OP theOP)
          Creates a new AffectedFileSelectionDialog.
 
Method Summary
 void addListener(ILabelProviderListener listener)
          
 void dispose()
          
 Object[] getElements(Object inputElement)
          
 Image getImage(Object element)
          
 String getText(Object element)
          
 void inputChanged(Viewer viewer, Object oldInput, Object newInput)
          
 boolean isLabelProperty(Object element, String property)
          
 List<File> openDialog()
          Open the list selection dialog.
 void removeListener(ILabelProviderListener listener)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AffectedFileSelectionDialog

public AffectedFileSelectionDialog(Shell theShell,
                                   List<File> files,
                                   RefactoringListener.OP theOP)
Creates a new AffectedFileSelectionDialog.

Parameters:
theShell - the shell
files - the files
theOP - the operation
Method Detail

openDialog

public List<File> openDialog()
Open the list selection dialog.

Returns:
the list of files selected by the user

getElements

public Object[] getElements(Object inputElement)

Specified by:
getElements in interface IStructuredContentProvider

dispose

public void dispose()

Specified by:
dispose in interface IBaseLabelProvider
Specified by:
dispose in interface IContentProvider

inputChanged

public void inputChanged(Viewer viewer,
                         Object oldInput,
                         Object newInput)

Specified by:
inputChanged in interface IContentProvider

getImage

public Image getImage(Object element)

Specified by:
getImage in interface ILabelProvider

getText

public String getText(Object element)

Specified by:
getText in interface ILabelProvider

addListener

public void addListener(ILabelProviderListener listener)

Specified by:
addListener in interface IBaseLabelProvider

isLabelProperty

public boolean isLabelProperty(Object element,
                               String property)

Specified by:
isLabelProperty in interface IBaseLabelProvider

removeListener

public void removeListener(ILabelProviderListener listener)

Specified by:
removeListener in interface IBaseLabelProvider