abhimanyusirohi / ThumbFish

A simple utility for Chemists that integrates with Windows Explorer and provides Thumbnail, Preview, Search and other useful features for structure files.
abhimanyusirohi.github.io/ThumbFish
MIT License
14 stars 3 forks source link

Improve Format->Extension and vice-versa code #62

Closed abhimanyusirohi closed 10 years ago

abhimanyusirohi commented 10 years ago

Currently a format is recognized by Extension internally and there are a few methods in Utils that change from format string such as "mol" to extension enum value and vice-versa. Instead of having these methods, we can keep an array or map of structures that will have:

And a few method to get format from extension and vice-versa.