Registering a file Type

Icon missing

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.
Improvements: I should get a prettier icon then the dummy one I use now.

0 Responses to “Registering a file Type”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s





Follow

Get every new post delivered to your Inbox.