private void updateJapelateData() {
    if (ruleStore == null) {
      return;
    }
    // HashMap<String, Color> newColorScheme = new HashMap<String,
    // Color>();
    this.japelateSelectionMap = new HashMap<String, Boolean>();

    for (String jname : ruleStore.getJapelates().keySet()) {
      japelateSelectionMap.put(jname, true);
    }
    japelatesTreePanel.showJapelates(ruleStore.getJapelates().keySet().toArray(new String[] {}));
  }
 public void setTarget(Object target) {
   this.ruleStore = (CreoleRuleStore) target;
   ruleStore.registerStoreModificationListener(this);
   updateJapelateData();
   initOntologyModels();
   loadOntologyEntities();
   refleshRuleTable();
 }
 @Override
 public Ontology getCurrentOntology() {
   return ruleStore.getOntology();
 }
 public void refleshRuleTable() {
   loadTableModel(ruleStore.getRules());
 }
 private void loadOntologyEntities() {
   for (OResource r : ruleStore.getOntology().getAllResources()) {
     entityNames.add(r.getURI().toString());
   }
 }