Eclipse plugin - Editor associated to file extension and perspective

前端 未结 4 1921
不思量自难忘°
不思量自难忘° 2021-01-15 13:13

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

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-15 13:49

    (Sorry, this is one of those "don't do that!" non-answers. :))

    As mentioned in the comments, I'd recommend against opening a different editor depending on the current perspective. I think that goes against the expectations of the user, and has some unintuitive consequences, e.g. when I create my own perspectives.

    I'd recommend going the path of Eclipse' XML/Plug-in manifest editors, for example. Tabs at the bottom allow the user to choose between the different views, independent of any perspective choice or configuration.

    Eclipse plugin-in manifest editor

提交回复
热议问题