How to hide `org.eclipse.ui.editors` on the basis of perspective -
suppose have 2 perspective. in application has 2 different org.eclipse.ui.editors following.
- perpsective1
- editor1
- perspective2
- editor2
when switch perspective1 perspective2 application should hide editor1 opened instances should invisible , editor2 type should visible , vice versa.
how can achieve this?
open editors not affected perspective changes have code yourself.
you can use iperspectivelistener (or extended iperspectivelistener4) notified perspective changes.
the perspective listener added using iworkbenchwindow.addperspectivelistener
Comments
Post a Comment