I am developing an Eclipse application that contains multiple
perspectives. I want to associate an editor with the perspective in which
it was opened, so that it is only displayed when the perspective is
active. For example, if the user opens editor A in perspective A, I don't
want editor A to be displayed when the user switches to perspective B. If
the user subsequently opens editor B in perspective B, and then switches
back to perspective A, I want editor A to be redisplayed, and not editor B.
Is there a way to do this? Even if there is not a simple way to do it, I
am willing to consider more complicated ways. Any suggestions?