Eclipse 4 RCP How to launch another plug in in a new window -
i have e4 rcp needs screen real estate. have developed second rcp in effect relatively simple single-function plug-in, 1 part. want user able launch second first, terminate it, on demand.
as understand it, have 3 options:
launch new workbench second, written plug-in. assume uses more resources , has problem need track , distinguish events go both.
write second model fragment plug-in extends first. has advantage can keep on adding second plug-in declaration in model editor. however, believe requires attaching existing container in main model. add new container main model , write code flip containers in , out done in model editor currently, , more importantly functions carried out second plug-in quite different of first (main) rcp, fear user find ui change confusing.
use emodelservice , write code create new trimmedwindow , child partstack, , part, , handlers. have not yet found enough documentation understand implications, advantages , disadvantages of - aside obvious ones former declarations have programmed , coupling tighter.
it looks me eclipse uses approach 1 2 of menu items:
- help contents
- eclipse marketplace
from ui perspective, kind of ui separation of functions want achieve these 2 items. hence leaning option 1.
any corrections or alternatives?
you possibly use perspectivestack
2 perspectives containing windows 2 apps. second app can in model fragment.
you can use epartservice.switchperspective
switch between them.
Comments
Post a Comment