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.:

form editor / properties view

if open *.js file want have this:

js editor / outline view

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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -