Need a method protected InterviewEditor BasicSessionControl.createEditor() to incapsulate IE creation

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jt4.5
    • Affects Version/s: None
    • Component/s: tools
    • None
    • b13
    • b15

      It is very difficult to use subclassed InterviewEditor into custom BasicSessionControl successor

      So, on the talk to Dima F., we suggest to do the following:

      1. Need a method
        protected InterviewEditor BasicSessionControl.createEditor()
      and extract the code:
      ==============
              interviewEditor = new InterviewEditor(parent, getUIFactory(), ip);
              if (cm != null) {
                  interviewEditor.setCustomRenderers(cm.getCustomRenderersMap());
                  interviewEditor.setContextManager(cm);
              }
      ==============
      2. update existing method BasicSessionControl.initEditor() to call
      interviewEditor=BasicSessionControl.createEditor() instead of explicit
      constructor call.



            Assignee:
            Dmitry Fazunenko (Inactive)
            Reporter:
            Boris Kvartskhava
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: