Added constructor to force a certain file filter. Used by context menu

for file view.
This commit is contained in:
Robert Greene 2004-06-06 02:13:58 +00:00
parent a31c317740
commit c663edc84a

View File

@ -105,6 +105,16 @@ public class FileViewerWindow {
this.imageManager = imageManager;
this.nativeFilter = fileEntry.getSuggestedFilter();
}
/**
* Construct the file viewer window.
*/
public FileViewerWindow(Shell parentShell, FileEntry fileEntry, ImageManager imageManager, FileFilter nativeFilter) {
this.parentShell = shell;
this.fileEntry = fileEntry;
this.imageManager = imageManager;
this.nativeFilter = nativeFilter;
}
/**
* Setup the File Viewer window and display (open) it.