コード例 #1
0
ファイル: ViewsPane.java プロジェクト: jjthrash/wordcorr
 /** 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;
 }
コード例 #2
0
ファイル: ViewsPane.java プロジェクト: jjthrash/wordcorr
 public List getGraphemeClusters() {
   List graphemeClusters = Collections.EMPTY_LIST;
   try {
     graphemeClusters = _view.getGraphemeClusters();
   } catch (DatabaseException ex) {
     ex.printStackTrace();
   }
   return graphemeClusters;
 }
コード例 #3
0
ファイル: ViewsPane.java プロジェクト: jjthrash/wordcorr
    /** 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;
    }