
As they say in the article registering a file type for your language plugin is the first step so I set out to do that. First I downloaded a random 16×16 png file to use as a icon. The I looked in the example code for the scala plugin and pretty much wrote exactly like that and it almost just worked. The only issues was:
icon not on the class path
Problem: the plugin could not find the icon on the class path when I started it.
Solution: I had forgoten to configure the java compiler to copy*.png files when it compiles.
Improvements: none needed.
Wrong icon size
Problem: The icon got way to big.
Solution: It turned out I accidentally downloaded a 32×32 image instead of 16×16 as I should have. So a simple resize and then it worked like a charm.
Solution: It turned out I accidentally downloaded a 32×32 image instead of 16×16 as I should have. So a simple resize and then it worked like a charm.
Improvements: I should get a prettier icon then the dummy one I use now.
0 Responses to “Registering a file Type”