// Path: src/org/jobimtext/example/demo/JoBimDemo.java
// public static class AnnoLabel {
// 	public String label;
// 	public Annotation anno;
// 
// 	public AnnoLabel(String label, Annotation anno) {
// 		this.label = label;
// 		this.anno = anno;
// 	}
// 
// 	public String toString() {
// 		return label;
// 	}
// }


import java.util.ArrayList;
import java.util.Map;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import org.apache.uima.jcas.tcas.Annotation;
import org.jobimtext.api.map.IThesaurusMap;
import org.jobimtext.example.demo.JoBimDemo.AnnoLabel;
import org.jobimtext.holing.extractor.JobimAnnotationExtractor;
import com.ibm.bluej.util.common.*;
import com.ibm.bluej.util.common.visualization.*;
package org.jobimtext.example.demo;






public class ExpansionsViewManager implements TreeSelectionListener {

  private BasicJTree jobimView;
  private BasicJTree view;
  /*private DistributionalSemanticsAPI distSim;*/
  
  private JobimAnnotationExtractor extractor;
private IThesaurusMap<String, String> dt;
    
  public ExpansionsViewManager(
      BasicJTree jobimView, 
      BasicJTree view, 
      IThesaurusMap<String, String> dt,
      JobimAnnotationExtractor extractor) {
    this.jobimView = jobimView;
    this.view = view;
		this.dt = dt;
    this.extractor = extractor;
  }
  
  public void valueChanged(TreeSelectionEvent e) {

    DefaultMutableTreeNode node = (DefaultMutableTreeNode) jobimView
        .getLastSelectedPathComponent();
    
    // if nothing is selected
    if (node == null) {
      view.top.removeAllChildren();
      view.refresh(null);
      return;
    }

// Path: src/org/jobimtext/example/demo/JoBimDemo.java
// public static class AnnoLabel {
// 	public String label;
// 	public Annotation anno;
// 
// 	public AnnoLabel(String label, Annotation anno) {
// 		this.label = label;
// 		this.anno = anno;
// 	}
// 
// 	public String toString() {
// 		return label;
// 	}
// }


// Path: src/org/jobimtext/example/demo/ExpansionsViewManager.java
import java.util.ArrayList;
import java.util.Map;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import org.apache.uima.jcas.tcas.Annotation;
import org.jobimtext.api.map.IThesaurusMap;
import org.jobimtext.example.demo.JoBimDemo.AnnoLabel;
import org.jobimtext.holing.extractor.JobimAnnotationExtractor;
import com.ibm.bluej.util.common.*;
import com.ibm.bluej.util.common.visualization.*;

package org.jobimtext.example.demo;






public class ExpansionsViewManager implements TreeSelectionListener {

  private BasicJTree jobimView;
  private BasicJTree view;
  /*private DistributionalSemanticsAPI distSim;*/
  
  private JobimAnnotationExtractor extractor;
private IThesaurusMap<String, String> dt;
    
  public ExpansionsViewManager(
      BasicJTree jobimView, 
      BasicJTree view, 
      IThesaurusMap<String, String> dt,
      JobimAnnotationExtractor extractor) {
    this.jobimView = jobimView;
    this.view = view;
		this.dt = dt;
    this.extractor = extractor;
  }
  
  public void valueChanged(TreeSelectionEvent e) {

    DefaultMutableTreeNode node = (DefaultMutableTreeNode) jobimView
        .getLastSelectedPathComponent();
    
    // if nothing is selected
    if (node == null) {
      view.top.removeAllChildren();
      view.refresh(null);
      return;
    }

    if (node.getUserObject() instanceof AnnoLabel) {