Package ag.ion.bion.officelayer.clone

Examples of ag.ion.bion.officelayer.clone.CloneException


   */
  public ETextTableCellRangeCloneService(
      IETextTableCellRange textTableCellRange, ITextDocument textDocument)
      throws CloneException {
    if (textTableCellRange == null) {
      throw new CloneException("The submitted range is not valid");
    }
    if (!(textTableCellRange instanceof ETextTableCellRange)) {
      throw new CloneException("The submitted range is not valid");
    }
    if (textDocument == null) {
      throw new CloneException("The submitted text document is not valid");
    }
    this.textTableCellRange = (ETextTableCellRange) textTableCellRange;
    this.textDocument = textDocument;
  }
View Full Code Here


            textTableCellRangeName, eTextTable);
        return new ClonedObject(cellRange, cellRange.getClass());
      } else
        return null;
    } catch (TextException textException) {
      CloneException cloneException = new CloneException(
          "Error while cloning table");
      cloneException.initCause(textException);
      throw cloneException;
    }
  }
View Full Code Here

      if (generateReturnValue)
        return new ClonedObject(newTable, newTable.getClass());
      else
        return null;
    } catch (Exception exception) {
      CloneException cloneException = new CloneException(exception
          .getMessage());
      cloneException.initCause(exception);
      throw cloneException;
    }
  }
View Full Code Here

          cellCloneServices[i][h] = currentTableCell
              .getCloneService();
        }
      }
    } catch (TextException exception) {
      CloneException cloneException = new CloneException(exception
          .getMessage());
      cloneException.initCause(exception);
      throw cloneException;
    }
  }
View Full Code Here

          rangeCloneService.cloneToPositionNoReturn(position,
              adoptContent, propertyKeysContainer);
          return null;
        }
      } catch (TextException exception) {
        CloneException cloneException = new CloneException(exception
            .getMessage());
        cloneException.initCause(exception);
        throw cloneException;
      }
    } else {
      CloneException cloneException = new CloneException(
          "Error cloning cell. No target selected or another error occred.");
      throw cloneException;
    }
  }
View Full Code Here

      }

      cellPropertyStore = cell.getCellPropertyStore(0, 0);
      firstCellCharacterPropertyStore = cell.getCharacterPropertyStore();
    } catch (TextException excep) {
      CloneException cloneException = new CloneException(excep
          .getMessage());
      cloneException.initCause(excep);
      throw cloneException;
    }
  }
View Full Code Here

            horizontalPosition);
        recreateCell(tableCell, adoptContent, false,
            propertyKeysContainer);
      }
    } catch (Exception exception) {
      CloneException cloneException = new CloneException(exception
          .getMessage());
      cloneException.initCause(exception);
      throw cloneException;
    }
  }
View Full Code Here

      if (generateReturnValue)
        return new ClonedObject(tableCell, tableCell.getClass());
      else
        return null;
    } catch (Exception excep) {
      CloneException cloneException = new CloneException(excep
          .getMessage());
      cloneException.initCause(excep);
      throw cloneException;
    }
  }
View Full Code Here

TOP

Related Classes of ag.ion.bion.officelayer.clone.CloneException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.