Esempio n. 1
0
 /** Run task. Return true to close dialog, false to keep open. */
 public boolean run() {
   try {
     _view.undefineGraphemeCluster((String) _value);
   } catch (DatabaseException ex) {
     ex.printStackTrace();
   }
   return true;
 }
Esempio n. 2
0
 public List getGraphemeClusters() {
   List graphemeClusters = Collections.EMPTY_LIST;
   try {
     graphemeClusters = _view.getGraphemeClusters();
   } catch (DatabaseException ex) {
     ex.printStackTrace();
   }
   return graphemeClusters;
 }
Esempio n. 3
0
    /** Run task. Return true to close dialog, false to keep open. */
    public boolean run() {
      if (_original == null) return true;

      // create based on type
      try {
        switch (Integer.parseInt(_type)) {
          case 0:
            _duplicate = makeVarietyType();
            break;
          case 1:
            _duplicate = makeAnnotateType();
            break;
        }
        if (_duplicate == null) {
          return false; // attempted to create copy with same View name as an existing view.
        }
      } catch (DatabaseException e) {
        e.printStackTrace();
        _duplicate = null;
      }
      return true;
    }