public void performQuestion(int selection) {
   switch (selection) {
     case 0:
       {
         ViewsModel.getInstance().setJustification(name);
         // ((ProbeItView)ViewsManager.getInstance().getViewPane()).resetAnswerTab();
         ((ProbeItView) ViewsManager.getInstance().getViewPane())
             .setActiveIndex(ProbeItView.GLOBAL_JUSTIFICATION_TAB);
         break;
       }
     case 1:
       {
         AvatarView.getInstance().setAnswerType(AvatarView.LIST_PUBLICATION);
         QueryInMemoryJustification query = new QueryInMemoryJustification();
         PMLQuery newQuery = query.execute(SPOntology.SCIENTIFIC_PUBLICATION);
         ViewsModel.getInstance().setQuery(newQuery);
         ((ProbeItView) ViewsManager.getInstance().getViewPane())
             .setActiveIndex(ProbeItView.QUERY_TAB);
         /*if (!refByPubQuery.setPublications(AvatarView.getInstance().getAvatar().getName()))
         Comments.fire(Comments.NO_ANSWER); */
         break;
       }
     case 2:
       {
         AvatarView.getInstance().setAnswerType(AvatarView.LIST_PRODUCT);
         QueryInMemoryJustification query = new QueryInMemoryJustification();
         PMLQuery newQuery = query.execute(SPOntology.SCIENTIFIC_PRODUCT);
         ViewsModel.getInstance().setQuery(newQuery);
         ((ProbeItView) ViewsManager.getInstance().getViewPane())
             .setActiveIndex(ProbeItView.QUERY_TAB);
         /*if (!prodByPubQuery.setProducts(AvatarView.getInstance().getAvatar().getName()))
         Comments.fire(Comments.NO_ANSWER);*/
         break;
       }
     case 3:
       if (hasPublication) {
         AvatarView.getInstance().setAvatar(new AvatarPublication(selectedPublication));
         break;
       }
       if (hasProduct) {
         AvatarView.getInstance().setAvatar(new AvatarProduct(selectedProduct));
         break;
       } else {
         AvatarView.getInstance().oracle.resetAvatar();
         AvatarView.getInstance().setAvatar(AvatarView.oracle);
         break;
       }
     case 4:
       {
         AvatarView.getInstance().oracle.resetAvatar();
         AvatarView.getInstance().setAvatar(AvatarView.oracle);
         break;
       }
   }
 }
 public AvatarPublication(String n) {
   name = n;
   ViewsModel.getInstance().setAnswer(name);
   ((ProbeItView) ViewsManager.getInstance().getViewPane()).setActiveIndex(ProbeItView.ANSWER_TAB);
   updateQuestions();
   icon = new ImageIcon(getClass().getResource("/probeIt/image/avatar-publication.PNG"));
 }
 public CanvasDrawer_TreeJustification(JustificationCanvas canvas) {
   _rootNode = ViewsModel.getInstance().getJustification();
   PMLStatistics stats = new PMLStatistics(_rootNode);
   maxHeight = stats.getProofHeight();
   _canvasManager = canvas;
 }