I\'m developing tow eclipse plugin, I have the next problem:
I have two perspective that manages the same files. I would like to make an association between file ext
While I agree that this seems a little strange to have the default editor be different for the same file based on the open perspective, here is how you could do it.
Update #1 added some examples
There are some online tutorials for this. But here is some example code to make it easier to see what work is required. Here is how you declare your content types (you would need two of them)
Then in the Describer class you would do your matching logic. Then in the editor extension point you reference a content type instead of a file-name or extension like this: