Using Filedialog
I am selecting the set of files and displaying it in the checkbox table viewer. Then I want to process those files which I have checked in the checkboxtableviewer.
public void setTableInput(File[] selectedFiles) {
for(int i = 0;i <selectedFiles.length; i++)
{
tableViewer.add(selectedFiles[i].getName());
}
tableViewer.addCheckStateListener(new ICheckStateListener() {
@Override
public void checkStateChanged(CheckStateChangedEvent event) {
Object[] filesSelected = tableViewer.getCheckedElements();
for(Object filename : filesSelected){
System.out.println("values "+ (String)filename);
}
}
});
}
For the code that I have written over here, I can get only the file names , Can anyone please tell me how to proceed if I want to get file location based on selecting the filename in checkbox?
Thanks in advance