How to associate an Eclipse perspective to a file type? -
how associate eclipse perspective file type independent eclipse project?
for example, if open *.frm file want following view.:

if open *.js file want have this:

is possible?
how debug perspective initiated? debug perspective project independent, because in lot of project types there debug perspective?
since asked implementation, check extension of file you've opened, change perspectives programmatically:
try { platformui.getworkbench().showperspective("perspective.id", platformui.getworkbench().getactiveworkbenchwindow()); } catch (workbenchexception e) { e.printstacktrace(); } edit:
oh, , eclipse project settings, go preferences -> general -> perspectives.
Comments
Post a Comment