java - Eclipse RCP and Iterate through Perspectives and Views -
i have eclipse rcp application many plug-ins. each plug in have own perspective new views or shared views. need create separate application based on original 1 plug-ins. application act permissions configurator each plug in/perspective.
to need : -force initialization of plug -in @ start -get perspective objects in application , display ids -for each perspective views associated perspective , display ids -for each view object properties (each view in fact inherit special base 1 : specialview example) based on 1 special role (administator) configure permissions other roles (which perspective should displayed, in each perspective views displayed, on each view commands active, etc).
i have 2 questions regarding above requirements : -how force initialization on plug ins @ startup (eclipse use lazy activation) ? -hot perspective objects (not iperspectivedescriptor ) , view objects ?
thank florinp
to force activation can set flag in plugin.xml editor, provided plugin singleton.
to find views , perspectives cycle extension registry, providing correct id's of plug-ins , view , perspective extension points
iextensionregistry er = platform.getextensionregistry(); iextensionpoint ep = er.getextensionpoint(plug-in_id, extensionid); iextensions[] ext = ep.getextensions();
once have extensions can have class iplementing , on
Comments
Post a Comment