Added FilterAdapter mapping for PascalTextFileFilter and

TextFilterAdapter.
This commit is contained in:
Robert Greene 2004-06-17 03:07:58 +00:00
parent c38f2a9c3c
commit ac5e9673af

View File

@ -49,6 +49,7 @@ import com.webcodepro.applecommander.storage.filters.ApplesoftFileFilter;
import com.webcodepro.applecommander.storage.filters.AssemblySourceFileFilter;
import com.webcodepro.applecommander.storage.filters.GraphicsFileFilter;
import com.webcodepro.applecommander.storage.filters.IntegerBasicFileFilter;
import com.webcodepro.applecommander.storage.filters.PascalTextFileFilter;
import com.webcodepro.applecommander.storage.filters.TextFileFilter;
import com.webcodepro.applecommander.ui.swt.filteradapter.ApplesoftFilterAdapter;
import com.webcodepro.applecommander.ui.swt.filteradapter.FilterAdapter;
@ -194,6 +195,11 @@ public class FileViewerWindow {
"Displays file as an Integer BASIC program (F2)",
imageManager.get(ImageManager.ICON_VIEW_AS_BASIC_PROGRAM)
));
nativeFilterAdapterMap.put(PascalTextFileFilter.class,
new TextFilterAdapter(this, "Pascal Text",
"Displays file as Pascal text file (F2)",
imageManager.get(ImageManager.ICON_VIEW_AS_TEXTFILE)
));
nativeFilterAdapterMap.put(TextFileFilter.class,
new TextFilterAdapter(this, "Text",
"Displays file as a text file (F2)",