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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -