Page 1 of 1

Contex plugin realization

PostPosted: Wed Apr 10, 2019 1:04 pm
by v_a_ermolenko/rambler_ru
Hello. I have some questions about realization of contex plugin:

1) extends AbstractContextPlugin:
...uc.registerContainerBuilder(new DefaultResourceContainerBuilder(ContextUtils.scriptsContextPath(ContextUtils.USERNAME_PATTERN))...
ContextUtils.scriptsContextPath, this method works whith "scripts" context, ContextUtils has some methods for "jobs", "alerts" and another contextes.
How can I create methods like these for processing of my context?

2) extends EditableChildrenContext:
public void setupMyself() {
addCreateAction(true, "Create my object");
allowGrouping("My Group");

I can see my plugin in tree of context, but I can't to create child-objects. It hasn't action "create" when I use right click on my context.
For note: I use the same table format for constructor in EditableChildrenContext and method setupMyself(){ addChildInfoVariable() } of EditableChildContext.
What do I have to do for adding any methods in menu when I use right click on my context?

Re: Contex plugin realization

PostPosted: Fri Apr 12, 2019 11:26 am
by v_a_ermolenko/rambler_ru
Hello, I resolved this problem. I think you should describe more detail about function initialize() of context plugin.