java - Execution issue with Maven/Tycho -
i have eclipse rcp application based on 3.x api. application consists of several perspectives each contains several views , editors. first perspective starts on start of application , navigation view defined in main plug-in. problem other perspectives views defined in different plug-ins better code maintenance. add views within main plug-in perspective extension , following piece of code:
public class perspective implements iperspectivefactory { public void createinitiallayout(ipagelayout layout) { layout.addview(navigationview.id, ipagelayout.top, ipagelayout.ratio_max, ipagelayout.id_editor_area); } }
the strange thing works when run application within eclipse, make build maven/tycho , execute created application perspectives defined in plug-ins don't work anymore. issue when add new perspective perspective opens doesn't contain views, grey background. added few println()
statements debugging purposes , seems activator
of respective plug-in, contains view, never invoked. explain why cannot see views in perspective because application cannot find respective view defined in view extension of respective plug-in. added following println()
statement createinitiallayout
method above:
system.err.println(layout.getviewlayout(navigationview.id));
the output null
, strengthen previous point.
the problem reason that? why doesn't plug-in start? did experiment directly called 1 of methods defined in plug-in , again activator
of plug-in wasn't called. bundle-activationpolicy
of plug-in set lazy
. suggestion next steps track problem down?
maven/tycho doesn't report problems , use same target platform both, eclipse , maven/tycho, can exclude dependency problems.
i appreciate help/support :)
best regards, tom
Comments
Post a Comment