java - Save perspective containing multiple instances of the same view -
my understanding of situation:
there 2 ways persist state of views in eclipse:
- mementos: these saved on workbench close , restored on open
- idialogsettings: these can saved , restored @ will
packageexplorerpart in eclipse uses both (e.g.) linking files in explorer editors.
i have multiple instances of same view different state, , want save them in perspective. if save using mementos, closing , opening eclipse restore state correctly.
if open new window file | new window, saved perspective does not provide mementos nor secondary ids views, cannot restore.
is there way save state of these views perspective can correctly restored?
while technically dialogsettings can used persist view state, mementos passed savestate()
, init()
meant therefore.
not sure why package explorer such double-entry book keeping. there reson for, haven't had necessity so.
new window creates new view , hence there nothing restore. if restart eclipse 2 windows open, both restored , views within well.
if restore new view state of view of same type have take (without workbench support).
for example, store memento passed savestate()
in well-known location , load state when new view opened.
Comments
Post a Comment