Exemplo n.º 1
0
  /**
   * @return
   * @throws SemanticException
   */
  private DataSetHandle createDataSetODAV2() throws SemanticException {
    String dataSetTypeName = null;
    if (getSelectedDataSet() instanceof Object[]) {
      DataSetType dataSetElement = (DataSetType) ((Object[]) getSelectedDataSet())[0];
      dataSetTypeName = dataSetElement.getID();
    } else if (getSelectedDataSet() instanceof OdaDataSetTypeElement) {
      dataSetTypeName = ((OdaDataSetTypeElement) getSelectedDataSet()).getDataSetType().getID();
    } else if (getSelectedDataSet() instanceof DataSetTypeElement) {
      dataSetTypeName = ((DataSetTypeElement) getSelectedDataSet()).getDataSetTypeName();
    }

    return createDataSet(dataSetTypeName);
  }
Exemplo n.º 2
0
 public OdaDataSetTypeElement(DataSetType dataSetType, IConfigurationElement configureElement) {
   super(dataSetType.getDisplayName());
   this.dataSetType = dataSetType;
   this.configureElement = configureElement;
 }